Wednesday, October 26, 2011

PERMISSION COMMAND

CHMOD (Change file permission)
--> There are two method of changing file permissions
+ With the abbreviation / alpha
+ With the numbers
--> Above method will use chmod command

CHOWN (Change user ownership)

--> The chown (change owner) command can be used to change ownership of file or directory.
--> chown accepts the username of the user who should get ownership.

--> This command also can be used to change the group ownership instead of the user ownership of file or directory.
--> Chown also can be use to change both user and group of specify file simultaneously in the fomat of [user:group].

--> Example:
# chown Abu:OSOS test.txt


CHOWN (Change user ownership)

--> The chgrp command used to change the group with which a file is associated

--> Example:
# chgrp OSOS test.txt

2 comments:

  1. are this command can use in LINUX???

    ReplyDelete
  2. pls we want more detail this topic.
    how about chmod command that have write, read and execute??

    ReplyDelete