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.
![]() The chown command | |
Original author(s) | Ken Thompson, Dennis Ritchie |
---|---|
Developer(s) | AT&T Bell Laboratories |
Initial release | November 3, 1971 |
Operating system | Unix and Unix-like |
Type | Command |
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: This is acceptable.
gollark: I don't think it's *entirely* free, there are roughly consistent patterns.
gollark: ↑ revised marketing material
gollark: https://media.discordapp.net/attachments/461970193728667648/779802718075355166/unknown.png
gollark: Exactly!
References
External links
![]() |
The Wikibook Guide to Unix has a page on the topic of: Commands |
- – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group
- chown manual page
- The chown Command by The Linux Information Project (LINFO)
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.