Difference between revisions of "Centos Permissions"

From rbachwiki
Jump to navigation Jump to search
(Created page with "'''View your current username''' whoami '''View your group membership''' groups")
 
Line 3: Line 3:
'''View your group membership'''
'''View your group membership'''
  groups
  groups
'''Change Group'''
chgrp sys file1
chgrp -R sys Desktop
'''Chown changes ownership and group ownership of a file'''
chown user1.root file1
chown -R user1.root Desktop

Revision as of 14:47, 5 February 2019

View your current username

whoami

View your group membership

groups

Change Group

chgrp sys file1
chgrp -R sys Desktop

Chown changes ownership and group ownership of a file

chown user1.root file1
chown -R user1.root Desktop