Violenetsecurity
Red Hat video Series for RHCE & RHCSA
Part-5 Permissions
● On the basic of User/Group/Other
● User -> Creator or Owner of File/Folder.
● Group ->users that are in same group to wh...
● There are three type of permissions
– Read ( r ) -> 4
– Write ( w ) -> 2
– Execute ( x ) ->1
● Setting up permissions vi...
● Say want to give read and write permission to file1 for
group then
– chmod g+rw file1
● If want to give read and execute...
● Say want to REVOKE read and write permission to
file1 for group then
– chmod g-rw file1
● If want to REVOKE read and exe...
● If want to give permissions collectively then :
– chmod u+rwx,g+rw,o+rw file1
● To revoke the same :
– chmod u-rwx,g-rw,...
● There are 3 special permissions
– SUID ( Super User Id )
– SGID ( Super Group Id )
– STICKY BIT ( t )
Part-5 Permissions...
● Super User Id Enables a command to run with
super user previleges.
● chmod u+s fileLocation
● chmod u-s fileLocation
● C...
● Super Group Id Enables Group Permissions to
Folder/Files
● chmod g+s file/folder
● chmod g-s file/folder
● Chmod 2755 fi...
● Sticky Bit allows to delete only those files which
are being created by themselves
● Chmod 1755 file/dir
● Chmod o+t fil...
End of Part 5
Upcoming SlideShare
Loading in...5
×

Part 5 permissions

1,130

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,130
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Part 5 permissions

  1. 1. Violenetsecurity Red Hat video Series for RHCE & RHCSA Part-5 Permissions
  2. 2. ● On the basic of User/Group/Other ● User -> Creator or Owner of File/Folder. ● Group ->users that are in same group to whom the File/Folder Belongs. ● Others -> Neighter Owner nor in Group. Part-5 Permissions Permissions
  3. 3. ● There are three type of permissions – Read ( r ) -> 4 – Write ( w ) -> 2 – Execute ( x ) ->1 ● Setting up permissions via chmod Part-5 Permissions Permissions
  4. 4. ● Say want to give read and write permission to file1 for group then – chmod g+rw file1 ● If want to give read and execute permission to file1 from others – chmod o+rw file1 ● To give read,write and execute permission to file1 for owner – chmod u+rwx file1 Part-5 Permissions Permissions
  5. 5. ● Say want to REVOKE read and write permission to file1 for group then – chmod g-rw file1 ● If want to REVOKE read and execute permission to file1 from others – chmod o-rw file1 ● To REVOKE read,write and execute permission to file1 for owner – chmod u-rwx file1 Part-5 Permissions Permissions
  6. 6. ● If want to give permissions collectively then : – chmod u+rwx,g+rw,o+rw file1 ● To revoke the same : – chmod u-rwx,g-rw,o-rw file1 ● Easy way to give permissions – Chmod 766 file1 Part-5 Permissions Collective Permissions
  7. 7. ● There are 3 special permissions – SUID ( Super User Id ) – SGID ( Super Group Id ) – STICKY BIT ( t ) Part-5 Permissions Special Permissions
  8. 8. ● Super User Id Enables a command to run with super user previleges. ● chmod u+s fileLocation ● chmod u-s fileLocation ● Chmod 4755 fileLoation Part-5 Permissions Special Permissions
  9. 9. ● Super Group Id Enables Group Permissions to Folder/Files ● chmod g+s file/folder ● chmod g-s file/folder ● Chmod 2755 fileLoation Part-5 Permissions Special Permissions
  10. 10. ● Sticky Bit allows to delete only those files which are being created by themselves ● Chmod 1755 file/dir ● Chmod o+t file/dir Part-5 Permissions Special Permissions
  11. 11. End of Part 5
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×