Jump to content

chown

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Herakleitoszefesu (talk | contribs) at 09:25, 24 January 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


chown
Developer(s)AT&T Bell Laboratories
Initial releaseNovember 3, 1971; 52 years ago (1971-11-03)
Operating systemUnix and Unix-like
TypeCommand

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

See also

References