Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chown command on Compaq True64 unix server

Status
Not open for further replies.

jodugg

Programmer
Jun 22, 2004
9
US
I have 100 files in a directory. Roughly half of them are owned by one user and the other half are owned by another user.

How can I use the chown command to move ownership of ALL these files to one of the two users?

Thanks!!
 
man chown

chown user2own /path2directory/*

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
chown -R owner:group /path/to/dir

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
cd into your directory.

chown owner:group *

or

chown owner *
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top