image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 30th, 2001, 12:00 AM
jove's Avatar
Member
 
Join Date: Nov 2000
Posts: 555
Thanks: 0
Thanked 0 Times in 0 Posts
jove is on a distinguished road
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.
Reply With Quote
  #2  
Old October 30th, 2001, 01:09 AM
McInstigator
 
Join Date: Aug 2001
Location: Tokyo
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
jimr is on a distinguished road
Post try without the final backslash

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.
Reply With Quote
  #3  
Old November 8th, 2001, 09:38 AM
Registered User
 
Join Date: Nov 2001
Location: France
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
jojo is on a distinguished road
more ...

yes ....
and if you want you can do it after su root and take off "/" at end
Reply With Quote
  #4  
Old November 8th, 2001, 10:34 AM
Jadey's Avatar
sosumi
 
Join Date: Apr 2001
Location: CANADA
Posts: 771
Thanks: 0
Thanked 0 Times in 0 Posts
Jadey is on a distinguished road
Just a reply to "try without the backslash". This: / is a slash, not a backslash. This: \ is a backslash.
Reply With Quote
  #5  
Old November 8th, 2001, 12:27 PM
McInstigator
 
Join Date: Aug 2001
Location: Tokyo
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
jimr is on a distinguished road
sorry

Quote:
Originally posted by Jadey
Just a reply to "try without the backslash". This: / is a slash, not a backslash. This: \ is a backslash.
some nightmare from windows must've attacked my brain...

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...
Reply With Quote
  #6  
Old November 8th, 2001, 12:51 PM
Jadey's Avatar
sosumi
 
Join Date: Apr 2001
Location: CANADA
Posts: 771
Thanks: 0
Thanked 0 Times in 0 Posts
Jadey is on a distinguished road
hehehehe
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

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


All times are GMT -5. The time now is 11:52 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.