How do I switch groups in Unix?

How do I switch groups in Unix?
Answer
Use the following procedure to change the group ownership of a file.
  1. Become superuser or assume an equivalent role.
  2. Change the group owner of a file by using the chgrp command. $ chgrp group filename. group. …
  3. Verify that the group owner of the file has changed. $ ls -l filename.
 

Tìm kiếm

Back
Top