File Ownership Commands: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:




[[Category:AIX][Category:Linux]]
[[Category:AIX]]
[[Category:Linux]]

Revision as of 23:05, 2 December 2021

Linux File Ownership Commands

No User Corresponds to File's Numeric User ID

  1. # find <directory> -nouser -print0 | xargs -0 chown <new user>

No Group Corresponds to File's Numeric Group ID

  1. # find <directory> -nogroup -print0 | xargs -0 chgrp <new group>

AIX File Ownership Commands

No User Corresponds to File's Numeric User ID

  1. # find <directory> -nouser | xargs -h chown <new user>

No Group Corresponds to File's Numeric Group ID

  1. # find <directory> -nogroup | xargs -h chgrp <new group>

Further Reading