2010年7月9日星期五

Change the permission of file in linux

Add the new user account for linux:

Useradd id

-. Changing file owner or group : chown, chgrp

For instance, if George decides to give ownership of myfile to Robert, he can simply type:

chown robert myfile

Also, if Robert later on decides to make the file only available to members of the group "SeniorAdmin" group rather than to those of the group "Administrators", he can type:

chgrp senioradmin myfile

没有评论:

发表评论