[FYI: Searched forums before asking question]
So this, in my mind anyways, should be a simply question.... How do i permanently set directory permissions (also recursively) on a folder to 777 that WILL NEVER change until i want them to.
Simple enough... right?
I tried "sudo chmod 777 -R" to solve my problem, but its persistent.
I have a Ubuntu server setup, with a samba share, and media server that is constantly in use by the family. Everything gets dumped into /media/TheGrid on the server and accessed by windows machines and our BOXEE. Now i run rtorrent to download "stuff" for later viewing, and whenever i use the server and move files around on /media/TheGrid (SSH as root or another user) all the files i touch revert back to their "user" ownership permissions. Even when i create new directories in the samba share i lose previous permissions.
Everytime i add a new file i need to run: chmod 777 -R /media/TheGrid otherwise i can't use it.
Samba is set to inherit permissions.
My buddy told me that a "sticky bit" might help me here.... but i'm not sure how to implement this.
Do i need to create a script to keep chmod-ing???? I need a solution that will survive reboot.
I want to create a directory that will always be 777, and when a file is added to this directory its permissions will change to 777. ALWAYS!!!
I'm just tired of running "chmod 777" every 5 minutes.
There has got to be a better way.
Thx for the help.