- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
06-17-2003 06:25 AM
06-17-2003 06:25 AM
User Login
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 06:37 AM
06-17-2003 06:37 AM
Re: User Login
sorry but there is no such thing for normal user.
You have many alternatives, depending ob your needs.
- lock the other account, so they will not be able to login directly
- put a check in the .profile of the users, and if they are connecting from a tty they will be pushed out. you can check this with the "tty" command output.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 06:38 AM
06-17-2003 06:38 AM
Re: User Login
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 06:40 AM
06-17-2003 06:40 AM
Re: User Login
Downloadable from http://hpux.cs.utah.edu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 06:48 AM
06-17-2003 06:48 AM
Re: User Login
who -m returns the username which was originally logged in. Add this to .profile of the account which you want to bar/not directly login for example oracle.
us=`who -m|awk '{ print $1 }'`
echo user is $us
if [ "$us" = "oracle" ]; then
exit
fi
But the problem here is, the users can see the .profile of oracle and can edit the profile. May be try adding this to /etc/profile. I am yet to test that.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 07:04 AM
06-17-2003 07:04 AM
Re: User Login
i suggest not to to the change in /etc/profile,
because there may be cases (example root) in which you want always to have the proper profile running, in every case, even on single user.
It's better to put it in the users profile, and change ownership so that users cannot modiify it.
HTH,
Massimo