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.
Execute the program chown
using the given optional arguments.
Execute the program chgrp
using the given optional arguments.
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.