LinuxQuestions.org
Visit Jeremy's Blog.
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 09-19-2004, 01:30 PM   #1
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Rep: Reputation: 15
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?
 
Old 09-19-2004, 01:34 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
chown -R newuser:newgroup thedirectorytochange/

This will change the user and thegroup for all files in the directory.

Use 'man chown' for more information.
 
Old 09-19-2004, 01:34 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
I think you should read " man chmod " an "man chown ".
should be smth.like : #chown -R......

egag
 
Old 09-19-2004, 01:34 PM   #4
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
add -R argument

for example: chown vookimedlo:vookimedlo /home/vookimedlo/files/ -R
 
Old 09-19-2004, 01:38 PM   #5
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
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.
 
Old 09-19-2004, 01:43 PM   #6
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
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!
 
Old 09-19-2004, 02:42 PM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
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
 
Old 09-19-2004, 05:25 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
 
Old 01-16-2005, 03:55 PM   #9
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
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
 
Old 01-16-2005, 03:58 PM   #10
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
they are in a concise linguistic structure. With time it becomes easier. They are very helpful though.
 
Old 01-16-2005, 04:05 PM   #11
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
True. But when english is the 2nd language....
And there is always the forum and google!
 
  


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
chmod/chown and folders :) chibi Linux - Newbie 2 04-28-2005 05:56 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 01:57 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 10:01 AM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 04:27 PM
reverse chmod/chown changes demmylls Linux - General 1 02-09-2004 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 PM.

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