[Samba] Changing 644 back to 600 on smbpasswd automatically?

Jeremy Allison jra at samba.org
Tue Mar 2 08:55:26 GMT 2004

On Tue, Mar 02, 2004 at 09:28:27AM +0100, TeeCee wrote:
> Hi!
>   I want to list users from smbpasswd (stored in /etc/samba). I chmoded the 
> file from 600 to 644, to ba able to read it with PHP. After a while somehow 
> it changed back to 600, so it was fully unreadable again :(
>   How can I set that the samba don't need to change it back OR change it 
> deafaultly to 644?
>   (someone told me to make a hardlink to the file when it is 644 but that did 
> not help)

Samba smbd does that. This file should not be 644, as it contains
the users hashed passwords (ie. you're giving full access to all
users passwords to anyone on the system). Samba is trying to
protect you from yourself here....


More information about the samba mailing list