- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Preventing groups of users from logging in
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-02-2002 08:11 AM
12-02-2002 08:11 AM
Preventing groups of users from logging in
What's the easiest way to prevent groups of users from logging into an HP-UX 10.20 system?
Thanks,
Matt Rieman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:15 AM
12-02-2002 08:15 AM
Re: Preventing groups of users from logging in
Here's a link which talks about the "nologin" feature. That may be of some help. The only other thing I can think of is to trap them in /etc/profile and throw them out there.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:19 AM
12-02-2002 08:19 AM
Re: Preventing groups of users from logging in
In particular, the link provided by U.SivaKumar shows an example of preventing user login via a script.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:20 AM
12-02-2002 08:20 AM
Re: Preventing groups of users from logging in
you can add the following in the /etc/profile which will throw a specific group of people out :
groupid=`groups | awk '{print $1}'`
echo $groupid
if [ $groupid = oracle ]
then
exit
fi
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:39 AM
12-02-2002 08:39 AM
Re: Preventing groups of users from logging in
Regards,
Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:47 AM
12-02-2002 08:47 AM
Re: Preventing groups of users from logging in
How do I find the link provided by U.Sivakumar?
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 08:51 AM
12-02-2002 08:51 AM
Re: Preventing groups of users from logging in
I'm very sorry, I thought I pasted the link. Anyway, here's the first link:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb0d2a848deccd61190050090279cd0f9,00.html
and the particular one:
http://www.interex.org/pubcontent/enterprise/jul01/09uxqa.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 09:54 AM
12-02-2002 09:54 AM
Re: Preventing groups of users from logging in
be careful to NOT forget the graphical logins, ie.e. CDE/XDM!
So for TELNET/SSH/RLOGIN/REMSH/XDM logins to be restricted you'll have to modify e.g. "/etc/profile" (for the first four of them, but only in the case they use "ksh" or "sh" or "bash", but NOT "csh"), and for the latter it would be "/etc/dt/config/Xstartup":
- check for the restrictiions you want, like number of existing logins: n=$(who -u|grep "^$LOGNAME "|wc -l)
- then use the exit code to restirct: if [ $n -gt 5 ]; then exit 1; fi
HTH,
Wodisch