File Ownership Commands: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:
=== No Group Corresponds to File's Numeric Group ID  ===
=== No Group Corresponds to File's Numeric Group ID  ===
#: '''<tt># find <directory> -nogroup -print0 | xargs -0 chgrp <new group></tt>'''
#: '''<tt># find <directory> -nogroup -print0 | xargs -0 chgrp <new group></tt>'''
== AIX File Ownership Commands ==
=== No User Corresponds to File's Numeric User ID  ===
#: '''<tt># find <directory> -nouser | xargs -h chown <new user></tt>'''
=== No Group Corresponds to File's Numeric Group ID  ===
#: '''<tt># find <directory> -nogroup | xargs -h chgrp <new group></tt>'''


== Further Reading ==
== Further Reading ==
# [http://www.techrepublic.com/article/learn-to-use-extended-filesystem-acls/6091748 Learn to use extended filesystem ACLs]
# [http://linux.about.com/library/cmd/blcmdl1_setfacl.htm Linux/Unix command: setfacl]
# [http://linux.about.com/library/cmd/blcmdl1_getfacl.htm Linux/Unix command: getfacl]




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

Revision as of 23:04, 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

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