LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Help me to set Permission (https://www.linuxquestions.org/questions/linux-security-4/help-me-to-set-permission-717899/)

linux.queries.help 04-09-2009 05:16 AM

Help me to set Permission
 
HI Friends,

I am Log in as a root user.

I have Directory /root/tejas. It's by default permission is 755. (drwxr-xr-x)

If I am creating any file its get permission -rw-r--r-- (Default). But i want that if i create any file within this directory only (/root/tejas) then default permission on all file should be -rwxr-xr-x instead of -rw-r--r--.

We can set it by chmod -R but i have to do this all the time whenever i create new file. So is that possible to set -rwxr-xr-x for file as a default permision ? is this possible ?

I tried to set setfacl also but its also not working.

Please Help me

ArfaSmif 04-09-2009 06:36 AM

Try "man umask"


All times are GMT -5. The time now is 03:12 PM.