Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

More on LinuxToday


Linux File Ownership

Sep 01, 2009, 04:04 (1 Talkback[s])
(Other stories by Nana Langstedt)

[ Thanks to Ian MacGregor for this link. ]

"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.

"You can also set the file's group at the same time. If the user name is followed by a colon and a group name, the file's group will be changed as well.

$ chown username:usergroup somefile After giving this command, somefile's new owner would be user username and the group usergroup."

Complete Story

Related Stories: