- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Prevent direct login using 'su - commonlogin' ...
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
01-10-2006 06:10 PM
01-10-2006 06:10 PM
Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 06:36 PM
01-10-2006 06:36 PM
Re: Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
a) move /usr/bin/su to /usr/bin/suorg
b) shell wrapper
echo $* | grep -q 'username'
if [[ $? -eq 0 ]]
then
echo "SU: Login is denied"
else
/usr/bin/suorg $*
fi
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 06:44 PM
01-10-2006 06:44 PM
Re: Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
Can you please revert with details.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 08:18 PM
01-10-2006 08:18 PM
Re: Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
and via the the configuration file I control
who can su to which account.
Otherwise it will be denied.
if you do not want to go to the trouble
of sudo, then why not take the permissions
of the su executable, you will get something like this
#su - opera
#ksh: su: cannot execute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 01:15 PM
01-11-2006 01:15 PM
Re: Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
Thanks for the imm. response. I really wonder if I have made my requirement clear. There are few admins in our dept. I'm the primary person for sybase but now all are using the same login say 'Sybase' incase they need to do some secondary support during my absence. If there is any crisis there isn't any way to find out who is responsible for the same. So I have created induvidual login for each of them. As they are used to login 'sybase', still they tend to use the same. I just want to make sure they can login as sybase only after they login with their induvidual login. Being a production system I cannot take any major step for now. Advise me if there is any risk free method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 01:33 PM
01-11-2006 01:33 PM
Re: Prevent direct login using 'su - commonlogin' and not just 'su commonlogin'
Do you have ssh (hp ssh) on system? It has tcp wrappers built in.
Prepare /etc/hosts.deny file to deny telnet/ssh directly to that user.
User will still be able to do "su - sybase/su sybase"