- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/securetty problem.
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
02-10-2003 01:52 AM
02-10-2003 01:52 AM
I try to define connection to HP712 station by user root only (there are many users defined in the station). I added file /etc/securetty and it's looks:
cat /etc/securetty
console
ttyp1
ttyp2
But, when I try login to the station (by rlogin command) form other host and by user that not a root, I succeded. What Is my error?
May be file permission?
I'll be really greatful for any advice.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 01:58 AM
02-10-2003 01:58 AM
Re: /etc/securetty problem.
The securetty file means that user root is only allowed to login on the console and other defined tty ports.
If a user does a rlogin form another system it is of course allowed to login, since the user is defined on the workstation !
So if you will deny users login to the system, you will have to remove them from the password file.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 02:11 AM
02-10-2003 02:11 AM
Re: /etc/securetty problem.
to prevent login you can use a tcpwrapper, there are many postings in this forum.
Another good idea is using ssh and forbid any other access in /etc/inetd.conf
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 02:11 AM
02-10-2003 02:11 AM
Re: /etc/securetty problem.
If /etc/securitty is defined only the root is allowed to login as root from the console and from no where else.
rlogin uses the .rhosts and hosts.equiv files and not the /etc/securetty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 02:11 AM
02-10-2003 02:11 AM
Re: /etc/securetty problem.
think this link will help you,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x59d7cdec06f1d61190050090279cd0f9,00.html
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 02:54 AM
02-10-2003 02:54 AM
Re: /etc/securetty problem.
But, it not really helps me.
I try to explain by other way.
I have a modem, that connected to the station.
And I want, that only user root can login through the modem. So, I wanted, to do it by /etc/securetty file. As I understood, I can't do it. So what the right solution (I can't delete other users from the station), but access through the modem should be only for root.
Thank you for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:12 AM
02-10-2003 04:12 AM
Re: /etc/securetty problem.
I could not test this idea at the moment, but it might work !
You could try to do a chmod 600 on the device file of the tty used by the modem !?
Of course check if root is the owner in this case.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 07:14 AM
02-10-2003 07:14 AM
Re: /etc/securetty problem.
Be careful when testing this, because if you make an error, you can lock out everybody this way, including root. Make sure that during testing root is logged in on another terminal, so you can fix things if they go wrong.
If any user has a C-shell in /etc/passwd, you will have to make similar modifications to /etc/csh.login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 09:20 AM
02-10-2003 09:20 AM
Solution1). Use a dialup password (which can be used on any tty actually). Put the device file name in /etc/dialups. Next, create a password for the shell that root uses and place this in /etc/d_passwd:
/sbin/sh:3VRzvUkI8WwSs:
This should NOT be root's password, but a separate password used just for the modem.
login: root
Password:
Dialup Password:
Does this prevent other users from logging on? No, you must create another entry for every kind of shell in the /etc/d_passwd. Obviously, don't give this password to them and they won't be able to logon. If their shell is not in this file, they just have to hit "enter" at the Dialup Password prompt to get in.
The other alternative is to use the Trusted System "restrict terminal by user" feature. Edit the /tcb/files/devassign file (v_users=root) or in SAM under Peripheral Devices, Terminal & Modems, Select Device, Action - Modify Authorized Users.
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 12:13 AM
02-11-2003 12:13 AM
Re: /etc/securetty problem.
Forgot all about dialup passwords. They are hardly ever used in this day and age and were hardly ever used in the good old days, but are still a useful feature of UNIX/HP-UX. Thanks for the pointer.
The, very limited, documentation is in the dialups(4) ("man dialups") manual page.
[Please no (0 or N/A) points for this response.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 02:59 AM
02-11-2003 02:59 AM
Re: /etc/securetty problem.
I used the Chris's solution:
/etc/d_passwd
/etc/dialups.
That works excellent!
Best regards.