- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Users restriction?
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
11-17-2000 07:54 PM
11-17-2000 07:54 PM
Users restriction?
What are the diifferent ways to restrict users to log on to the system from a specific 'tty'.
eg. user--> should log from tty /dev/pty3 only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2000 03:52 AM
11-18-2000 03:52 AM
Re: Users restriction?
This may help for root
If the /etc/securetty file is present, login security is in effect.
Only user root is allowed to log in successfully on the ttys listed in
this file. Restricted ttys are listed by device name, one per line.
Valid tty names are dependent on installation. An example is
console
tty01
To control a user to a specificy tty you can put a short scrip in their .profile to pick up their tty and if no match to tty in .profile throw a exit at them, this has the ability to allow a user a range of login ttys.
See man login
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2000 12:21 PM
11-19-2000 12:21 PM
Re: Users restriction?
Thus, for any given login, the pty (now more likely, a streams pts device file) assigned will be essentially unpredictable.
However, you can certainly test for the name or IP address of the incoming device using who -mur.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2000 02:21 AM
11-20-2000 02:21 AM
Re: Users restriction?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2000 06:43 PM
11-21-2000 06:43 PM
Re: Users restriction?
But what are other ways to restrict pertoculer user to login from /dev/tty3 other than putting a script in .profile.
thankx once again to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2000 07:04 PM
11-21-2000 07:04 PM
Re: Users restriction?
who -muR
Extract the fields like this:
echo $(/usr/bin/who -muR) | awk '{print $1," " ,$2," ",$NF}' | read MYUID MYTTY MYPORT
Now test $MYUID and $MYTTY or $MYPORT. If they don't meet your criteria, then just exit from /etc/profile (with an appropriate message).
Bill Hassell, sysadmin