It happened last night. I have checked my cron and nothing.
Main Topics
Browse All TopicsI'm having my permissions change on the Samba share automatically?
Created a share folder call Company_Share
ran chown -R root:users Company_Share
Confirmed permissions on file : drwxrwx--- root user Company_Share
Samba smb.conf
[Company_Share]
comment = Company Share File
path = /share/Company_Share
valid users = @users
write list = @users
force user = root
force group = users
read only = No
create mask = 0770
directory mask = 0770
The next day the permissions changed to:
drwxrwxrwx root admin
and all the files in the directory are drwxrwxrwx root admin
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Does this happened again? Did you find out if this is always the same time? If you didn't check this yet (and this still happens), try this script:
#!/bin/sh
OUTPUT=/tmp/permissions.lo
DATE=`date`
LS=`ls -ld /share/Company_Share`
printf -- "${DATE}\t${LS}\n" >> ${OUTPUT}
Run this script from your cron every 5 minutes (or even every 1 minute). Before putting it to cron, make sure you have good permissions set to /share/Company_Share directory. If they are bad, change it. Put your script into cron. When you notice, that permissions are changed, check this logfile (/tmp/permissions.log). Change its name to some other, and remove current log. Change permissions back. Let it run as long as you will notice change again. After two or three changes, you should know, if they happen at the same time always. Then, we will try to find out what is causing this.
Also, take a look here: http://www.experts-exchang
Audit can be helpful in finding out what is changing permissions.
Business Accounts
Answer for Membership
by: oklitPosted on 2009-01-28 at 06:14:45ID: 23486590
When this change occurs? Is the always the same time? Is it possible, that you have some cron job, which is changing permissions for this directory?