chownfu – recursively chown user dirs to respective users and config file
chownfu – recursively chown user dirs to respective users and config file
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.
This program will recursively chown user dirs to respective users and config file. This is useful when I have a variety of situations in which stuff may get owned by root, but I need to maintain certain ownerships. The yaml config file is as such:
—
leo:
– /home/leo/this/dir
– /var/log/leo.log
susie.jim:
– /var/log/other.txt
This would assure that everything in the first dir is owned by leo.leo, and the log file is owned by leo. Furthermore /var/log/other.txt will be owned by susie.jim.
Download chownfu from cpan.
