|
#1
| ||||
| ||||
| chown recursive? Hello, I would like to change the owner of an entire directory structure, including the files. chown -R otheruser ~origuser/Documents/ only changes the directories in the structure, not the files. How do I include them in the command?
__________________ Jove Talk doesn't cook rice. |
|
#2
| |||
| |||
| however ... both ways work for me..... ??????????????????????????????????????????????????? your demo syntax is a bit strange chown -R otheruser ~origuser/Documents/ who is other user whois origuser who are you logged in as? [short answer] do you have permissions to do that? [long answer] don't do that. let's say... ~ = $HOME which it does so if your user name is joe then ~/Documents = /Users/joe/Documents ls -al ~ gives drwx------ 97 joe wheel 3254 Oct 28 23:02 Documents/ as one of the entries so you want to give the permission to sam to read that directory better to add sam and joe to a group which can read that directory in Netinfo chown -R :mygroup ~/Directory chmod 770 ~/Directory anyway the -R certainly works if you have the permission if not you will have to use sudo. anyway, changing group ownership and readability is much better than changing the owner. |
|
#3
| |||
| |||
| more ... yes .... and if you want you can do it after su root and take off "/" at end |
|
#4
| ||||
| ||||
| Just a reply to "try without the backslash". This: / is a slash, not a backslash. This: \ is a backslash. |
|
#5
| |||
| |||
| sorry Quote:
on top of that around here \ looks like ¥ (yen mark) So that is why the japanesr business people thinks using windows will bring them money... |
|
#6
| ||||
| ||||
| hehehehe |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recursive search and replace? | Ripcord | Unix & X11 | 3 | November 13th, 2003 10:13 AM |
| chown command line argument not working | bossa nova | Unix & X11 | 8 | June 5th, 2003 11:28 AM |
| chown not working | pedz | Unix & X11 | 2 | June 4th, 2003 09:01 AM |
| Curse you, chown! | davidbrit2 | Unix & X11 | 9 | October 14th, 2002 06:53 PM |
| Missing chown & misleading man pages | ntwyman | Mac OS X System & Mac Software | 4 | July 6th, 2001 03:49 PM |