LinuxQuestions.org
Review your favorite Linux distribution.
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 11-14-2005, 03:00 PM   #1
Hans Zilles
LQ Newbie
 
Registered: Oct 2005
Location: Stockton, CA
Distribution: SuSE 9.x
Posts: 16

Rep: Reputation: 0
Question How to chown -R don.lab * for don.users


Problem...
"don.users" has files scattered all over the place.
I need to change all of them and only them to "don.lab".

Question...
Do I have to hunt them down and change them one by one
or
is there a way to apply chown only to files that have a UID of "don.users"?
 
Old 11-14-2005, 03:07 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Perhaps something like: find / -user don -group users -print | xargs chgrp lab
Or from current dir: find . -user don -group users -print | xargs chgrp lab
 
Old 11-14-2005, 05:52 PM   #3
Hans Zilles
LQ Newbie
 
Registered: Oct 2005
Location: Stockton, CA
Distribution: SuSE 9.x
Posts: 16

Original Poster
Rep: Reputation: 0
find . -user don -group users -print | xargs chgrp lab
produced....
xargs: unmatched single quote

however...
find . -user don -group users -exec chown don.lab {} \;
worked!

Thankyou.
 
Old 11-15-2005, 08:53 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Forgot. Thanks for posting the working solution.
 
  


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
what would happend if I donīt use suid? little_ball Slackware 1 12-02-2004 06:28 PM
Donīt have swap partition Jozsef Linux - Newbie 3 10-08-2004 04:36 PM
Suse dontīt boot X; donīt ask for root passwd, YAST donīt work... carrie Linux - Newbie 4 10-08-2004 08:46 AM
Donīt know how to setup (routing) liutom Linux - Networking 1 05-21-2004 05:51 PM
altgr don' t work intrip Linux - Hardware 0 12-14-2003 02:41 PM


All times are GMT -5. The time now is 12:03 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration