Originally Posted by linuxmantra
I have created a FS /mybook and underneath I created a directory note
# cd /mybook/note
# touch test
-rw-r--r--. 1 root root 0 Sep 2 10:25 test
When I create a file 'test' under /mybook/note, file will have permission -rw-r--r--. What I need to do in Redhat Linux so that whenever I create a new file, i want to have a new file default permission as 775 or whatever I like. How can I do this.
The question is, WHY do you need 755 for newly created files? Do you really need these files to be executable? Files not being executable by default is part of Linux's security model.
If you still need them executable read up on ACL.
That would affect permissions on all new files, not only in this folder.