[Samba] [permissions] smbpasswd vs passwd

Bill Schoolcraft bill at wiliweld.com
Thu Feb 21 08:43:07 GMT 2002


At Thu, 21 Feb 2002 it looks like Steven Mackenzie composed:

> (my smbpasswd is -rw------- )
> 
> The password hashes stored in smbpasswd can be used "as is" to gain access
> to the files on the samba server, so they have to be kept secret (only
> readable by root).
> 
> You can read a little more by looking at smbpasswd(5) ('man 5 smbpasswd').
> 
> The ones in /etc/passwd can't be used for anything except checking a
> password (or brute force hack attempts by checking lots of passwords), so it
> doesn't have to be secret.
> 
>  In fact, /etc/passwd has to be world readable so that various applications
> can see user the user properties in it.
> 

Hmm, I was actually talking about the command
/usr/local/samba/bin/smbpasswd  and not the file /etc/smbpasswd,
 
Thanks for the post though.

> > -rwxr-xr-x    1 root     root       782415 Dec 28 03:14
> > /usr/local/samba/bin/smbpasswd
> >
> > -r-s--x--x    1 root     root        12244 Feb  7  2000
> > /usr/bin/passwd
> >
> > Is there a reason why the perms are not the same ?
> >


-- 
Bill Schoolcraft            
PO Box 210076                 -o)
San Francisco CA 94121         /\
"UNIX, A Way Of Life."        _\_v
http://forwardslashunix.com






More information about the samba mailing list