- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricted rlogin or telnet
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
01-18-2001 05:04 PM
01-18-2001 05:04 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 07:31 PM
01-18-2001 07:31 PM
Re: Restricted rlogin or telnet
I might be missing a piece of information, but if you don't want some users to login to the box, don't give them an account on it.
That would be the easiest and safest way of keeping users of a system (and don't give out the root password)
If you want to restrict access from a box in your net, have a look at the file /var/adm/inetd.sec
Hope that was not a too simple answer :-)
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 08:33 PM
01-18-2001 08:33 PM
Re: Restricted rlogin or telnet
1. Read up on inetd.sec via man pages or HP-UX instant information.
2. Add some goodies to /etc/profile like
I_AM=`/usr/bin/whoami`
if [ "${I_AM}" = "julie" ] ; then
echo "Sorry your bannished from my kingdom..."
sleep 2
exit
fi
This will kick them out at login.
If you can remove from passwd then remove them and be done! :)
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 11:55 PM
01-18-2001 11:55 PM
Re: Restricted rlogin or telnet
I agree with Steffi and Shannon as the easiest thing would be to remove them from the password file.
If you need to keep the user ID's for any reason, you may simply deactivate the account by putting an asterisk in the password field (second field, normally 13 characters long)
As no password will encrypt to a single asterisk, these user ID's won't be usable to log in.
An alternate solution would be a simple code in your /etc/profile file like Shannon suggested.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2001 01:00 AM
01-19-2001 01:00 AM
SolutionAs you can see there are special ways of banning users:
- inetd.sec
All of the internet services controlled by inetd (including telnet
and rlogin) have their access controlled by the security file
/var/adm/inetd.sec. To restrict or allow particular access, specifically list the service to be restricted, denied, or allowed. Then list specific IP addresses for individual hosts or use network addresses to deny or allow entire networks. Check the man pages on inetd.sec for more information on the
format of the file. The following is an example that will allow everything on
the 15.56 subnet and the single host 192.13.12.1 to telnet in.
Telnet sessions from all other hosts will be denied: telnet allow 15.56.* 192.13.12.1
- Users profile:
modify the users .profile in his home-directory
- /etc/profile
Make a file with a list of users you want to deny. Then modify the /etc/profile to check this file first and then log them off with a message. This you can do when you don't or not able to change the password file.
Good Luck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 08:13 AM
01-31-2001 08:13 AM
Re: Restricted rlogin or telnet
How about setting up a host.equiv and .rhosts mechanism
Good luck