[Samba] cant login with my samba password only with my linux password

2010-12-25 Thread Hartmut
Hello,

I have a strange problem with my samba server. When I try to connect
with my (Windows)client and samba ask for the password, it's only
accepting my linux-user password, not my samba-user password (set with
smbpasswd and as root with smbpasswd ).

And now the strange about it. When i change my sambapassword with
smbpasswd, and try to login from my client, then the samba-user password
is accepted. But after a reboot of my samba server, the server accepts
only the linux-user password. I have to (re)set the samba-user password
again with smbpasswd and only after that, I can login with the
samba-user password.

Is there something wrong with my smb.conf (see below)? Or what else
could be the problem?


-
smb.conf:
[global]
#   debuglevel = 1
   workgroup = Gruppe
   server string = Datastring
   wins support = no
   dns proxy = no

   interfaces = 192.168.1.0/24 127.0.0.1/8
   bind interfaces only = yes

   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = no
   pam password change = no
   map to guest = bad user
   domain logons = no
   load printers = no
   domain master = no
   usershare allow guests = no

   vfs objects = recycle
   recycle: repository = .trash.bin
   recycle: keeptree = Yes
   recycle:versions = Yes

[lager]
   comment = Lager
   path = /media/lager_hdd
   public = no
   valid users = user1
   read only = no
   browseable = no
-

Greetings
Hartmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] cant login with my samba password only with my linux password

2010-12-27 Thread Hartmut
On Mon, Dec 27, 2010 at 2:16 AM, Gaiseric Vandal
 wrote:
> I can't see any way that, with your configuration, samba could be
> using your linux password as a samba password.  You would have to be
> using plain text passwords in windows have samba authenticate it
> against your linux password.    Is it really using your "linux"
> password, or at some point was your samba password the same as your
> linux password?

The samba and linux passwords was always different.

>
> Or did you configure pam or nsswitch.conf to have linux authenticate
> against "windows" passwords?

No. I use ubuntu 10.10 and the default configuration. See below my
nsswitch.conf, but i think it's the default and does not matter.


> Did you try running "testparm -v" in case there are some parameters
> with unexpected defaults?

Did this, see output below. But i can't find a "wrong" or unexpected paramter.

> Did you try disabling "obey pam restrictions?"  Maybe that is
> preventing the password change?

Yes, i tried this. The same result :(


> On Sat, Dec 25, 2010 at 11:32 AM, Hartmut  wrote:
>> Hello,
>>
>> I have a strange problem with my samba server. When I try to connect
>> with my (Windows)client and samba ask for the password, it's only
>> accepting my linux-user password, not my samba-user password (set with
>> smbpasswd and as root with smbpasswd ).
>>
>> And now the strange about it. When i change my sambapassword with
>> smbpasswd, and try to login from my client, then the samba-user password
>> is accepted. But after a reboot of my samba server, the server accepts
>> only the linux-user password. I have to (re)set the samba-user password
>> again with smbpasswd and only after that, I can login with the
>> samba-user password.
>>
>> Is there something wrong with my smb.conf (see below)? Or what else
>> could be the problem?
>>
>>
>> -
>> smb.conf:
>> [global]
>> #       debuglevel = 1
>>       workgroup = Gruppe
>>       server string = Datastring
>>       wins support = no
>>       dns proxy = no
>>
>>       interfaces = 192.168.1.0/24 127.0.0.1/8
>>       bind interfaces only = yes
>>
>>       log file = /var/log/samba/log.%m
>>       max log size = 1000
>>       syslog = 0
>>       security = user
>>       encrypt passwords = true
>>       passdb backend = tdbsam
>>       obey pam restrictions = yes
>>       unix password sync = no
>>       pam password change = no
>>       map to guest = bad user
>>       domain logons = no
>>       load printers = no
>>       domain master = no
>>       usershare allow guests = no
>>
>>       vfs objects = recycle
>>       recycle: repository = .trash.bin
>>       recycle: keeptree = Yes
>>       recycle:versions = Yes
>>
>> [lager]
>>       comment = Lager
>>       path = /media/lager_hdd
>>       public = no
>>       valid users = user1
>>       read only = no
>>       browseable = no
>> -
>>
>> Greetings
>> Hartmut
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


--
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[lager]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = CP850
unix charset = UTF-8
display charset = LOCALE
workgroup = Gruppe
realm =
netbios name = SERVER1
netbios aliases =
netbios scope =
server string = Datastring
interfaces = 192.168.1.0/24, 127.0.0.1/8
bind interfaces only = Yes
security = USER
auth methods =
encrypt passwords = Yes
update encrypted = No
client schannel = Auto
server schannel = Auto
allow trusted domains = Yes
map to guest = Bad User
null passwords = No
obey pam restrictions = Yes
password server = *
smb passwd file = /etc/samba/smbpasswd
private dir = /etc/samba
passdb backend = tdbsam
algorithmic rid base = 1000
root directory =
guest account = nobody
enable privileges = Yes
pam password change = No
passwd program =
passwd chat = 

Re: [Samba] cant login with my samba password only with my linux password

2011-01-04 Thread Hartmut
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut  wrote:
> Hello,
>
> I have a strange problem with my samba server. When I try to connect
> with my (Windows)client and samba ask for the password, it's only
> accepting my linux-user password, not my samba-user password (set with
> smbpasswd and as root with smbpasswd ).
>
> And now the strange about it. When i change my sambapassword with
> smbpasswd, and try to login from my client, then the samba-user password
> is accepted. But after a reboot of my samba server, the server accepts
> only the linux-user password. I have to (re)set the samba-user password
> again with smbpasswd and only after that, I can login with the
> samba-user password.
>
> Is there something wrong with my smb.conf (see below)? Or what else
> could be the problem?
>
>
> -
> smb.conf:
> [global]
> #       debuglevel = 1
>       workgroup = Gruppe
>       server string = Datastring
>       wins support = no
>       dns proxy = no
>
>       interfaces = 192.168.1.0/24 127.0.0.1/8
>       bind interfaces only = yes
>
>       log file = /var/log/samba/log.%m
>       max log size = 1000
>       syslog = 0
>       security = user
>       encrypt passwords = true
>       passdb backend = tdbsam
>       obey pam restrictions = yes
>       unix password sync = no
>       pam password change = no
>       map to guest = bad user
>       domain logons = no
>       load printers = no
>       domain master = no
>       usershare allow guests = no
>
>       vfs objects = recycle
>       recycle: repository = .trash.bin
>       recycle: keeptree = Yes
>       recycle:versions = Yes
>
> [lager]
>       comment = Lager
>       path = /media/lager_hdd
>       public = no
>       valid users = user1
>       read only = no
>       browseable = no
> -
>
> Greetings
> Hartmut
>

The problem still exist. Has no one a clue?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] cant login with my samba password only with my linux password

2011-01-05 Thread Hartmut
On Tue, Jan 4, 2011 at 10:17 PM, Daniel Müller  wrote:
> What about,
> unix password sync = yes instead of no

I like to have two different passwords, one for the shell and one for
samba. So that's not an option.

> Did you try smbclient?

yes, with the same result. If i enter my samba password, i get "Login
failed". After changing with smbpasswd it works. After a reboot, the
same problem, i can't access with my, 5 minutes ago set, samba
password.

> On some OS you need:
> obey pam restrictions = no!?

Tired this, with obey pam = yes and no. Same result. Rebooted after
changing it... Same result... (oh i have rebooted so many times since
the last days)

> How did you add your users?
> First linux? Then samba?

First linux, then samba (does the other order works? i thought a samba
user needs a linux user? whatever)

> did you: smbpasswd user -e

yes, tried this though, same result, can't login with my samba
password... (and yes, i tried it with a reboot too ;) )

>
> Good luck
>
> Daniel
> On Tue, 4 Jan 2011 21:16:08 +0100, Hartmut 
> wrote:
>> On Sat, Dec 25, 2010 at 5:32 PM, Hartmut 
> wrote:
>>> Hello,
>>>
>>> I have a strange problem with my samba server. When I try to connect
>>> with my (Windows)client and samba ask for the password, it's only
>>> accepting my linux-user password, not my samba-user password (set with
>>> smbpasswd and as root with smbpasswd ).
>>>
>>> And now the strange about it. When i change my sambapassword with
>>> smbpasswd, and try to login from my client, then the samba-user
> password
>>> is accepted. But after a reboot of my samba server, the server accepts
>>> only the linux-user password. I have to (re)set the samba-user password
>>> again with smbpasswd and only after that, I can login with the
>>> samba-user password.
>>>
>>> Is there something wrong with my smb.conf (see below)? Or what else
>>> could be the problem?
>>>
>>>
>>> -
>>> smb.conf:
>>> [global]
>>> #   debuglevel = 1
>>>   workgroup = Gruppe
>>>   server string = Datastring
>>>   wins support = no
>>>   dns proxy = no
>>>
>>>   interfaces = 192.168.1.0/24 127.0.0.1/8
>>>   bind interfaces only = yes
>>>
>>>   log file = /var/log/samba/log.%m
>>>   max log size = 1000
>>>   syslog = 0
>>>   security = user
>>>   encrypt passwords = true
>>>   passdb backend = tdbsam
>>>   obey pam restrictions = yes
>>>   unix password sync = no
>>>   pam password change = no
>>>   map to guest = bad user
>>>   domain logons = no
>>>   load printers = no
>>>   domain master = no
>>>   usershare allow guests = no
>>>
>>>   vfs objects = recycle
>>>   recycle: repository = .trash.bin
>>>   recycle: keeptree = Yes
>>>   recycle:versions = Yes
>>>
>>> [lager]
>>>   comment = Lager
>>>   path = /media/lager_hdd
>>>   public = no
>>>   valid users = user1
>>>   read only = no
>>>   browseable = no
>>> -
>>>
>>> Greetings
>>> Hartmut
>>>
>>
>> The problem still exist. Has no one a clue?
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] cant login with my samba password only with my linux password

