chown can be used to change both user and group at the same time: chown -R roger.users blah/
Around Sun,Jan 20 2002, at 11:15, Linux Rocks !, wrote: >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 >> Tim -- Roger --------------------------------------------------------------------------- [EMAIL PROTECTED] The following is generated by /usr/games/fortune: Don't cook tonight -- starve a rat today!
