LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-23-2003, 02:39 PM   #1
jaan kaer
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Debian testing
Posts: 69

Rep: Reputation: 15
what order for all file rights includinb subfolders?


i understand i can change the owner or righst with chown or shmod order.
but that does'nt include subfolders and all files in folder.
so, can anyone please give me exact command line for changing file owner for /home/user/stuff/, including ALL subfolders and files in directory /stuff/?
 
Old 11-23-2003, 02:48 PM   #2
MG-Cloud
Member
 
Registered: Nov 2003
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
Use the -R switch (for recursive)
chown -R user:group /home/user/stuff
 
Old 11-23-2003, 02:50 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
man chmod
man chown

Hint: -R (or -r) in most Linux commands means
--recursive

Cheers,
Tink
 
Old 11-23-2003, 03:57 PM   #4
jaan kaer
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 15
thanks!

btw, i have another question: how do i end man pages? i mean, whenever i type man something, i can see manual, but can not reset to "normal" console mode.

hope you understood me.
 
Old 11-23-2003, 05:01 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by jaan kaer
thanks!
btw, i have another question: how do i end man pages? i mean, whenever i type man something, i can see manual, but can not reset to "normal" console mode.

hope you understood me.
Press Q :}


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba and File order cantthinkofausername Linux - Networking 1 10-14-2005 08:58 AM
VSFTPD file rights hiasl Linux - Networking 2 11-15-2004 11:23 AM
file rights changed? monc Linux - Networking 3 11-19-2003 09:20 PM
Set rights to a file for different users? Scratchmaster Linux - Security 2 04-30-2002 03:31 PM
groups and file rights tstuhr Linux - Networking 1 10-05-2001 01:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration