- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- allow a certain user only access at console
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-25-2001 02:21 AM
01-25-2001 02:21 AM
how can you allow a certain user access to the console and only to the console ?
We use a certain account called rroot. When logging in as rroot, a script is launched. That script contains a lot of sysadmin tasks.
How can I prevent this person to login from the network ?
TIA,
Jeroen.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 02:26 AM
01-25-2001 02:26 AM
Re: allow a certain user only access at console
create an /etc/securetty and customize it to your needs
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 02:40 AM
01-25-2001 02:40 AM
Re: allow a certain user only access at console
/etc/securetty good for only root user.
Other users:
Edited the (default) profiles, when user use console continue, else exit shell.
use tty command for this.
regards, Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 02:41 AM
01-25-2001 02:41 AM
SolutionYou could add an entry in that user's .profile, checking for the tty.
Like this:
if [ `tty` != /dev/console ]
then
echo "You must log in from console"
exit 1
fi
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 03:43 AM
01-25-2001 03:43 AM
Re: allow a certain user only access at console
Sandor and Dan are correct, I thought your rroot was a root alias (uid 0)in which case the securetty would have been enough (since only users with UID 0 can only connect at the console) but then you would have to avoid the user to do an su...
Follow Dan's advice...
Good luck
Victor