Permission issue
Hi there
Can someone please let me know how to set default file permission to 777. Here is my situation.I have a dir /var/www/TEST folder whose permission is drwxr-xr-x 2 fruss psacln 4096 Oct 24 07:39 TEST/ So whenever i tried to upload file as user fruss using FTP under folder TEST,file permission should be 777 instead of 644 How can this be achieved.Once possible solution i found that changing umask value in FTP server's configuration file.I'm using proFTP server.I have changed the umask value to 000 and So uploaded folder permission is 777 and that of file permission is 666 as expected.But permission needed to be 777 instead of 666 for the uploaded file. Please advise. |
Hi there,
cd into the mentioned folder. If you want to change the permission of all the files use 'chmod -Rv 777 *'. This will help. |
Dear SilverBack
I know that will change the permission for the files to 777.I think it is for the existing file.What if when i create a new file under the folder TEST?. Do you think that newly created file will be having the same 777 permission as well ?. Please advise me if I'm wrong. Thank you for your response. |
From manual of ProFTP:
Quote:
1. Recompile ProFTP, that it allow of creating files with execution bit set (somewhere should be 'open' function, just need set proper flags). 2. Use inotify (it can be used even in shell scripts) to automatically change file permission after creating it. |
All times are GMT -5. The time now is 07:46 PM. |