LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Arg!! chown /chmod (https://www.linuxquestions.org/questions/linux-newbie-8/arg-chown-chmod-232553/)

Kanon 09-19-2004 12:30 PM

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?

leonscape 09-19-2004 12:34 PM

chown -R newuser:newgroup thedirectorytochange/

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

Use 'man chown' for more information.

egag 09-19-2004 12:34 PM

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

egag

Vookimedlo 09-19-2004 12:34 PM

add -R argument

for example: chown vookimedlo:vookimedlo /home/vookimedlo/files/ -R

Boby 09-19-2004 12:38 PM

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.. :rolleyes:

Kanon 09-19-2004 12:43 PM

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!

darkleaf 09-19-2004 01:42 PM

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 :)

mikshaw 09-19-2004 04:25 PM

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.

Kanon 01-16-2005 02:55 PM

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

dns21 01-16-2005 02:58 PM

they are in a concise linguistic structure. With time it becomes easier. They are very helpful though.

Kanon 01-16-2005 03:05 PM

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 01:08 AM.