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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-19-2004, 01:30 PM
|
#1
|
Member
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116
Rep:
|
Arg!! chown /chmod
How do I change the rights /ownership of a tree structure? Command line in Debian (if theres a difference).
The thing is I copied a file structure with a reg user now I need to change it to another user. How do I do that with out going truh the hole lot?
|
|
|
09-19-2004, 01:34 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
chown -R newuser:newgroup thedirectorytochange/
This will change the user and thegroup for all files in the directory.
Use 'man chown' for more information.
|
|
|
09-19-2004, 01:34 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
I think you should read " man chmod " an "man chown ".
should be smth.like : #chown -R......
egag
|
|
|
09-19-2004, 01:34 PM
|
#4
|
Member
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253
Rep:
|
add -R argument
for example: chown vookimedlo:vookimedlo /home/vookimedlo/files/ -R
|
|
|
09-19-2004, 01:38 PM
|
#5
|
Member
Registered: Feb 2004
Posts: 781
Rep:
|
I thing chown -R newUser:newGroup /path/ should do the trick.
It will recursively change the file owner and group of the given path.
Hope it helped!
Boby
EDIT: Wow..so many post before mine..
Last edited by Boby; 09-19-2004 at 01:42 PM.
|
|
|
09-19-2004, 01:43 PM
|
#6
|
Member
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116
Original Poster
Rep:
|
Tnx, guys!
I didnt read the man (who does?). But I google for it. But didnt find anything about dirs.
Ok, I'll do the -R!
|
|
|
09-19-2004, 02:42 PM
|
#7
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Rep:
|
Quote:
Originally posted by Kanon
I didnt read the man (who does?).
|
You should start then, they're really useful. And yes I do read them
|
|
|
09-19-2004, 05:25 PM
|
#8
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
Quote:
Originally posted by Kanon
who does?
|
EVERYONE should read the man. It's there to explain how to use a program so you don't have to ask questions for which you already have an answer.
That said, "man chmod" really needs work. I learned how to use this command elsewhere...the man page explained what the command does, but you'd have to already know how to use it to understand how it was explained.
|
|
|
01-16-2005, 03:55 PM
|
#9
|
Member
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116
Original Poster
Rep:
|
Tnx, mikshaw!
Just my point really. The man pages are a reallll pain some times! Why could they not be in _plain_ english so every one understands them? lol
|
|
|
01-16-2005, 03:58 PM
|
#10
|
Member
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139
Rep:
|
they are in a concise linguistic structure. With time it becomes easier. They are very helpful though.
|
|
|
01-16-2005, 04:05 PM
|
#11
|
Member
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116
Original Poster
Rep:
|
True. But when english is the 2nd language....
And there is always the forum and google!
|
|
|
All times are GMT -5. The time now is 06:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|