CIS/CSE 643: Computer Security (Syracuse University)
The chown command.
% chown wedu file
Unix Security Overview: 3
Q: Can we allow a user to change the owner of files to another user? ∗ No. Actually, only root can use chown. Why? ∗ We will understand why after we have learned Set-UID
Change the group of files
The chgrp command.
% chgrp seed
Q: Can we allow a user to change the group of files to another group? ∗ Yes/No. If you want to change to group XYZ, you must be a member of XYZ ∗ The reason is similar to the chown command (Set-GID).
% whoami (to print out your current user name)
(display both uid and gid)
% man chmod
(find the manual for the chmod command)
September 7, 2009