NAME
chownfu - recursively chown user dirs to respective users and config file
USAGE
chownfu [OPTION]...
OPTION
-d debug
-h help
-v version
-N do not chown user specs in conf
-u chown for /home/* users
-t don't run, just show what would happen
DESCRIPTION
I work as root often. Stuff in /home/username needs to be owned by username. This can recursively chown stuff to that, depending on what users are found.
By default this looks inside your /etc/chownfu.conf for instructions. If you use the -u flag, we recursively seek users in /home/* to fix ownerships.
TARGET AUDIENCE
You're a sysadmin and you need to make sure that parts of the system are owned by certain user/groups.
/etc/chownfu.conf
If found, this YAML config file lists user/group to paths to chown.
---
leo: /home/otherstuff
cham.cham: /var/www
dyer.apache:
- /home/dyer
- /home/ruffus
- /var/log/dyer.log
With this conf, running chownfu with no flags would run this.
AUTHOR
Leo Charre leocharre at cpan dot org
COPYRIGHT
Copyright (c) 2008 Leo Charre. All rights reserved.
LICENSE
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".
DISCLAIMER
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.