LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
LinkBack Search this Thread
Old 07-21-2006, 06:27 AM   #1
vishnu
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Unhappy Changing the ownership of Files owe by a user


Hi everybody,
I am a newbie to AIX/Unix. Can any one help me in a pblm with changing the ownership of files owned bya specific user.Actually there ara lot of files in the folder which are owned by different users. but I want to change the ownership of all the files owned by a pirticular user say user1 to another user say user2 without disturbing other files or parent folder.

all replies appreciated

regards
VishnuPrasad Chaurasia
 
Old 07-21-2006, 06:37 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
something like
Code:
find . -type f -user $user1 -exec chown $user2 '{}' \;
 
Old 07-21-2006, 05:57 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 82
under the Parent folder type the following.
Code:
chgrp -R user2 ./
This is only if all the files under the Parent folder is user1. Other wise All I know to do is change files individually.

Last edited by jstephens84; 07-21-2006 at 05:59 PM.
 
  


Reply

Tags
chown


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
changing ownership and group of multiple files.. utanja Debian 3 02-21-2005 06:10 PM
changing the ownership djh Slackware 3 11-08-2004 04:16 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 12:00 PM
Something is Changing ownership for /home/user/.ICEauthority biscuitheadgrav Red Hat 1 10-08-2003 01:55 AM


All times are GMT -5. The time now is 07:01 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration