LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File permissions not set through chmod (http://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-not-set-through-chmod-854140/)

smilemukul 01-04-2011 09:08 AM

File permissions not set through chmod
 
Hi,
I had created a file under a directory & set the permissions through chmod command but when I create another file under this directory, I get the default permissions.

Is this due to umask or can I set the file permissions through chmod under a directory.

Thanks

misconfiguration 01-04-2011 09:29 AM

I think what you're in need of is called an "Access Control List" or 'ACL'.

Rul 01-04-2011 09:34 AM

This is an umask thing. I'm not sure if you can attach a custom permission configuration to a specific directory, but I can tell you that the files that you create don't inherit the permissions of its father directory.

Cheers.

markush 01-04-2011 09:43 AM

Quote:

Originally Posted by Rul (Post 4212737)
... I can tell you that the files that you create don't inherit the permissions of its father directory...

This is true, with Linux it is not the same as in Windows or NTFS-filesystem respectively where you can configure that permissions are being inherited.

Please note that the correct word is parent-directory instead of fatherdirectory, though everyone will understand this, one would better use the correct word when googling for more information.

Markus

Rul 01-04-2011 10:46 AM

Thanks for the note, markush. I'm not a native english speaker.

Cheers.

smilemukul 01-09-2011 10:26 AM

Thanks friends the solution is umask value need to changed which is kept default.


All times are GMT -5. The time now is 10:36 PM.