chown

The command chown, an abbreviation of change owner, is used on Unix and Unix-like operating systems to change the owner of file system files, directories. Unprivileged (regular) users who wish to change the group membership of a file that they own may use chgrp.

chown
The chown command
Original author(s)Ken Thompson,
Dennis Ritchie
Developer(s)AT&T Bell Laboratories
Initial releaseNovember 3, 1971 (1971-11-03)
Operating systemUnix and Unix-like
TypeCommand

The ownership of any file in the system may only be altered by a super-user. A user cannot give away ownership of a file, even when the user owns it. Similarly, only a member of a group can change a file's group ID to that group.[1]

Syntax

chown name_of_new_owner file_name
chown newuser:newgroup file_name
gollark: Unfortunately, the ones satisfying this basically always tend to just be the ones with the lowest start population.
gollark: End population > start population.
gollark: *But*, generating an interesting one takes many, many runs, and *checking for* an interesting one takes one run.
gollark: Yes.
gollark: You would seed it with initial data determinstically.

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.