- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Security RED FLAG For root .profile?
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
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
11-30-2004 02:20 AM
11-30-2004 02:20 AM
The security software shows RED FLAG for root's .profile. The permission is 400 for .profile with owner as root:sys. here is the error after running the report
/.profile daemon: : GID is sys, expected daemon
/.profile hpdb:ALLBASE: GID is sys, expected other
/.profile www: : GID is sys, expected other
I am not sure how to correct it? Any ideas?
Thanks
Joe.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 02:30 AM
11-30-2004 02:30 AM
Re: Security RED FLAG For root .profile?
usermod -g daemon daemon
usermod -g other hpdb
usermod -g other www
This should correct the problem.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 02:32 AM
11-30-2004 02:32 AM
Re: Security RED FLAG For root .profile?
# id daemon
# id hpdb
# id www
For example:
# id www
uid=30(www) gid=1(other)
The gid is stored in the /etc/passwd file.
www:*:30:1::/:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 02:54 AM
11-30-2004 02:54 AM
Re: Security RED FLAG For root .profile?
It is flagging the /.profile because the home directory for each of those users is /, thus it will use the same .profile as the root user, whose home dir is also / by default. The default for root's .profile is owner=root and group=sys, thus you're getting the GID is sys for /.profile.
None of those users should be able to login and you normally don't even su to them, at least I never have, so the .profile should never even be used.
I guess you could try setting up a separate home directory for each of those users /hpdb, /daemon, /www and give them their own profile with the expected permissions. I don't think that would effect anything else. It'd just be non-standard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:04 AM
11-30-2004 03:04 AM
Re: Security RED FLAG For root .profile?
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:16 AM
11-30-2004 03:16 AM
Re: Security RED FLAG For root .profile?
joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:24 AM
11-30-2004 03:24 AM
Re: Security RED FLAG For root .profile?
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:41 AM
11-30-2004 03:41 AM
Re: Security RED FLAG For root .profile?
Better replace everything as said. If you can't use usermod, use sam, or, at least vi (oh ! what a bad advice !). If using vi, make sure to copy file before.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)