Please Help With Auto Permissions Script...

sorenmd

Registered
I have been trying to make a permissions script that runs every minute to unlock (read & write) all folders created by a cetain user.

For example, people in our workgroup create folders and forget to unlock them, so later on when someone is trying to work in that folder they cant modify or create new folders or files.

Can someone help me with a script that runs un the background every 60 seconds to make all permissions in a certain path ( .../HardDisk/users/ocean ) read and write. The user name is: ocean

Help is much appreciated!
 
Last edited:
We have that on our server at work. I'm working to find out how the script is written…If someone else has the script, don't hesitate to provide it. I may or may not get the answer to this.
 
So, why not just assign that as the default permissions for the share on the server?

Otherwise, you'd just write a cron tab that runs a shell script that does something like:

chmod -R 755 /HardDisk/Users/ocean/

That will change the permissions to be R/W for owner, group, everyone.

If you need to change ownership, include

chown -R user:group /HardDisk/Users/ocean/

Michael
 
Back
Top