Your SlideShare is downloading. ×
Part 5 permissions
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Part 5 permissions

1,035
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Violenetsecurity Red Hat video Series for RHCE & RHCSA Part-5 Permissions
  • 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. ● 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. ● 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. ● 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. ● 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. ● There are 3 special permissions – SUID ( Super User Id ) – SGID ( Super Group Id ) – STICKY BIT ( t ) Part-5 Permissions Special Permissions
  • 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. ● 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. ● 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. End of Part 5