I have a problem with owner and group in passwd and shadow files in all entire home directory I am looking for a way to mass update all using the find command, can you help me, please?
I can find these files with
but I dont know how to replace * by username and domain to chown these files with something like
I have considered to use /scripts/chownpublichtmls but in this server the /home/public_html directory is owned by username but the group is nobody.
Thanks a lot.
/home/user1/etc/domain1/passwd
/home/user1/etc/domain1/shadow
/home/user2/etc/domain2/passwd
/home/user2/etc/domain2/shadow
/home/user1/etc/domain1/shadow
/home/user2/etc/domain2/passwd
/home/user2/etc/domain2/shadow
I can find these files with
HTML:
find /home/*/etc/*/ -user root
HTML:
chown username:username /home/username/ect/domain/
Thanks a lot.