- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sharing root
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
02-06-2003 08:54 AM
02-06-2003 08:54 AM
Either my search know-how for this forum is completely inadequate, or this particular question hasn???t been asked yet. Personally, I???m expecting the former, not the latter???
Is it truly possible and if so, how is it done?
Easy points for a seasoned admin???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:00 AM
02-06-2003 09:00 AM
Re: Sharing root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:00 AM
02-06-2003 09:00 AM
SolutionYes, you can do this. I would not. A superuser is merely an account with a uid=0. One way to do this is to create an account with any uid and 'vi' the '/etc/passwd' file to replace the 'uid' with zero.
What matters is the 'uid' of a file or a process. The name associated with it is simply mapped (derived) from a file such a user database such as '/etc/passwd'.
The problem with multiple "root" (uid=0) accounts is that someday, someone will forget that, for instance, a user named "jrf" is really a root alias; and delete all files owned by "jrf" -- rather, all files owned by uid=0 ...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:01 AM
02-06-2003 09:01 AM
Re: Sharing root
its handy to give to HP to check you system if they can dial and simply enable/disable the account for when ever needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:01 AM
02-06-2003 09:01 AM
Re: Sharing root
Alternatively, use 'sudo' from the HP Porting Centre.
http://hpux.cs.utah.edu./hppd/hpux/Sysadmin/sudo-1.6.6/
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:07 AM
02-06-2003 09:07 AM
Re: Sharing root
If you want to do routine systems administration without using the root account, then you'll need to install sudo, and restricted SAM. There is a lot of information here in the ITRC forums about sudo and restricted SAM, and you can get a lot of stuff out of Google.
For example, we cannot let our Oracle DBA's access the root account, yet they occasionally have need of root level operations. Those particular operations we have enabled using sudo. That lets them do their thing without bothering the Sysadmins.
Best of all is to "harden" your Unix system. This is too detailed a task to write here, so I'm attaching our hardening document. This is an abbreviation of the information in _Practical Unix & Internet Security_, by Garfinkel & Spafford, by O'Reilly. This is widely available on the web, local bookstores, and on the O'Reilly website at www.oreilly.com, and highly reccommended.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:07 AM
02-06-2003 09:07 AM
Re: Sharing root
sudo is the way to go.
It is possible to create a pseudo root account uid 0 but don't do this.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 09:33 AM
02-06-2003 09:33 AM
Re: Sharing root
1. SUDO - the first choice. Define only few items in SUDO like modprpw -k for only SA group. Redirect your syslog to another system where only your manager has root access to have access for auditing.
2. You can always get the root password changed in the single user mode. So, restrict your console access and to the datacenter.
3. Go to point 1.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 10:13 AM
02-06-2003 10:13 AM
Re: Sharing root
My own opinion is to have one and only one root account. If you need to share root responsibilities, look into restricted SAM or sudo. If you need to have some sort of emergency access (like forgetting the root password), you need to look into more training for your sys admins and possibly new sys admins.
Like I said - just my opinion.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 01:15 PM
02-06-2003 01:15 PM
Re: Sharing root
Sorry to stir things up so much over what I thought would be a simple question.
On a different note, I do appreciate all of the information that all of you have provided on this. There is truly much more to consider than I realized when I put this question out. Actually, this is one of the reasons that I wanted to put it here on this forum before trying something on the systems here. One thing that I have learned is that there is much more knowledge available here than I could ever hope to possess on my own. Due to the fact that each of you have had different experiences in your career which have taught you different things than some of your colleagues (and much more than I at this stage of my life), this forum is one of the most valuable resources I have found in my search for knowledge. The fact that you are all so willing to share it is sometimes mind boggling on it???s own.
I will take this information to heart and think hard about the options given and the ramifications of each one before I make any moves. While Sudo seems to be the most popular option here, I don???t know if the others involved in this will be willing to go that direction. It hasn???t been discussed yet. This whole thing was my brainchild and I was simply looking for a possible way to create a ???backdoor??? JIC. Trying to be somewhat proactive and save potential heartache down the road ;-)???
Chris,
Your suggestion on hardening the system is most likely the smartest thing that we could do, but it looks just a bit too restrictive for the way we have to do things. I appreciate the information none the less and will file it for future reference. Hopefully it will be useful to someone else as well.
Pete,
I think you wrapped this whole thing up in a nutshell. I can see now that this is greatly a matter of opinion more than a matter of mechanics. The mechanics are easy; the rest is far from it.
Thanks again for all the input from everybody. It appears I have much thinking to do???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 01:24 PM
02-06-2003 01:24 PM
Re: Sharing root
I don't think you "stirred things up" so much as you asked a good question. Don't be offended by the tone of the responses either.
Very little is black-and-white; rather infinitely gray.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 01:54 PM
02-06-2003 01:54 PM
Re: Sharing root
Correlating your message and JRF's response, I looked at all the messages and the most offending (?) message is probably mine.
I do not necessarily agree that it is a matter of opinion. An opinion is certainly come into picture when you ask "do you like blue"?. However, when you ask "do you like to drink pepsi or poison?" then my answer would not be an opinion.
If a person is attempting to drink poison, then the suggestions may look offending. But they are for good.. Creating another account with uid 0 is the same for me in terms of security.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:00 PM
02-06-2003 02:00 PM
Re: Sharing root
The first things they will review are entries from your password file, how you manage root password and an overall view of security of your systems. If you are serious about security, then installing 'sudo' in one of the most effective methods. If your not, then you can open up whatever little nasties you like.
My aussie 3 cents
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:25 PM
02-06-2003 03:25 PM
Re: Sharing root
I was in no manner, shape, or form offended or insulted by any of the answers that I received nor did I find any of them to be off key in any way. On the contrary, I found them all to be rather enlightening.
One of the things that I have come to appreciate about this forum is that you will get a wide variety of responses to a question due to the fact that you have such a wide variety of people, personalities, and experiences in this knowledge pool. That is one of the things that makes this such a valuable source of information.
At the same time, due to the variety of people and personalities, you also get a wide variety of answers each with their own personal tone to them. If a person dwells on the words only, then they will miss the true meaning behind what is truly being conveyed. You have to be able to look beyond the obvious and see the real reasons for the responses.
At the risk of sounding like I???m writing a book, let me explain further;
When I first entered this forum, I found it to be intimidating on many levels. Most of the people that you see responding to the questions posted here have a much larger personal knowledge base than I do and I felt (and still do to a point) inadequate. I didn???t think that I belonged here and that I would be blown out of the water with the first stupid question I asked. I hadn???t learned to read beyond the words yet.
Then I found some of the less official threads in this arena and started reading on them as well. This allowed me to get to know the people behind the words to an extent, but I still didn???t want to post because then it seemed so much like a family and I didn???t feel like I fit in there either. Nobody knew me. How could I fit?
Many months later, I finally came back to the forum and decided that I would try to post some and see how it went. I had seen enough that I felt I could risk it, so I started with something simple like the congratulation posts. Even then, I went in cautiously and apologetically. What I got from the community was a warm welcome and encouragement to not be shy, but just jump right in. Perhaps if they would have known the monster they were about to unleash, they wouldn???t have done that (but it???s too late now!!).
Please rest assured that if I ever get offended, you will know about it and I???m not likely to be very subtle when it happens. But don???t worry about that too much either. I have thicker skin than most and I have learned something about how to read the information from some of the different people here.
Most of the people seem to be good folks. They also seem to be rather passionate about their work and when they give an answer, they tend to feel strongly about it. To the newbie, that can come across wrong if they haven???t taken the time to pay attention. Check my profile and see how long I have been watching vs. how long I have been responding/posting. I paid my dues in that area.
Best way for me to put this is simply ???Hit me with everything you???ve got??? or ???Don???t pull punches???. If I???m to the point of asking in this forum, I???m ready for pretty much anything I get. If someone steps on a toe or bruises a feeling, I???ll let you know. Otherwise, don???t be concerned for a minute.
James,
Thanks to you for the kind words. It???s nice to see an Olympian give me credit for a good question. I consider that a compliment.
Sri,
You have always struck me as one of the more passionate in your answers. For that reason, I see why you would have the response you gave. No opinion, just facts. When my personal knowledge base is as large as yours, I expect I will be the same way.
Michael,
That is one of the things that I have to think about. Remember the closing to my last post?
Thanks again to you all,
JWC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:38 PM
02-06-2003 03:38 PM
Re: Sharing root
I'm also glad I installed sudo. It's rather a pain to get configured, but once you figure it out, it can be very handy. For instance, I was changing user passwords 2-3 times EVERY day. Now a select group of IT people can sudo passwd and save me the hassle, which does add up.
Kim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:48 AM
02-07-2003 02:48 AM
Re: Sharing root
Hi,
create a user say admin and use this account daily and when you need to do root tasks just su to root. So in this way you don't have to log in as root every day and it's safer this way. Also look at sudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 04:36 AM
02-07-2003 04:36 AM
Re: Sharing root
I like your hardening document, I will be giving that some attention SOON.
I was told on a course that security and convenience are inversely related.
I guess if you have hundreds of users all keeping files that are highly sensitive you would probably spend alot of time worrying about file permissions.
There's a utility called cops that does some security checking, it's a help, don't rely on it though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 06:47 AM
02-07-2003 06:47 AM
Re: Sharing root
1. multiple uid=0's : i do not share the idea that it is worse than 1 uid=0 account. If you give it good names, you wont remove them by mistake. When you enable accounting, you even see which user executed commands with a uid=0 user (every user has a different audit id on a system - it's in the tcb-files).
What my experience is, is that it is not easy to maintain a lot of users in a site with hundreds of unix-boxes. So, for that reason, you'll try to limit the number of accounts.
What's the result ? Let all your sysadmin's work under 1 root user ? Dangerous (if you do esc -).
We concluded it was best to let all the sysadmins work under 1 user, but they do not have permanent access. The can change the password of the root user by demand. Also, only 1 user can lock the root account at one time.
2. restricted sam : difficult to work in a distributed environment.
3. SCM : the way to go for the future (imho) : every sysadmin works under his own account on a central mgt-server, but has control over several delegated root-tasks accross his domain.
who's next ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 10:54 AM
02-07-2003 10:54 AM
Re: Sharing root
There was a related thread a few weeks ago:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2eae4a988422d711abdc0090277a778c,00.html
I said then:
All of our actual "root" passwords are escrowed with me (Chief Systems Engineer) by the server's primary SA, in sealed envelopes and vaulted. Each Unix sysadmin has an individual uid 0 account on each box (s)he's responsible for, so when someone leaves, we just disable the account unless their signature is on a root envelope, in which case we also change root for that box. Our security standards call for password changes every sixty days, and do contain some guidance on construction of passwords. Each sysadmin is responsible for managing passwords on the personal uid 0 accounts, and the primary also manages the real root account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 11:13 AM
02-07-2003 11:13 AM
Re: Sharing root
Restricted SAM
sudo
SCM
3rd Party Products
When talking about using "su", make sure you set the SU_ROOT_GROUP in the /etc/default/security file so only members of a specific group can "su" to root.
I personally don't like having multiple UID 0's. But, I also won't set trusted system settings on the root account (such as aging, locking, etc..).
And finally... if using root or using su to get to root, don't use telnet at any point in your connection unless you are on a private LAN and have high confidence in the security of the HP-UX system you are connecting to.
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:03 PM
02-07-2003 02:03 PM
Re: Sharing root
I have found that having extra uid=0 around created a few headaches. But as was said, each to his own.
Here-to distribute root I use restricted SAM. And because I needed the practice (I'm a lousy programmer) I wrote something for folks-basically a little program that gives them their 'root tasks' to select and when their done...it kicks them back out of the system.
I also use a 3pty software that logs EVERYTHING they do, so I can replay it and make certain they weren't trying to 'break out with root rights'. I like it, because it's like having the auditing feature of a trusted system-but I can toggle off/on when and on who I want. And w/in the software you can script for addition root control. That way I don't find tons of audit files I don't need.
OK...all done..
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 10:59 AM
02-08-2003 10:59 AM
Re: Sharing root
Where did you get this software you are referring to? I would be interested in reviewing it at the very least.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 12:16 PM
02-08-2003 12:16 PM
Re: Sharing root
Me again :-).
There was a software called SeOS (now called eTrust Access Control) that I first used while I was working for a well-known bank and later I started recommending it to my later empoyers. It's an excellent software that can even tighten the use of "root" access. It intercepts the calls at the memory level and applies it's rules. How about the following example?.
1. Using the software, restrict root to a read-only .profile. Keep "script" in it and capture the activity into a seperate log file.
2. Use eTrust Access Control rules to restrict the read and write access to the script log file.
3. Assign eTrust Access control to only your manager to view the log file.
This way you can trace the activity of your root activity. So it's upto your imagination about the nice things you can do with that software. I am sure there are other products too in the market that can offer the same or better functionality.
Having another login with uid 0 may make sense to the SAs that have not seen real secured environments. But if it is guaranteed that you are not going to work for them in future, then you are alright.
Having good auditing itself is not sufficient. Once the security is broken and your precious data is lost, catching the culprit will be of very little use.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2003 07:12 AM
02-09-2003 07:12 AM
Re: Sharing root
Found it at HPWorld...a very helpful gathering !! If you haven't been...GO...it is worth every penny spent. It is the be-all-end-all gathering for HP/Interex folks. A virtual smorgesborg of seminars/tools/products. And an ITRC Forums luncheon, that lets us 'forumers' meet up for snacks.
Regards,
Rita
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 08:31 AM
07-14-2003 08:31 AM
Re: Sharing root
At lease they were somewhat more civilized with you when you asked. They pretty well hammered me when I started my thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4bdae822e739d711abdc0090277a778c,00.html
I give you this link for your continued education on this matter. I can tell the tread is closed and I would hope that you would assign me a 0 (zero) for this post when you get around to assigning the rest of the points for all of your valid answers.