On Tue, 06 Jul 2004 20:08:36 -0600
Glenn <[EMAIL PROTECTED]> wrote:

> On Tuesday 06 July 2004 12:23, hackhound wrote:
> > I had to reinstall ML10 due to hard drive crash over the weekend.  Now
> > I am experiencing tighter security than I used to when it comes to
> > browsing directories in Konqueror or from the console.  Previously I
> > was able to see all directories in Konqueror from my user account.
> > Some could not be accessed, and they had a little padlock icon to
> > indicate so.  Now Knoqueror will only allow me to access my home
> > directory.  I have no clue what I need to modify in my user account to
> > regain these rights.
> >
> > Thanks much,
> > Hackhound
> 
> I had this happen to me once, and found that the permissions for a ton
> of files changed from my username to the numeric userid (and the wrong
> one at that).  Since the userid was "502" (this was a while ago.  Could
> have been 501, instead), instead of "glenn", I was refused access.  All
> of the affected files had the lock icon.  I used Konqueror as root to
> change them to "glenn", and all was well again.
> 

I frequently re-install due to making stupid experimental mistakes, and
almost always forget the order in which I assigned my user accounts (7 of
them) in the previous install and the UID/GID pairs get messed up as a
result.

I have my /home and /usr/local on their own partitions, and they are not
formatted during the installation

There is a easy fix for this and it's worth having this little
script around. Just run the following script from /home as root:

==== cut here ===
# fixusers - fix user uids and gids
$ cd /home
$ for U in * ; do echo $U ; chown -R $U:$U $U ; done
==== cut here ===

It returns a list of the user directories as it progresses and takes
around 30 seconds on my /home with around 8gig of data.

Cheers

John (NZ)

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to