Hi Marc, On 04/17/2013 06:19 PM, Marc Chamberlin wrote:
Thanks Berny for taking the time to reply, and yes how I KNOW that UID/GID changes can be a problem! ;-) I don't know about a file called gshadow, nor do I have any man pages on it, but I am aware of the other relevant files - passwd, shadow, and group and have studied the man pages for each.
Ah, sorry, gshadow does not exist anymore. It was similar to what the shadow file is to passwd, but for the group file. No worries.
The approach you suggested, to change the actual entries in the passwd and group files to reflect the UID/GID that I would want for each ID will not work, if it is done after the fact that files and directories have already been created and installed.
Right. I assumed that the accounts and the files did not yet exist.
And I don't know of a tool that will use these sort of edits/changes and update all the files and directory properties, throughout the entire file system, to reflect the changes made to the UID/GID within the passwd and group files.
If you only use plain UNIX permissions, i.e., not ACLs, then chown and chgrp is the right tool for that purpose. The following command will change the ownership of all files with the UID 1000 to 2000, restricted to the current file system (-xdev): $ find . -xdev -uid 1000 -print0 | xargs -0 chown -c 2000 Likewise for groups - changing the group from GID 100 to 200: $ find . -xdev -gid 100 -print0 | xargs -0 chgrp -c 200 Documentation about chown, chgrp: info coreutils "chown invocation" info coreutils "chgrp invocation" Ah yes, only root can do that ;-)
Thanks for the nice day wish, it IS a nice day today here in Washougal, Washington! You too! Marc..
Cool, that city looks like a nice place to live! Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org