LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2002, 01:16 AM   #1
gogo
Member
 
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Question 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
 
Old 09-23-2002, 01:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 09-24-2002, 07:01 AM   #3
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Hi Chris,

Thanks for your help.

gogo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD Command dudeman41465 Linux - Software 1 09-26-2005 02:29 AM
chmod command linuxtesting2 Linux - Newbie 2 09-03-2004 12:02 PM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 05:44 PM
chmod command not affecting files blueleft Linux - General 4 08-09-2003 11:26 AM
RH 8.0 don't let me change attrib by chmod command explorer1979 Linux - General 2 10-27-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration