Monday, March 19, 2012

Ownership

# ls -l file_name [to show permission & owner of a file]

# ls -ld folder_name [to show permission & owner of a folder]

# chown user_name.group_name file_name [to change the owner of a file]

# usermod -G group_name user_name [to add a user into a group]

or

# vi /etc/group then edit the file .

No comments:

Post a Comment