How to set default privileges of files and directories for particular user?
Hi All,
Whenever files and directories are created by particular user account, the default privileges of files and directories have to be 775. I have tested with "umask 0002", made an entry in .bashrc file. But it is working for the directory and not for the files. Thanks in advance. Hariharan V |
Not a networking question. Moved to Newbie.
|
Quote:
umask 0002 will give you 755 for directories and 644 for files. Markus |
Thanks Markus.....
So how we can set 775 for directories and executable permission for files in umask? Regards, Hariharan V |
As I wrote, you cannot set execute permissions for files per umask. But it would be good if you'd describe what you want to achieve, maybe there's another solution to your problem.
Markus |
http://www.grymoire.com/Unix/Permissions.html#uh-5
I do not think you can create files with execute flags, but probably I missed something... |
Thanks to all....
Do we have any other then umask to set same permission for files and directories for particular user? Regards, Hariharan V |
the chmod command. why do you need that?
|
Actually application (informatica ) team required that kind of permissions.
The user which they have mentioned is existing, so how we can set that kind of permission in chmod command? Regards, Hariharan V |
chmod a+x filename will set execution flag on a file. by default you cannot create files with exec flag.
|
ok thanks for the help.....
|
All times are GMT -5. The time now is 02:04 AM. |