- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- logon by userid instead and su to 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
08-21-2006 04:03 AM
08-21-2006 04:03 AM
How do I disable user from logging directly by application userid? I want the user to login as him/her self and su to application. If somthing happens I will be able to trace who logged in at that time.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 04:11 AM
08-21-2006 04:11 AM
Re: logon by userid instead and su to application
Take a look at this thread:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1048593
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 04:18 AM
08-21-2006 04:18 AM
Solution%appusers localhost=/usr/bin/su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 04:20 AM
08-21-2006 04:20 AM
Re: logon by userid instead and su to application
Allows you to capture the logging asd to who did the su to the account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 04:33 AM
08-21-2006 04:33 AM
Re: logon by userid instead and su to application
In the profile of the su'd user check that the the number of processes using ps is greater than two. i.e. must have two shells running. If not do an exit.
Now the user could change the .profile after su'ing so this is not a secure option.
Setting the users shell to /usr/bin/false might work but typically you want a shell and the profile to be read when doing su - user.
I have always looked for this option as well, if you find a secure solution make sure you repost.
The only other choice so far would be to use sudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 05:04 AM
08-21-2006 05:04 AM
Re: logon by userid instead and su to application
Thank you all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 05:30 AM
08-21-2006 05:30 AM
Re: logon by userid instead and su to application
As stated above the SShd2_config file has a deny user line. But what about the /etc/limilogins file. you may want to check and make an entry in that file also.
Sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 07:00 AM
08-21-2006 07:00 AM
Re: logon by userid instead and su to application
The version of OpenSSH I have is 3.7 and SShd2_config does not exits. I checked ssh_config and sshd_config for deny user line and is not there. Can I put a line?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 07:03 AM
08-21-2006 07:03 AM
Re: logon by userid instead and su to application
This is simple.
Users have no business having the password for the application user.
Change it and don't tell the user.
This is a policy issue, not an admin issue. If you disable the login, root won't be able to su -c username command to start the application server process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 08:02 AM
08-21-2006 08:02 AM
Re: logon by userid instead and su to application
If they do not know the password how can they su to the application user. Here is the example I want to do.
application userid : asap
username: kevin
First Kevin should login as kevin and su to asap to get to the application. Right now a lot of people login as asap and want to know who that person is. If they try to login as asap to the system, the system should not let them login.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 10:17 AM
08-21-2006 10:17 AM
Re: logon by userid instead and su to application
OR ..
In the .profile ,
if [ `whoami` -eq "asap" ]
then
exit 0
fi
Change the ownership of .profile to root ( can u change the home owner as root as well and then create all the child directories owned by the "asap" user ?).
I think this will work, user's may have to use "su" instead of "su -" so that profile is not processed.
Test it ...
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 02:03 AM
08-22-2006 02:03 AM
Re: logon by userid instead and su to application
This will allow you to fine tune some of the access restrictions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2006 10:53 AM
08-22-2006 10:53 AM
Re: logon by userid instead and su to application
suggested. It is working.
Thanks