Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-01-2007, 01:53 PM   #1
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
Is there a command that gives you ownership of a folder and all it's sub-folders

I have Fedora Core 5 and use KDE.

I am able to change ownership of a folder with "chown ID directory" (no quotes). But I would like to be able to change the ownership of that folder/directory and all sub-folders. Can someone tell me if it's possible and if so, how to do it?


Old 06-01-2007, 01:54 PM   #2
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Rep: Reputation: 15
check the man page, it's either -r or -R
Old 06-01-2007, 01:55 PM   #3
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
chown -R ID directory
Old 06-01-2007, 01:55 PM   #4
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
You can use a username instead of an ID as well, of course.

Last edited by jay73; 06-01-2007 at 01:56 PM.


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
getting strings for all the files and folders in a folder Hard_Working_ Programming 6 04-07-2007 10:55 AM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 12:00 PM
Website Hosting and file/folder ownership vbfischer Linux - Security 2 07-01-2004 12:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 PM.

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