2011-01-05 Thread Hartmut
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut  wrote:
> Hello,
>
> I have a strange problem with my samba server. When I try to connect
> with my (Windows)client and samba ask for the password, it's only
> accepting my linux-user password, not my samba-user password (set with
> smbpasswd and as root with smbpasswd ).
>
> And now the strange about it. When i change my sambapassword with
> smbpasswd, and try to login from my client, then the samba-user password
> is accepted. But after a reboot of my samba server, the server accepts
> only the linux-user password. I have to (re)set the samba-user password
> again with smbpasswd and only after that, I can login with the
> samba-user password.
>
> Is there something wrong with my smb.conf (see below)? Or what else
> could be the problem?
>
>
> -
> smb.conf:
> [global]
> #       debuglevel = 1
>       workgroup = Gruppe
>       server string = Datastring
>       wins support = no
>       dns proxy = no
>
>       interfaces = 192.168.1.0/24 127.0.0.1/8
>       bind interfaces only = yes
>
>       log file = /var/log/samba/log.%m
>       max log size = 1000
>       syslog = 0
>       security = user
>       encrypt passwords = true
>       passdb backend = tdbsam
>       obey pam restrictions = yes
>       unix password sync = no
>       pam password change = no
>       map to guest = bad user
>       domain logons = no
>       load printers = no
>       domain master = no
>       usershare allow guests = no
>
>       vfs objects = recycle
>       recycle: repository = .trash.bin
>       recycle: keeptree = Yes
>       recycle:versions = Yes
>
> [lager]
>       comment = Lager
>       path = /media/lager_hdd
>       public = no
>       valid users = user1
>       read only = no
>       browseable = no
> -
>
> Greetings
> Hartmut
>

Now it's solved. I had to remove the libpam-smbpass package. Thanks to
Tom from the Ubuntu list ;)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] tdb_fetch_uint32 failed and create_builtin_administrators failed

2008-04-21 Thread Hartmut
Hello,

I've build the latest samba version(3.0.28a) as shown below on my
NSLU2 running debian etch.
./autogen.sh
./configure --with-logfilebase=/usr/local/samba/log
make
make install

That worked without any error messages and I start samba as shown below:
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/winbindd -B
/usr/local/samba/sbin/nmbd -D

So far it seems to work but I found some error messages in the logs:

/usr/local/samba/log/log.smbd:
[2008/04/19 12:21:48, 0] smbd/server.c:main(944)
  smbd version 3.0.28a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/04/19 12:21:51, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 1 (min password 
length), returning 0
[2008/04/19 12:21:51, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), 
returning 0
...
And after the first connection from a client:
/usr/local/samba/log/log.client
[2008/04/19 12:22:32, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2008/04/19 12:22:32, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
...

Should I be unhappy about this and how can I solve that?

Some details about my system:
uname -a
Linux hagrid 2.6.16 #1 PREEMPT Mon May 22 14:42:12 CEST 2006 armv5tel GNU/Linux

more /etc/issue
Debian GNU/Linux 4.0 \n \l

dpkg -l | grep krb5
ii  krb5-config  1.16
ii  krb5-user1.4.4-7etch4
ii  libkrb5-dev  1.4.4-7etch4
ii  libkrb53 1.4.4-7etch4

And finally my smb.conf:
[global]
workgroup = FISI
passdb backend = tdbsam
log file = /usr/local/samba/log/log.%m

[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browseable = No

Thank you in advance and best regards,
 Hartmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbmount

2004-03-13 Thread Hartmut Krummrei
Hi,

Problem: I want a normal user to mount a Windows share. Therfor I 
created a "device"-icon on his desktop and inserted a line in fstab:

//karin/KARIN-D /home/hartmut/karin-d smbfs noauto,user,exec,rw 0 0

and everything worked fine with Suse 7.3. I don?t know which smb-version 
they had. Now with Suse 9.0 (smbd -V gives 2.2.8a-Suse) it works not: 
only root can do! Or otherwise: "smbmount must not run in suid-mode". 
Root can mount the share, but why not a normal user. It even does not 
work with username%password and so on ... I didn?t find anything in 
newsgroups and on samba.org. Do you know, how it is done?

Best regards

Hartmut Krummrei

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Delay opening office files

2005-02-18 Thread Hartmut Guist
Hi,
after we changed our server, we had a similar problem, that opening of 
Word documents took up to 1 minute. But this was not a problem of samba, 
but of the word document itself. The word documents which had this 
problem contained a path to a template which was on the old server and 
could not be found anymore. To fix this, you must open the document and 
update the template path "Extras-->Vorlagen und 
Add-Ins-->Dokumentvorlagen". It is also possible to remove the complete 
path, then the local normal.dot will be used as template.
Hope this helps.

Regards.
Martin Bobbert wrote:
Hi,
we're running a pretty old samba server (Suse 7.0, Samba 2.0.7) 
authenticating against a NT server and it always worked fine. Never 
change a running system?

Since we switched our clients to win2k, we sometimes have delays opening 
office files. The delays occur irregularly, 4 or 5 times a day and take 
up to 1 minute. I wonder if this might be an authentication problem.

If anyone has an idea, I can also post our smb.conf or a debug log of 
such a delay situation.

thx
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba