View previous topic :: View next topic |
Author |
Message |
anil_et Tux's lil' helper
Joined: 22 Jul 2002 Posts: 98
|
Posted: Sat Nov 02, 2002 4:42 am Post subject: Permissions on the home directory |
|
|
Hi there,
After reinstalling Linux (Gentoo) I used to copy my Kde desktop settings and configurations from the old installations.(or from My Mandrake Partition)
After copying the ownership permissions on the files changed to root
Most of the files I kave changed manually
Is there any way to retain the original permissions of the files after copying them to the new locatins
Pls help
Thanks in advance
Anil |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Nov 02, 2002 5:00 am Post subject: |
|
|
For most tools, this is the -p option. True for at least cp, cpio, tar. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
anil_et Tux's lil' helper
Joined: 22 Jul 2002 Posts: 98
|
Posted: Mon Nov 04, 2002 4:14 pm Post subject: |
|
|
Thank you for your replay.
In a related subject how can I change the owner and group of a directory, all the files in that, subdirectories and the files together
My situation is like this.
I have downloaded some of the icons and other files and are saved in a folder in the /home directory I want to make sure that all the files are accessible to all the users Presently all the files are owned by root
I used to chmod the directory cd to directory and chmod all the files
and cd to subdiredtory....
I know that there is some other way to do this
Pls help
Thank you
Anil |
|
Back to top |
|
|
rlyacht Apprentice
Joined: 17 Apr 2002 Posts: 170
|
Posted: Mon Nov 04, 2002 4:46 pm Post subject: |
|
|
Many commands accept a -r or -R (recursive) flag. Check the man page for chmod and chown to see which is right, but you can certainly do something like this (as roo)
Quote: |
chown -R someone .
|
|
|
Back to top |
|
|
Unixmonkey n00b
Joined: 18 Oct 2002 Posts: 23
|
Posted: Tue Nov 05, 2002 12:45 am Post subject: |
|
|
chown -R anil_et /home/anil_et
chgrp -R users /home/anil_et _________________ "Trading freedom for security is bad enough. Trading freedom for entertainment is disgusting." |
|
Back to top |
|
|
anil_et Tux's lil' helper
Joined: 22 Jul 2002 Posts: 98
|
Posted: Tue Nov 05, 2002 12:31 pm Post subject: |
|
|
Hi there
Thank yuo for the advice
Anil |
|
Back to top |
|
|
|