- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Files without ownership/group
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-24-2006 02:48 AM
тАО07-24-2006 02:48 AM
I am now an in Security for the Government, not the admin anymore and I dont have access to test a command right now. Is there a find option or combined one or 2 liner script that will show me all files that DO NOT have either an owner or group. We look for files that are missing group ownership and ones that are missing file ownership.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:54 AM
тАО07-24-2006 02:54 AM
Re: Files without ownership/group
find . -nouser -print
find . -nogroup -print
That should do the trick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:55 AM
тАО07-24-2006 02:55 AM
Re: Files without ownership/group
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:57 AM
тАО07-24-2006 02:57 AM
Re: Files without ownership/group
# find / -nouser | xargs ls -l
# find / -nogroup | xargs ls -l
If you want to confine your search to a specific directory you should use:
# find /path -xdev | xargs ls -l
To return only files use:
# find / -type f - nouser | xargs ls -l
See the man pages for 'find(1)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 03:58 AM
тАО07-24-2006 03:58 AM
Re: Files without ownership/group
to get
- a combined output of both (no)user and (no)group and
- not to get duplicate output of files missing both
- not to get listings of the content of directories found
use
find . \( -nouser -o -nogroup \) -print | xargs ls -ld
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 04:45 PM
тАО07-24-2006 04:45 PM
Re: Files without ownership/group
Files and directories without owner/group names are sometimes caused by removing users that have scattered their files all over the system and then their login is removed. But anyone can create a file with random user and group numbers as in:
touch /tmp/dummyfile
chown 12345:12345 /tmp/dummyfile
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 06:35 PM
тАО07-24-2006 06:35 PM
Re: Files without ownership/group
What are you using ?
WIp