- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- limit the user login
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
07-21-2004 02:29 PM
07-21-2004 02:29 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 02:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 04:55 PM
07-21-2004 04:55 PM
Re: limit the user login
Get the /etc/group id for EDP and keep it for checking. ID can be used to check the identity of users too. Check the id from /etc/passwd entry for the user.
see id(1) man page more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 07:47 PM
07-21-2004 07:47 PM
Re: limit the user login
You need to check and maxusers kernel parameter to be also greater then 200.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 08:01 PM
07-21-2004 08:01 PM
Re: limit the user login
With 11.0 and later, you can have file /etc/default/security. man 4 security for details. You can put
NUMBER_OF_LOGNS_ALLOWED=xxx in this file. This applies to non-root users. This would be mush cleaner way to do what you want. Also You make sure that you have set maxusers accordingly.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 08:23 PM
07-21-2004 08:23 PM
Re: limit the user login
I think it would be best that you let us know or pass the script that you are using to restrict the login in your system currently. Based on that we would be able to recommend a way.
You can put in an additional check to see the group of the person logging in and if he belongs to a certain group like EDP, let him in.
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 08:42 PM
07-21-2004 08:42 PM
Re: limit the user login
Firts create and group the users in EDP group. Then in /etc/profile:
GRP_ALLOW=`id -Gn|grep EDP|wc -l`
if [ "$GRP_ALLOW" = "0" ]
then
...your login restriction procedure.
fi
Pls check more "id" command options with "man id"
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 10:45 PM
07-21-2004 10:45 PM
Re: limit the user login
As my question , I want to allow the EDP user to access the system even reach the 200 users on the system , my new requirement is I also want all EDP'slogins will not be counted . eg. if there are 150 general users and 10 EDP logins in the system , the system only recognize the system has 150 logins but not 160 , so that the EDP user will be affect the general user login , could suggest what can I do ?
attach the /etc/profile ,
very thank if you can help more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 01:51 AM
07-22-2004 01:51 AM
Re: limit the user login
if [ "$MY" = "root" ] ;
to
if [ "$MY" = "root" && `id -g` = "##0" ] ;
Where "##" is the group id number for the EDP group. Then they will be ignored liked "root" is being ignored.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 01:53 AM
07-22-2004 01:53 AM
Re: limit the user login
Change "&&" (and) to "||" (or).
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 03:37 PM
07-22-2004 03:37 PM
Re: limit the user login
Very thanks for further help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 09:04 PM
07-22-2004 09:04 PM