so i have this startup script i run after re OSing my server:
- Installs drivers
- Mounts Zpool
- Adds users and smb users and SMB shares.
The only things that survives the new OS is my Zpool of which most files are owned by bob lets say and some files in my docker volume folder are owned by root , because sensitive stuff.
In my script i
sudo chown -R all the files in my Zpool BUT i found out i don't want to do that because of the root-owned files and dir. of my docker volumes which i want to keep the ownership intact.
So what I really want is to change the ownership of the files owned by my example "bob" user from what it was previously to what it is now, without changing my files owned by "root" in this specific folder.
- How can i
chownall the files in my Zpool and skip entirely a specific folder inside?
- Do i even need to
chownall the files if my username doesn't change between new installs of the same OS?
- What about different OS?