Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permissions on the home directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
anil_et
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 98

PostPosted: Sat Nov 02, 2002 4:42 am    Post subject: Permissions on the home directory Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 02, 2002 5:00 am    Post subject: Reply with quote

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
View user's profile Send private message
anil_et
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 98

PostPosted: Mon Nov 04, 2002 4:14 pm    Post subject: Reply with quote

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 :oops: :twisted:
Back to top
View user's profile Send private message
rlyacht
Apprentice
Apprentice


Joined: 17 Apr 2002
Posts: 170

PostPosted: Mon Nov 04, 2002 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Unixmonkey
n00b
n00b


Joined: 18 Oct 2002
Posts: 23

PostPosted: Tue Nov 05, 2002 12:45 am    Post subject: Reply with quote

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
View user's profile Send private message
anil_et
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 98

PostPosted: Tue Nov 05, 2002 12:31 pm    Post subject: Reply with quote

Hi there
Thank yuo for the advice
Anil
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum