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) Awaiting Your Answers, Thank You: TeeCee :o)
Jeremy Allison
2004-Mar-02 08:36 UTC
[Samba] Changing 644 back to 600 on smbpasswd automatically?
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.... Jeremy.