[Samba] Adding samba users ?:/

Dariusz Blada darek at bdfelin.com.pl
Fri Mar 14 19:18:02 GMT 2003


----- Original Message ----- 
From: "Ketil Braun Larsen" <KetilL at it-college.dk>
To: <samba at lists.samba.org>
Sent: Friday, March 14, 2003 7:26 PM
Subject: SV: [Samba] Adding samba users ?:/


> I have now added a user and the hash apirs in the passwd... :] but when
> I try to log in but it just don't work :/
> 
> Can someone give a suggestion?
> 
> 
> This is my smb.conf... I guess theres a chance that its where the
> problem comes in 2 play :)
> 
> [global]
>         workgroup = Nost
>         encrypt passwords = yes
>         smb passwd file = /usr/local/private/smbpasswd
>         unix password sync = yes
>         null passwords = yes
> [docs]
>         comment = www
>         path = /usr/home/Enigma/share
>         public = yes
>         writable = yes
>         printable = no
> 
> 
> 
> 
> Ps -axe |grep Ketil
> 79 ?        S      1:09 /usr/sbin/klogd -c 3 -x PWD=/
> CONSOLE=/dev/console -x (Ketil Braun Larsen)
> 
> -----Oprindelig meddelelse-----
> Fra: Gabriel D. Preston [mailto:gpreston at sgillc.com] 
> Sendt: 14. marts 2003 19:07
> Til: Ketil Braun Larsen
> Emne: Re: [Samba] Adding samba users ?:/
> 
> Ketil,
> 
> You'll need to add them as a normal user with the 'useradd' command, and
> 
> then add them as a Samba user, with the 'smbpasswd -a username' command.
> 
> HTH
> 
> -Gabriel
> 
> Ketil Braun Larsen wrote:
> 
> >Hello world...
> >
> >I have a problem, I have installed samba and I need to share some
> >directory.
> >I have defined the dirs 2 share etc etc etc.
> >
> >I now want ad a user.
> >
> >I need some help I have done some rtfm but cant seem to get it ..
> >
> >I have tried to cat /etc/passwd > /usr/local/private/passwd 
> >
> >But that dosent seem to work (I read it someplace that it whuld)
> >
> >I imagen its because the hashes isent in the /etc/passwd (shadowd) or
> >something.
> >
> >
> >Is there a add user samba tool ? .. wherei can do like this or
> somtnhing
> >
> >#Smb-adduser username 
> >and then it meaby will ask for passwords or something....
> >
> >
> >anyway I hope you can help me.
> >
> >Thanks
> >
> >
> >
> >
> >Ps -axe |grep Ketil
> >79 ?        S      1:09 /usr/sbin/klogd -c 3 -x PWD=/
> >CONSOLE=/dev/console -x (Ketil Braun Larsen)
> >  
> >
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba


you can add these lines and force users

[global]
>         workgroup = Nost
>         encrypt passwords = yes
>         smb passwd file = /usr/local/private/smbpasswd
>         unix password sync = yes
>         null passwords = yes
> [docs]
>         comment = www
>         path = /usr/home/Enigma/share
>         public = yes
>         writable = yes
>         printable = no
           force group = xx
           force users = xx

and execute chown -R xx.xx /usr/home/Enigma/share
and restart samba and then give rights

chmod -G xx user

Darek

> 




More information about the samba mailing list