LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Linux File Ownership (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-linux-file-ownership-751138/)

LXer 08-29-2009 03:00 PM

LXer: Linux File Ownership
 
Published at LXer:

You can change the owner and group of a file or a directory with the chown command. Please, keep in mind you can do this only if you are the root user or the owner of the file.

Set the file's owner:
$ chown username somefile
After giving this command, the new owner of a file called somefile will be the user username. The file's group owner will not change. Instead of a user name, you can also give the user's numeric ID here if you want.

Read More...


All times are GMT -5. The time now is 09:42 AM.