Operating System - HP-UX
1824977 Members
3760 Online
109678 Solutions
New Discussion юеВ

change default security for a directory

 
SOLVED
Go to solution
ernest tamura
Occasional Advisor

change default security for a directory

On an Hp 9000 running 11i how do I change the default secuity on a file system, /hold? It's current default is 644 for new files and subdirectories.
4 REPLIES 4
Paul Sperry
Honored Contributor

Re: change default security for a directory

use the umask command
Martin Johnson
Honored Contributor

Re: change default security for a directory

Set the umaks command in the .profile file of the users of the directory. If they don't use .profile, then what startup script they use.

HTH
Marty
Michael Tully
Honored Contributor

Re: change default security for a directory

The system wide file creator 'umask' should be set in the global /etc/profile file as 022. If your users need any in particular, then these should be done in the user's own environment i.e. ~users/.profile
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor
Solution

Re: change default security for a directory

The default is for all files and directories, not just a specific filesystem. However, 644 would be a default for files (umask = 022) while the default for any new directory would be 755. umask is a 'take-away' mask and takes away bits from 777 or 666 (directories or files respectively). A 644 directory doesn't make a lot of sense since there is no ability to get into the directory (execute the contents).


Bill Hassell, sysadmin