BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 25th, 2002, 03:55 PM
elysium elysium is offline
Gentleman of leisure
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Sweden
Posts: 44 elysium User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m
Reputation Power: 7
chown dirs recursively?

How do I chown directorys recursively? E.g. subdirectorys and all files in the subdirs. I tried pipe-ing ln to chown, but I'm an idiot, so I probably did it all wrong. Help?

Reply With Quote
  #2  
Old June 25th, 2002, 05:02 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Use -R.

Reply With Quote
  #3  
Old June 25th, 2002, 05:39 PM
elysium elysium is offline
Gentleman of leisure
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Sweden
Posts: 44 elysium User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m
Reputation Power: 7
I did.
Code:
ls -R | chown someuser *

Reply With Quote
  #4  
Old June 25th, 2002, 06:02 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
not in ls, in chown
__________________
And you know I mean that.

Reply With Quote
  #5  
Old June 25th, 2002, 06:41 PM
elysium elysium is offline
Gentleman of leisure
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Sweden
Posts: 44 elysium User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 31 m
Reputation Power: 7
Thanks
And it was in man too. I must have misunderstood the description.

Reply With Quote
  #6  
Old June 25th, 2002, 07:32 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You don't even need to run ls for that at all. Just try something like this:

chown -R elysium:admin /home/elysium

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > chown dirs recursively?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway