File Ownership Commands: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
== AIX File Ownership Commands == | == AIX File Ownership Commands == | ||
=== No User Corresponds to File's Numeric User ID === | === No User Corresponds to File's Numeric User ID === | ||
#: '''<tt># find <directory> -nouser | xargs chown <new user></tt>''' | #: '''<tt># find <directory> -nouser | xargs chown -h <new user></tt>''' | ||
=== No Group Corresponds to File's Numeric Group ID === | === No Group Corresponds to File's Numeric Group ID === | ||
#: '''<tt># find <directory> -nogroup | xargs chgrp <new group></tt>''' | #: '''<tt># find <directory> -nogroup | xargs chgrp <new group></tt>''' |
Revision as of 02:15, 3 December 2021
Linux File Ownership Commands
No User Corresponds to File's Numeric User ID
- # find <directory> -nouser -print0 | xargs -0 chown <new user>
No Group Corresponds to File's Numeric Group ID
- # find <directory> -nogroup -print0 | xargs -0 chgrp <new group>
AIX File Ownership Commands
No User Corresponds to File's Numeric User ID
- # find <directory> -nouser | xargs chown -h <new user>
No Group Corresponds to File's Numeric Group ID
- # find <directory> -nogroup | xargs chgrp <new group>