chown.1 (839B)
1 .Dd 2015-10-08 2 .Dt CHOWN 1 3 .Os sbase 4 .Sh NAME 5 .Nm chown 6 .Nd change file ownership 7 .Sh SYNOPSIS 8 .Nm 9 .Op Fl h 10 .Oo 11 .Fl R 12 .Op Fl H | L | P 13 .Oc 14 .Ar owner Ns Op Pf : Op Ar group 15 .Op Ar file ... 16 .Nm 17 .Op Fl h 18 .Oo 19 .Fl R 20 .Op Fl H | L | P 21 .Oc 22 .Pf : Ar group 23 .Op Ar file ... 24 .Sh DESCRIPTION 25 .Nm 26 sets the user and/or group id of each 27 .Ar file 28 to the uid of 29 .Ar owner 30 and/or the gid of 31 .Ar group 32 respectively. 33 .Sh OPTIONS 34 .Bl -tag -width Ds 35 .It Fl h 36 Preserve 37 .Ar file 38 if it is a symbolic link. 39 .It Fl R 40 Change file ownerships recursively. 41 .It Fl H 42 Dereference 43 .Ar file 44 if it is a symbolic link. 45 .It Fl L 46 Dereference all symbolic links. 47 .It Fl P 48 Preserve symbolic links. This is the default. 49 .El 50 .Sh SEE ALSO 51 .Xr chmod 1 , 52 .Xr chown 2 , 53 .Xr getgrnam 3 , 54 .Xr getpwnam 3 55 .Sh STANDARDS 56 The 57 .Nm 58 utility is compliant with the 59 .St -p1003.1-2013 60 specification.