- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User's connection
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
11-20-2001 12:35 PM
11-20-2001 12:35 PM
User's connection
I don't believe to have explained to myself, what I want is that the users make login exclusively once against the team HP 9000, that is to say if I have defined in my system 15 bills of users, I should have then alone a (1) connection for each one of them. Total of connections (login) = 15
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 12:51 PM
11-20-2001 12:51 PM
Re: User's connection
if you want a user to login only once into the box at any point of time, you can do a test check in the /etc/profile :
who |grep $LOGNAME >/tmp/check.$$
if [ $? -eq 0 ]
then
echo "Sorry you are already logged in"
fi
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 12:52 PM
11-20-2001 12:52 PM
Re: User's connection
In your /etc/profile, do a test if the user already logged into your machine
who | grep massons | cut -d " " -f 1 | uniq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 12:54 PM
11-20-2001 12:54 PM
Re: User's connection
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 01:12 PM
11-20-2001 01:12 PM
Re: User's connection
However there are somethings you can do yourself.
Find out what shell your users login into.
Then add a little script to the end of the .profile or .cshrc that checks if the user is logged in or not. If they are logoff the user.
However this can be an admin nightmare....with
old process and such. Also, is there a reason to only limit one login?
Is this what you are trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 06:48 PM
11-20-2001 06:48 PM
Re: User's connection
who |grep $LOGNAME >/tmp/check.$$
I'd suggest
who |grep "^$LOGNAME " >/tmp/check.$$
This should work fine where you have usernames that are subsets of others, say "user", "luser" and "userman"
(Don't want "user" to be locked out just because "luser" is logged in!)