---

Linux File Ownership

[ 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

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis