- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Basic File Permissions Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:23 AM
04-07-2004 03:23 AM
Basic File Permissions Question
Thanks you,
Paul Walztoni
walztoni@morainevalley.edu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:26 AM
04-07-2004 03:26 AM
Re: Basic File Permissions Question
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:27 AM
04-07-2004 03:27 AM
Re: Basic File Permissions Question
It is based on what the umask is set as on the system. man umask will give you more details on it.
HTH,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:28 AM
04-07-2004 03:28 AM
Re: Basic File Permissions Question
umask 022 creates files with -rw-r--r-- permissions
the permissions are defined as 6-(mask)
therefore umask 000 creates files with -rw-rw-rw- (666 permissions), and umask 666 creates files with ---------- permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:35 AM
04-07-2004 03:35 AM
Re: Basic File Permissions Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:45 AM
04-07-2004 03:45 AM
Re: Basic File Permissions Question
Under an application, you have much more control over the mode of the file; under the shell, regular files are given a mode of 666 (rw-rw-rw-) and directories are given a mode of 777. Depending upon the umask setting those values are left intact or are "subtracted" to be left in a more restrictive mode. It is often tempting to set umask to 0000 for the sake of convenience but that leaves files accessiable for everyone and is a big security hole. At a bare minimum you should use a umask of 002 and 022 is generally a better choice.
Note: There is no way to make a regular file (e.g. a shell script) executable in one step.
A regular file is given a default mode of 666 (subject to "subtraction" by umask); a subsequent chmod (e.g. chmod 755) must be added to set the execution bit(s).