- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root login
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
03-21-2002 08:43 AM
03-21-2002 08:43 AM
root login
Can you people give me some good ideas how to secure root login. Currently we have several unix servers and people who have root access logs in from anywhere and we do not know who all became root and did stuff.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 08:46 AM
03-21-2002 08:46 AM
Re: root login
login from console ONLY:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb2be79bffde7d4118fef0090279cd0f9,00.html
Securing HPUX:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x54f3f9beca68d511abcd0090277a778c,00.html
Check out roots ~/.rhosts
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 08:46 AM
03-21-2002 08:46 AM
Re: root login
Use securetty. In this process you have to login as a user and then you have to give su to be root.
You have to create a file securetty under /etc. and under that file just enter root.
It will solve your problem.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 08:49 AM
03-21-2002 08:49 AM
Re: root login
This way nobody can access directly as root in the system . One hase to login as himslef then do su to gain root access.
syslog will keep this recordings.
Also Who -R will show you who logged in from where.
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 09:00 AM
03-21-2002 09:00 AM
Re: root login
i don't like to bring bad news to you, but did you think over the fact, that you have somebody on your systems who is or at least was root?
This opens the possibility to "open doors" even if you secure the root- access afterwards. And are you sure you will find all the holes he opened?
In my opinion the only option you have is to reinstall your systems if anybody stayed on them as root. Sorry.....
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 09:02 AM
03-21-2002 09:02 AM
Re: root login
You could also install sudo:
http://www.courtesan.com/sudo
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/
Once you have installed you can set up specific users so that they have access to specific commands as root, but don't need the root passwd. Sudo activity will also be logged, to syslog I think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 10:57 AM
03-21-2002 10:57 AM
Re: root login
You have to 1.create /etc/securetty file
2.Enter the entry "console.
do not specify " ".
You are all set.
Now you can become super user by login with your personal ordinary user id and then by doing "su"....you can become super user.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:10 AM
03-21-2002 11:10 AM
Re: root login
Anyway, just to add my $0.02 worth to the equation. Another thing that you can do once you use securetty to limit root access to the console only, the users can still su. So to limit the number of users that can su to root, you can:
chmod 4660 /usr/bin/su
and
chown root:wheel /usr/bin/su
then add root and whatever other users you want to be able to su to the wheel group and only the users in the wheel group will be able to use the su command.
After you have done what you are going to do and you think that all backdoors are closed and there are no more trojans or sniffers on your comp install tripwire and monitor file changes, additions and removals.
These are a few suggestions to with them what you please.
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:12 AM
03-21-2002 11:12 AM
Re: root login
Ok now I am done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:19 AM
03-21-2002 11:19 AM
Re: root login
"console" in /etc/securetty will allow root login on console only.
On trusted system, the parameter "SU_ROOT_GROUP=administrator" will allow only members of administrator to su to root.
The securetty file did not controle root login using X-emulation software, so modify .profile of root to check it.
#--
user=`logname`;
sulog="/var/adm/sulog"
TTY="`tty | cut -d/ -f3`"
if [ ${user} = "root" ]
then
if [ ${TTY} != "console" ]
then
echo "
exit
fi
fi
##--
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 12:22 PM
03-21-2002 12:22 PM
Re: root login
Example:
If a person wanted to run a program like "ls" as root, and didn't know the root password, but needed to see into root-read only directories, he/she'd run "sudo ls
Pitfalls: anything a user can run as root should be carefully inspected to make sure it couldn't be exploited. For example, NEVER give sudo access to programs wish shell escapes (like vi), or folks can just do a :sh and pop out with a root-prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 04:38 PM
03-21-2002 04:38 PM
Re: root login
Secure your system as mentioned above and then afterward if you need many "root" users to have restricted access This is Free!
http://www.courtesan.com/sudo/intro.html
Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root while logging all commands and arguments.
It has the ability to restrict what commands a user may run on a per-host basis.
Sudo does copious logging of each command, providing a clear audit trail of who did what.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:08 AM
03-22-2002 12:08 AM
Re: root login
1)They may be getting root previlege by using the command "su" (offcourse they should know the password) If you want to block this, then you may have to block the usage of "su" itself by doing "chmod" on su file.
2)They may be getting root previlege by entering into the system through "rlogin,telnet,rsh" If you want to block this you may have to deny these services to those clients by specifying "deny
3)But the "/etc/securetty" file has no control on XDMCP clients getting your CDE login screen from their workstation or PC (having exceed). In that case specify to whom all you want to allow CDE login screen by editing the file "/etc/dt/config/Xaccess"
and "/usr/dt/config/Xaccess".
4)Do not allow others to login to your system using root account by specifying the entry "root" in /etc/ftpusers file.
5)check the file "/etc/passwd" for the duplication of User ID or Group ID. If any other user has user ID 0 other than root, disable it or do the needful to change it. Only root is supposed to have groud id "0".
6)check the "/etc/hossts.equiv" and "rhosts" file in your systm and ensure that it is not granting any root previlege to remote systems.
7)If any user is having his application to start directly instead of getting into $ prompt and start his application, ensure that his application or startup script does not allow him to break it and get into the system with root previlege.
Sorry for the lengthy draft.
-Vija
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:35 AM
03-22-2002 12:35 AM
Re: root login
First thing to do would be to change the current root passwords, to prevent people logging in as root.
Also check the /.rhosts and /etc/hosts.equiv files.
HTH,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:38 AM
03-22-2002 12:38 AM
Re: root login
1. check sulog to see if all users that have su'ed should.
2. Check the system for "odd" files owned by root and with the suid bit set. A suid shell will give users root access.
3. Check roots .rhosts
4. Change the root password.
4b. Use a password cracker program to check that the password can't be cracked.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 06:29 PM
03-25-2002 06:29 PM
Re: root login
Not to mention my head is cold and I will never get a hat at this rate. (Just kidding)