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
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?
That is what 'man' files are for. man chown chown mike:users -R /home/mike will reassign owner to mike and group to users for every file/directory under /home/mike and the directory /home/mike. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
Patrick Shanahan wrote:
* Mike Roy
[08-14-05 10:28]: 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?
That is what 'man' files are for.
man chown
chown mike:users -R /home/mike
will reassign owner to mike and group to users for every file/directory under /home/mike and the directory /home/mike.
Hello everyone: That worked!!!! :-) Thanks Mike
* Mike Roy
That worked!!!! :-)
But you still have a possible problem. Were there files that you did not want to have those perms???? Because they now *all* have mike:users. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
On Sun, 2005-08-14 at 12:53 -0500, Patrick Shanahan wrote:
* Mike Roy
[08-14-05 12:04]: That worked!!!! :-)
But you still have a possible problem. Were there files that you did not want to have those perms???? Because they now *all* have mike:users.
Patrick, isn't a mike:users about what SuSE does when it takes over an existing /home/mike directory on a new install, with the old /home partition?
* Mike McMullin
Patrick, isn't a mike:users about what SuSE does when it takes over an existing /home/mike directory on a new install, with the old /home partition?
I don't know as I have never "upgraded". I always do a clean install with a separate /home/{user} and then copy settings I want to preserve. But I do have owners other than {user}:users under /home/{user}. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
On Mon, 2005-08-15 at 12:13 -0500, Patrick Shanahan wrote:
* Mike McMullin
[08-15-05 00:20]: Patrick, isn't a mike:users about what SuSE does when it takes over an existing /home/mike directory on a new install, with the old /home partition?
I don't know as I have never "upgraded". I always do a clean install with a separate /home/{user} and then copy settings I want to preserve. But I do have owners other than {user}:users under /home/{user}.
When I updated 8.2 to 9.1 it prompted for user creation and did change the ownership which as I remember in 9.1 first users were based on 1000 prior to that they were 500. Suse does not trash your home directory you do. I have always done my clean installs on the same drive and have yet to lose my home directory. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
On Mon, 2005-08-15 at 12:13 -0500, Patrick Shanahan wrote:
* Mike McMullin
[08-15-05 00:20]: Patrick, isn't a mike:users about what SuSE does when it takes over an existing /home/mike directory on a new install, with the old /home partition?
I don't know as I have never "upgraded". I always do a clean install with a separate /home/{user} and then copy settings I want to preserve. But I do have owners other than {user}:users under /home/{user}.
When I updated 8.2 to 9.1 it prompted for user creation and did change the ownership which as I remember in 9.1 first users were based on 1000 prior to that they were 500. Suse does not trash your home directory you do. I have always done my clean installs on the same drive and have yet to lose my home directory. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
Patrick Shanahan wrote:
That is what 'man' files are for.
man chown
chown mike:users -R /home/mike
will reassign owner to mike and group to users for every file/directory under /home/mike and the directory /home/mike.
Yeah, but, Patrick, the big problem with man pages is that you have to already know something before you can find it :-). John Perry
* John Perry
Yeah, but, Patrick, the big problem with man pages is that you have to already know something before you can find it :-).
knowledge of chown was expressed in the OP's original post ????? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
On Sunday 14 August 2005 04:37 pm, John Perry wrote:
Patrick Shanahan wrote:
That is what 'man' files are for.
man chown
chown mike:users -R /home/mike
will reassign owner to mike and group to users for every file/directory under /home/mike and the directory /home/mike.
Yeah, but, Patrick, the big problem with man pages is that you have to already know something before you can find it :-).
John Perry
Not always..... apropos <subject>
On Sunday 14 August 2005 17:27, 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 :-\
chown -R user.group /directory chmod -R 755 /directory
On a related note, where is the proper place (and what is the proper method) to set umask on SuSE systems? .profile? .bashrc? rc.local? other? What man page covers this (and other environment adjustments)? For example, though I am in US and always install US English, I always want normal 24 hour time, not that American 2 12 hour days per day nonsense. So, I want globally en_DK rather than en_US. -- "Who of you by worrying can add a single hour to his life?" Matthew 6:27 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://members.ij.net/mrmazda/
Felix Miata wrote:
On a related note, where is the proper place (and what is the proper method) to set umask on SuSE systems?
.profile? .bashrc? rc.local? other?
If for everyone, you'd set it in /etc/profile.local, though the default is set in /etc/profile. If only for individual users, ~/.bashrc.
What man page covers this (and other environment adjustments)?
For example, though I am in US and always install US English, I always want normal 24 hour time, not that American 2 12 hour days per day nonsense. So, I want globally en_DK rather than en_US.
Where are you looking for the time? At the command prompt, I've got 24H time, even though I'm using US English.
James Knott wrote:
Felix Miata wrote:
On a related note, where is the proper place (and what is the proper method) to set umask on SuSE systems?
.profile? .bashrc? rc.local? other?
If for everyone, you'd set it in /etc/profile.local, though the default is set in /etc/profile. If only for individual users, ~/.bashrc.
No wonder I couldn't figure it out on my own. Who would think profile global but bashrc individual.
What man page covers this (and other environment adjustments)?
Again, what man page hides this gem?
For example, though I am in US and always install US English, I always want normal 24 hour time, not that American 2 12 hour days per day nonsense. So, I want globally en_DK rather than en_US.
Where are you looking for the time? At the command prompt, I've got 24H time, even though I'm using US English.
LC_TIME is how Mozilla Mail when on global en_US locale knows to use standard 24 hour time instead of the idiotic American 2 12 hours days per day. However, I did use the word "global", because I want 24 hour time regardless of context. -- "Who of you by worrying can add a single hour to his life?" Matthew 6:27 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://members.ij.net/mrmazda/
* Felix Miata
James Knott wrote:
If for everyone, you'd set it in /etc/profile.local, though the default is set in /etc/profile. If only for individual users, ~/.bashrc.
No wonder I couldn't figure it out on my own. Who would think profile global but bashrc individual.
Again, what man page hides this gem?
man bash, then search for profile. Especially read under heading "INVOCATION". -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
On Sun, 2005-08-14 at 11:27 -0400, 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 :-\
I actually posted that back in the original thread. You can kdesu konqueror and see ownerships by right clicking the directory\file and resetting them user=Mike group=users.
On Sunday, August 14, 2005 @7:28 AM, 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
chmod -R directory Greg Wallace
I just wrote:
On Sunday, August 14, 2005 @7:28 AM, 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
chmod -R directory
Greg Wallace
Oops. Should be -- chmod -R ugo directory Where u=user permissions,g=group permissions,o=others permissions. E. g., chmod -R 666 /directory... Also, instead of an absolute set of permissions, you can say u+r, u-r, g+r, g+w, etc., etc. Greg Wallace
participants (10)
-
Anders Johansson
-
Bruce Marshall
-
Carl William Spitzer IV
-
Felix Miata
-
Greg Wallace
-
James Knott
-
John Perry
-
Mike McMullin
-
Mike Roy
-
Patrick Shanahan