Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

File permission

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 04-21-2017   -   Original Discussion by Maddy123
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 18 November 2017, 4:36 AM EST
Location: San Jose, CA, USA
Posts: 10,651
Thanks: 571
Thanked 3,729 Times in 3,183 Posts
In a three digit permission, the 1st digit indicates permissions granted the file's owner, the 2nd digit indicates permissions granted to the users in the file's group, and the 3rd digit indicates permissions granted to everyone else. When a digit is 7, that class of users has read, write and execute (for regular files) or search (for directories) permission. When a digit is 5 that class of users does not have write permission.

The difference between 777 and 775 is that users who are not the file's owner and who are not in the group of that file do not have permission to write to the file if the mode is 775, but do have permission to write to that file if the mode is 777. (If the file is a directory, write permission is needed to create a file in that directory and to remove a file from that directory.)
The Following User Says Thank You to Don Cragun For This Useful Post:
Maddy123 (04-21-2017)
Sponsored Links
    #9  
Old Unix and Linux 04-21-2017   -   Original Discussion by Maddy123
Maddy123 Maddy123 is offline
Registered User
 
Join Date: May 2011
Last Activity: 3 August 2017, 8:24 PM EDT
Posts: 133
Thanks: 32
Thanked 1 Time in 1 Post
Thanks Cragun. Well explained.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File permission paragnehete Ubuntu 4 08-26-2011 03:41 AM
permission on file sourav_ray UNIX for Dummies Questions & Answers 1 10-17-2008 10:20 AM
file permission/acl: 2 users with write access on 1 file... elzalem Security 0 08-28-2008 06:25 AM
File Permission msg098 UNIX for Dummies Questions & Answers 1 04-03-2007 02:24 AM
File Permission sanjay92 UNIX for Advanced & Expert Users 6 04-02-2002 07:19 AM



All times are GMT -4. The time now is 05:30 PM.