LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Chmod command (https://www.linuxquestions.org/questions/linux-general-1/chmod-command-30997/)

gogo 09-23-2002 01:16 AM

Chmod command
 
Hi,

I use redhat 7.3. I have a directory which has a lot of sub-directories and files.

How can I type one command on console window to change all these sub-directories and files' user mode and permission?

e.g. all of them have the user name "userA" and permission "755". I want to change them to be "userB" and permission "777".

How can I do it in one command?

Thanks

gogo

acid_kewpie 09-23-2002 01:33 AM

you can't you need to cmod them and then chown them. the -R flag makes it recursive, but then you knew that already cos you've read the mapage right? :)

gogo 09-24-2002 07:01 AM

Hi Chris,

Thanks for your help.

gogo


All times are GMT -5. The time now is 04:40 PM.