HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- chown group of file to new owner
Operating System - HP-UX
1833730
Members
2511
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 12:52 AM
01-30-2008 12:52 AM
chown group of file to new owner
Hi all,
Is there any comamnd to change the file own by A to B in 1 command execute for all files under A to B.
Means no need to do one by one.
This is because 1 staff has create few files under her name and she resigned. I need to remove her id from uniox box and I don't want any impact like her file could not be read when her id gone.
Pls advice.
Is there any comamnd to change the file own by A to B in 1 command execute for all files under A to B.
Means no need to do one by one.
This is because 1 staff has create few files under her name and she resigned. I need to remove her id from uniox box and I don't want any impact like her file could not be read when her id gone.
Pls advice.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 01:08 AM
01-30-2008 01:08 AM
Re: chown group of file to new owner
The UNIX way: there are lots of tools, each of which will do one thing. To accomplish greater things, you join two or more of the tools together.
In this case, you'll need "find" to find the files that must be changed, and "chown" to make the change.
find / -user A -exec chown B {} \+
will search through the entire system, and change the ownership of all the files and directories owned by user A to user B.
MK
In this case, you'll need "find" to find the files that must be changed, and "chown" to make the change.
find / -user A -exec chown B {} \+
will search through the entire system, and change the ownership of all the files and directories owned by user A to user B.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 01:10 AM
01-30-2008 01:10 AM
Re: chown group of file to new owner
Hi
Please go thru this thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=764047&admit=109447626+1201684072309+28353475
Thanks & Regards
Ramesh
Please go thru this thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=764047&admit=109447626+1201684072309+28353475
Thanks & Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2008 02:05 AM
01-30-2008 02:05 AM
Re: chown group of file to new owner
Hi,
if all files and dirs reside under a list of directories AND all files and dirs should be changed (even if they have different owner/group), you can call
chown -R newuser:newgrp dir1 dir2 ...
mfG Peter
if all files and dirs reside under a list of directories AND all files and dirs should be changed (even if they have different owner/group), you can call
chown -R newuser:newgrp dir1 dir2 ...
mfG Peter
The Universe is a pretty big place,
it's bigger than anything anyone has ever dreamed of before.
So if it's just us, seems like an awful waste of space, right?
Jodie Foster in "Contact"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP