HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restrict login by run-level?
Operating System - HP-UX
1830978
Members
1964
Online
110018
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
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
02-15-2001 02:32 PM
02-15-2001 02:32 PM
Restrict login by run-level?
Hi,
We run several custom run-levels here, and we are looking for a way to restrict login at run-level 3 to root, and a list of authorised users.
My first thought was to modify /etc/profile, to look at who is trying to login, what the run-level is, and are they allowed?
This works fine for logins via telnet or X, but it causes problems when logging in via CDE, as /etc/profile is not run.
I guess I could modify dtprofile, but I was hoping someone might know a better way of solving this problem.
Thanks,
Lindsay
We run several custom run-levels here, and we are looking for a way to restrict login at run-level 3 to root, and a list of authorised users.
My first thought was to modify /etc/profile, to look at who is trying to login, what the run-level is, and are they allowed?
This works fine for logins via telnet or X, but it causes problems when logging in via CDE, as /etc/profile is not run.
I guess I could modify dtprofile, but I was hoping someone might know a better way of solving this problem.
Thanks,
Lindsay
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 02:56 PM
02-15-2001 02:56 PM
Re: Restrict login by run-level?
You can force dt (CDE) to read the profile and include your restriction code there. A script that parses "who -r" output to check the current run level and restricts based on your list of allowed users. I don't recall the exact setting (something like DTSourceProfile=TRUE) or where it's located though. I avoid CDE as much as possible :)
Hope this info is of some value to you.
Hope this info is of some value to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 03:45 PM
02-15-2001 03:45 PM
Re: Restrict login by run-level?
Hi Lindsay !
I have one more thought. If you can afford to work with /etc/passwd, you can have passwd.1, passwd.2, passwd.3 ... passwd.6 with the users of your choice in these files in a temporary, restricted location and have them copied to /etc/ as "passwd" file as and when the run level changes using the concept of startup and shutdown scripts which are to be located at /sbin/init.d, /sbin/rcN.d.
...Madhu
I have one more thought. If you can afford to work with /etc/passwd, you can have passwd.1, passwd.2, passwd.3 ... passwd.6 with the users of your choice in these files in a temporary, restricted location and have them copied to /etc/ as "passwd" file as and when the run level changes using the concept of startup and shutdown scripts which are to be located at /sbin/init.d, /sbin/rcN.d.
...Madhu
Think Positive
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 2025 Hewlett Packard Enterprise Development LP