Linux Shell Command - Chown Change File Owner Group


Linux Shell Command - Chown Change File Owner Group
  Forums Index
      » Linux Forums
        » » Linux Shell Command - chown Change File Owner Group



Linux Shell Command - Chown Change File Owner Group
Post Description:
Post Tags: linux, shell, command, chown, change, file, owner, group, linux, linux support, linux questions, linux server, programming, assistance, questions, answers, tech, it, unix
This Post Has Been Viewed 1858 Times Since Wed Aug 02, 2006 4:27 pm Posted By webmaster with 1 replies
Next Post »» Linux Shell Commands - Run Command with Different Root Directory
Linux Shell Command - Chown Change File Owner Group
To Change file owner and group use:


     Code:
chown


example:

     Code:
chown username filename

Leave Your Comments
* Your Name

  * Your Email Address (Will Not Be Published)

* Your Comments


Add Picture To Comments
Yes No             upload
Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

     




Comments and replies About Linux Shell Command - Chown Change File Owner Group






:: 1 :: #38356 - Reply By chown On Sat Jan 26, 2008 5:55 pm
about chown

command for system v that changes the owner of a file.

syntax

chown [-r] newowner filenames


-r change the permission on files that are in the subdirectories of the directory that you are currently in.
newowner the alias/username of the new owner of the file.
filenames the file that you are changing the rights to.

examples

chown chope file.txt - give permissions as owner to user chope.

related commands

chmod