- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I prevent user to login directly to a gene...
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
05-10-2004 11:48 PM
05-10-2004 11:48 PM
I'm trying to secure access to a non-root generic user. Users should only be able to su to this generic user from their user specific logins. A direct login should not be possible.
Maybe someone knows a solution.
Thanks in advance,
Joachim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 11:50 PM
05-10-2004 11:50 PM
Solutionhttp://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000067342908
Europe:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000067342908
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 11:56 PM
05-10-2004 11:56 PM
Re: How can I prevent user to login directly to a generic account?
Check this thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=143659
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 11:58 PM
05-10-2004 11:58 PM
Re: How can I prevent user to login directly to a generic account?
if [ "$USER" = "root" ]; then
if [ -f /etc/securetty ]; then
if [ "$DTXSERVERLOCATION" != "local" ]; then
grep -q console /etc/securetty
if [ `echo $?` -eq 0 ]; then
exit 1
fi
fi
fi
fi
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 12:19 AM
05-11-2004 12:19 AM
Re: How can I prevent user to login directly to a generic account?
Cheryl, that was so quick and the link really did it. Thanks very much!!
Robert-Jan, a bit more complicated but surely an option.
Sanjay, a good way to secure root.
Thanks to all of you for the quick response!!!!
Regards,
Joachim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 12:27 AM
05-11-2004 12:27 AM
Re: How can I prevent user to login directly to a generic account?
How about this in the .profile, it's a bit shorter
[ $0 != "-su" ] && exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 01:09 AM
05-11-2004 01:09 AM
Re: How can I prevent user to login directly to a generic account?
That seems to be as short as it can get :)
Great idea!!!
Thanks,
Joachim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 09:58 AM
05-13-2004 09:58 AM
Re: How can I prevent user to login directly to a generic account?
Change the password on the account to an unknown value to the user, then require them to use sudo to su to that account.