- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restricting direct login to 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
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
05-30-2004 11:06 PM
05-30-2004 11:06 PM
restricting direct login to root
1)restrict access directly to root from tty terminals and
2)how to enable rshd or rlogind
3)how to allow root access from Console
4)How to restrict ftp access for users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2004 11:17 PM
05-30-2004 11:17 PM
Re: restricting direct login to root
This will only allow root access from console wonly and not from any tty terminals .
2. edit appropriate entries in /etc/inetd.conf and restart by inetd -c
3. same as 1 above .
4. http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073094324
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2004 11:19 PM
05-30-2004 11:19 PM
Re: restricting direct login to root
1.Create a file /etc/securetty. Put the entry /dev/console. This will restrict root access from terminal and allows only from console.
2. By default rlogind is enabled.Create .rlogin files in Homedirectory and add the entries of trusted hostname and username .
See man pages of remsh.
4. Create a file called /etc/ftpd/ftpusers and add the usernames suppose to be ftp restriceted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2004 11:19 PM
05-30-2004 11:19 PM
Re: restricting direct login to root
to restrict root access to tty -
create a file securetty containing a single line console
in /etc directory
for rlogin and rshd
edit /etc/inetd.conf file and un comment
login stream tcp no wait root /usr/lbin/rlogind rlogind &
shell stream tcp no wait root /usr/lbin/remshed remshed
to allow rlogin and remote execution
root access from console is by default you need not specify the same
do disable ftp comment (#) the ftp stream tcp nowait root /usr/lbin/ftpd ftpd line
Hope this solves your querries.
Regards
Girish Ransubhe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2004 11:48 PM
05-30-2004 11:48 PM
Re: restricting direct login to root
Pls create or edit /etc/default/security file. Her you can restrict the "su" command use. So define a group tah must have "su" privileges:
SU_ROOT_GROUP=
Then create
If you need restrict access from IP's or alias point of view, the /var/adm/inetd.sec will be usefull for you. In this file you can restrict telnet (login), ftp and shell (rcp/remsh) services. For extra help use:
# man inetd.sec
The best way to control this could be the wu-ftp (Washinton University ftp)implementation in your server. Plase look for this implementation in this forum, a lot of docs will be found.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:00 AM
04-22-2005 08:00 AM
Re: restricting direct login to root
I created /etc/securetty file, the contents of which are:
/dev/console
The problem is that I cannot even login (as root) from "Console login" prompt when I directly connect to the console. I cannot telnet to the server and login as root, which makes sense. But, I don't understand why I cannot login from the console.
I can do "su - root" and "su root" after telnet as another user, say "oracle" from the telnet client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:07 AM
04-22-2005 08:07 AM
Re: restricting direct login to root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:08 AM
04-22-2005 08:08 AM
Re: restricting direct login to root
You will be able to root login from console then.
To prevent other users from becoming root after logging in, the /etc/default/security file can contain 'SU_ROOT_GROUP=
I have created a wheel group, SU_ROOT_GROUP=wheel, and only SAs entitled to the root account are in this wheel group.
This will prevent all other users who are not in the wheel group from becoming root. This is nice because even if they know what the root passwd is, they still cannot become root because they are not in the wheel group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:09 AM
04-22-2005 08:09 AM
Re: restricting direct login to root
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:13 AM
04-22-2005 08:13 AM
Re: restricting direct login to root
I've a question. So, does that mean any user who would want to "su" as root would have to be a part of SU_ROOT_GROUP??
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2005 08:20 AM
04-22-2005 08:20 AM
Re: restricting direct login to root
Success would be only for those users who are a part of the SU_ROOT_GROUP and it is defined in the /etc/default/security file.
Example, you are in the wheel group, SU_ROOT_GROUP=wheel. You can su - root (provided you know the passwd). If you are not in the wheel group you cannot become root, even if you know the passwd.