Next: file commands compress, Previous: file commands perms, Up: file commands [Contents][Index]
Declare the intention to use the programs required to change file owner and group. Declaring the intention to use a program
The programs are: chown
, chgrp
, stat
.
To change the file owner and group one may request the use of sudo
: just request a user
before invoking the following function. Executing a program
Change the file owner for pathname; owner must be in a form accepted by chown
.
The optional arguments opt are handed to chown
as options.
Change the file group for pathname; group must be in a form accepted by chgrp
.
The optional arguments opt are handed to chgrp
as options.
Print the owner of the file as symbolic name.
The function variant _var
stores the result in the variable _RV, rather than print it;
Result variables.
Print the group of the file as symbolic name.
The function variant _var
stores the result in the variable _RV, rather than print it;
Result variables.
Raw interface to chown
. The mandatory argument pathname is handed to
chown
as argument. The optional arguments opt are handed to chown
as
options.
Raw interface to chgrp
. The mandatory argument pathname is handed to
chgrp
as argument. The optional arguments opt are handed to chgrp
as
options.
Next: file commands compress, Previous: file commands perms, Up: file commands [Contents][Index]