- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Limit user to one 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
12-11-2006 02:36 AM
12-11-2006 02:36 AM
Limit user to one login
Any help would be appreciated. We are running 11.23.
Thanks,
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 02:40 AM
12-11-2006 02:40 AM
Re: Limit user to one login
The best way is by script. /etc/profile is a good place to check this, but be sure to exclude special users like oracle.
logins=$(who am i | wc -l)
if [ logins -ge 2 ]
then
echo "You already have a login session."
exit 1
fi
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 02:40 AM
12-11-2006 02:40 AM
Re: Limit user to one login
Check out the following thread....
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1054187
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 02:41 AM
12-11-2006 02:41 AM
Re: Limit user to one login
These threads offer some suggested modifications to either .profile or /etc/profile to implement this:
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x431472106351d5118fef0090279cd0f9%2C00.html&admit=-682735245+1165851558554+28353475
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=121040
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 02:43 AM
12-11-2006 02:43 AM
Re: Limit user to one login
`man security` will give the detailed explanantion.
The parameter is NUMBER_OF_LOGINS_ALLOWED paramter should be set to limit.
Cheers
DK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 02:49 AM
12-11-2006 02:49 AM
Re: Limit user to one login
Using:
# logins=$(who am i | wc -l)
...will *always* return a count of ONE!
Regards!
...JRF...