- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Locking the Unix root user.
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
04-26-2006 02:12 AM
04-26-2006 02:12 AM
Locking the Unix root user.
My first question is how do we “lock” the root user and also what are the implications/issues of us locking the root user?... eg we use HP’s Data Protector (OmniBack) to do our backups and the filesystem backups are done using the root user, so if we were to lock the root user (some how) would the backups still work?
By the way we are running HP-UX 11, HP-UX 11i & HP-UX 11 v2 operating systems.
Regards
Khalil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:16 AM
04-26-2006 02:16 AM
Re: Locking the Unix root user.
by 'locking' do you mean no telnet access direct to root?
Most of our machines only allow direct access to root on the console by adding to /etc/profile:
if [ $LOGNAME = "root" -a "`tty`" != "/dev/console" ] ; then
echo "Error: root logins are only allowed on the console."
exit 1
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:19 AM
04-26-2006 02:19 AM
Re: Locking the Unix root user.
To expand on Peter's reply to restrict root access simply create the following file
/etc/securetty
and put only the text
console
in it.
Then make sure it's root:sys 400
Then root can *only* login from the console port.
I would not totally lock root out as sometimes console access is the *only* way to fix something.
My $0.02,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:21 AM
04-26-2006 02:21 AM
Re: Locking the Unix root user.
To force users to 'su' to root, create '/etc/securetty' and put the strnig "console" on a line in the file. This permits root to login at the console, only.
Also, build the '/etc/default/security' file. You may want to define the users who can 'su' to root with the 'SU_ROOT_GROUP' variable value.
See the manpages for more information:
http://docs.hp.com/en/B2355-60127/security.4.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:23 AM
04-26-2006 02:23 AM
Re: Locking the Unix root user.
What I think they want you to do is create a file, /etc/securetty with a single entry 'console' in it. That will allow root to only login directly as root on the console -- which presumably is in a secure location. Uses can then su - root from anyu terminal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:26 AM
04-26-2006 02:26 AM
Re: Locking the Unix root user.
You could also implement a special group that can only su to root in /etc/default/security and only SA could have that group.
But I definitely wouldn't put a lock on root per say as it could cause more trouble than help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:45 AM
04-26-2006 02:45 AM
Re: Locking the Unix root user.
There are only two of us administaring the systems, and personally neither of us would be particularly keen on locking the root user. So, what we'd really also like is to have a number of reasons (ie the downsides) against locking the root user, to counter this recommendation.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:49 AM
04-26-2006 02:49 AM
Re: Locking the Unix root user.
If for any reason root has to login to fix something you're out of luck.
You'd have to power down the system.
I've never seen this type of request even in SOX audits. I think it's *way* to draconian.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 02:50 AM
04-26-2006 02:50 AM
Re: Locking the Unix root user.
Khalil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:57 AM
04-26-2006 03:57 AM
Re: Locking the Unix root user.
Plan B. Create another UID 0 account and su as that (unlocked) user. It's state-of-the-art stupid and a worse choice than restricting root to only the console but it does meet the strict requirements set by your auditors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 05:39 AM
04-26-2006 05:39 AM
Re: Locking the Unix root user.
I have never heard of any audit reason that would require you to lock the root account from console logins as well. You definitely want to be able to use root from the console. Otherwise problems could definetely occur where you'd be forced to shut down the machine and boot to single-user to gain access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 09:15 PM
04-26-2006 09:15 PM
Re: Locking the Unix root user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 03:11 AM
05-02-2006 03:11 AM
Re: Locking the Unix root user.
have you had any luck with the auditors?
Are the solutions provided ok?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 05:16 AM
05-02-2006 05:16 AM