> Hi,
>
> I'm trying to setup a samba server on my gentoo system to share a few 
> different
> directories. I want user authentication, so I can say user A has access to dir
> nr.1, user B to dir nr.1 and nr.2 etc. and appropriately set permissions on 
> the
> gentoo server.
>
> I started by using the default samba config (smb.conf) shipped with the gentoo
> ebuild. In [global] I set
>
>         security = user
>         smb passwd file = /etc/samba/private/smbpasswd
>
> and in the shares I set
>
>         public = no
>         writeable = yes
>         browseable = yes
>         printable = no
>         valid users = david
>
> When I try to create a smb user with smbpasswd -a it tells me
>
>         # smbpasswd -a david
>         New SMB password:
>         Retype new SMB password:
>         Failed to initialise SAM_ACCOUNT for user david.
>         Failed to modify password entry for user david
>
> Can anyone guide me to a correct setup. My research on google and 
> groups.google
> didn't help me much.
>
Just off the wall here, but is the david in the samba group? Check if
not add david to samba goup (/etc/group) and try again.

--
"When you say "I wrote a program that crashed Windows", people just
stare at you blankly and say "Hey, I got those with the system, for
free". - Linus Torvalds, 1995

-- 
gentoo-user@gentoo.org mailing list

Reply via email to