- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable direct login to 'generic' application ...
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
02-09-2004 07:47 AM
02-09-2004 07:47 AM
Disable direct login to 'generic' application account
have user login to user account
su to generic application account
Any assistance on this topic would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 07:52 AM
02-09-2004 07:52 AM
Re: Disable direct login to 'generic' application account
We set up a file in /var/adm called .generic_login to hold all the generic login usernames and then add a section to /etc/profile as follows:
KEY3=`grep "${LOGNAME}" /var/adm/.generic_login`
if [ "${KEY3}" != "" ]; then
if [ "${WHO2}" = "${LOGNAME}" -a "${LOGNAME}" != "root" ]; then
if [ ! "$VUE" ]; then
echo "\007\n\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
echo " You cannot login as ${LOGNAME}!!!"
echo " Login as yourself and su to ${LOGNAME}."
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
sleep 5
exit
else
hpterm -bg black -fg yellow -bd red -bw 4 \
-fn courb14 -geometry 80x24+140+165 \
-T 'W A R N I N G' -e '/etc/vue/config/error3'
exit
fi
fi
fi
Works well.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 07:59 AM
02-09-2004 07:59 AM
Re: Disable direct login to 'generic' application account
Thanks a bunch. We will try that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 08:07 AM
02-09-2004 08:07 AM
Re: Disable direct login to 'generic' application account
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 08:08 AM
02-09-2004 08:08 AM
Re: Disable direct login to 'generic' application account
Thanks again!