Hello everyone: As you may remember from 'dumb guy number 1', I saved my old /home/mike directory on a separate HD and was able to recover all of my working files. That's the good news. The bad news is that they all are now listed as ROOT everything (user, group). I know there's commands to change individual files, etc. (chmod, chown), but is there a way I can change the permissions of a directory and all of its contents without doing each file individually? Any ideas greatly appreciated. Otherwise I'll be here until Thanksgiving :-\ Cheers, Mike
Mike Roy wrote:
Hello everyone: As you may remember from 'dumb guy number 1', I saved my old /home/mike directory on a separate HD and was able to recover all of my working files. That's the good news. The bad news is that they all are now listed as ROOT everything (user, group). I know there's commands to change individual files, etc. (chmod, chown), but is there a way I can change the permissions of a directory and all of its contents without doing each file individually? Any ideas greatly appreciated. Otherwise I'll be here until Thanksgiving :-\ Cheers, Mike
man chown(1) .... you can call chown as 'chown -R ....' to recursively change ownerships .... -- William A. Mahaffey III --------------------------------------------------------------------- Remember, ignorance is bliss, but willful ignorance is LIBERALISM !!!!
Søndag 14 august 2005 17:27 skrev Mike Roy:
Hello everyone: As you may remember from 'dumb guy number 1', I saved my old /home/mike directory on a separate HD and was able to recover all of my working files. That's the good news. The bad news is that they all are now listed as ROOT everything (user, group). I know there's commands to change individual files, etc. (chmod, chown), but is there a way I can change the permissions of a directory and all of its contents without doing each file individually?
What worked for me in the past was to
as root
change owner/group to my previous user setup on previous install
then mount it and it should be allright.
Depending on what you're upgrading from you might have to run
chgrp -R users Any ideas greatly appreciated. Otherwise I'll be here
until Thanksgiving :-\
Cheers,
Mike
participants (3)
-
Johan Nielsen
-
Mike Roy
-
William A. Mahaffey III