GreenLake Administration
Operating System - HP-UX
1847170
Members
6261
Online
110263
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-09-2002 04:34 AM
09-09-2002 04:34 AM
nologin
Hi,
i need to create a user who can log in only by su command. In other words there's must be another user, different from root, logged in.
Whith files /etc/nologin and /etc/default/security i lock access to all users different from root.
Thanks in advance
Bye
Luca
i need to create a user who can log in only by su command. In other words there's must be another user, different from root, logged in.
Whith files /etc/nologin and /etc/default/security i lock access to all users different from root.
Thanks in advance
Bye
Luca
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 04:59 AM
09-09-2002 04:59 AM
Re: nologin
Well, if you have the system "locked" down so that only root can login because you have a /etc/nologin file and you have defined NOLOGIN in /etc/default/security, then the only action is to login as root!
You could detect /etc/nologin yourself via /etc/profile and then allow only those users that have special access to login.
live free or die
harry
You could detect /etc/nologin yourself via /etc/profile and then allow only those users that have special access to login.
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 05:03 AM
09-09-2002 05:03 AM
Re: nologin
Luca,
Add this to the user's .profile:
# Prevent login. Force su.
name=`logname`
if [ $name = username ]
then
echo $name No Login Allowed. Must su.
exit
fi
This prevents the user from logging in directly, and reminds them to use su to gain access to the user account.
Cheryl
Add this to the user's .profile:
# Prevent login. Force su.
name=`logname`
if [ $name = username ]
then
echo $name No Login Allowed. Must su.
exit
fi
This prevents the user from logging in directly, and reminds them to use su to gain access to the user account.
Cheryl
"Downtime is a Crime."
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP