Both chown, and chgrp can be used recursivly with the -R option. If both 
users are in the same group (ie users) then you just need chown -R, but if 
they are different groups, then you will need to change the groups  too with 
chgrp -R
        I dont know about changing ownership with tar, but a good untar command is:
tar - xvfp blah.tar (this should restore files properly)
to tar your files recursively use this:
tar -cvf blah.tar

but for real fun you can do it with one line, say you have a dir named blah 
in user1's home, and you want it in user2's home too, change to user1's blah 
directory ans issue this:

tar cf - . | ( cd ../../user2/blah ; tar xvpf -)

the above 2 are pretty safe... but the bottom one can be real fun if you goof 
badly :)

Jamie

On Sunday 20 January 2002 12:46, you wrote:
> I've been having problems with gnome and I think I'm getting close to
> finding out why.  When I want to change backgrounds it will not change. 
> Anything to do with the gnome controll center doesn't work.  If I change to
> a different user I can do the things I want to do.  I started compare the
> directories and files of the good  and the problem user and found what I
> think might be the problem.  Each directory has a a file size of 1024 and
> this one particular directory .gnome has a file size of 19456.  What I'd
> like to do is copy a .gnome directory from another user but when I do this
> the ownership remains. I know there is a tar command which changes
> ownership recursively.  Does anyone know it. Or is there a way to
> straighten out the file size for that directory and sub directories.  I've
> been wondering why I install something in the panel and the next time I
> boot up there gone.  And I am not able to change the backgrounds.
>
> Another question does anyone out there use alsa for sound?  My sound is
> messed up and I'd like to get it going again.
>
> Thanks
> Tim

Reply via email to