- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- links owned by nobody?
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
Forums
Discussions
Discussions
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
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
03-28-2008 11:53 AM
03-28-2008 11:53 AM
links owned by nobody?
I have links that are not owned by anybody...
Is this right?
We will fail our security audit on this.
5.3 FIND "UNOWNED" FILES & DIRECTORIES
------------------------------------------------
# find / \( -nouser -o -nogroup \) -print
/opt/VRTSob/jre/bin/.start_xfs
/opt/VRTSob/jre/bin/java
/opt/VRTSob/jre/bin/keytool
/opt/VRTSob/jre/bin/policytool
/opt/VRTSob/jre/bin/rmid
/opt/VRTSob/jre/bin/rmiregistry
/opt/VRTSob/jre/bin/tnameserv
/opt/VRTSob/jre/lib/PA_RISC/hotspot
/opt/VRTSob/jre/lib/PA_RISC/libmawt.sl
/opt/VRTSob/jre/lib/PA_RISC2.0/hotspot
/opt/VRTSob/jre/lib/PA_RISC2.0/libmawt.sl
/usr/obam/jre/bin/javakey
/usr/obam/jre/bin/rmiregistry
/usr/obam/X/bin/X
/usr/obam/X/lib/X11/XKeysymDB
/usr/obam/X/lib/libX11.sl
/usr/obam/server/logs
...
lrwxrwxrwx 1 4484 119 13 Mar 26 15:07 java -> .java_wrapper
lrwxrwxrwx 1 4484 119 13 Mar 26 15:07 keytool -> .java_wrapper
lrwxrwxrwx 1 4484 119 13 Mar 26 15:07 policytool -> .java_wrapper
lrwxrwxrwx 1 4484 119 13 Mar 26 15:07 rmid -> .java_wrapper
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 12:01 PM
03-28-2008 12:01 PM
Re: links owned by nobody?
The ownership and permissions of symbolic links don't matter. It's the ownership and permissions of the object to which they point that is important.
Tell your auditors to find another concern.
You can use 'chown -h' to fix the ownership of the links if you wish.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 12:32 PM
03-28-2008 12:32 PM
Re: links owned by nobody?
Find unowned directories
# find / -type d \( -nouser -o -nogroup \) -print
Find unowned files
# find / -type f \( -nouser -o -nogroup \) -print
As James said, the permissions of a link is really irrelevant. If you really want to get technical, the auditors would also complain about the permissions on the link since they are '777'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2008 04:29 PM
03-28-2008 04:29 PM
Re: links owned by nobody?
Right.
>Tell your auditors to find another concern.
Unfortunately we had to make a patch to fix some links on 11.23 because it was mentioned that if that user was removed from the system, the links could be removed.
>Patrick:
>Find unowned directories
>Find unowned files
Rather than waste time doing two finds, you can combine them:
# find / \( -type f -o -type d \) \( -nouser -o -nogroup \)
Or probably more correctly to find evil sockets:
# find / ! -type l \( -nouser -o -nogroup \)
>auditors would also complain about the permissions on the link since they are 777.
They may be just smart enough to know that. And that would occur on other OSes but probably not those unowned links.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2008 12:13 PM
03-29-2008 12:13 PM
Re: links owned by nobody?
It's unfortunate that HP/Opsware uses these benchmarks directly for their audits.
So we will continue to fail on these audits, until they modify this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2008 02:22 AM
03-30-2008 02:22 AM
Re: links owned by nobody?
>So we will continue to fail on these audits, until they modify this.
Have you contacted the owners of /opt/VRTSob and /usr/obam so they can fix the problem?