Wednesday, June 4, 2008

Changing the ownership of a directory or file

use the chown command: chown username dirname

Owner of a directory can be queried using ls -l (3rd column)

chgrp changes the group of a directory. Group name is the 4th column in the results of ls -l

No comments:

Post a Comment