- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restrict initial logins to accounts other than...
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
11-30-2006 04:08 AM
11-30-2006 04:08 AM
I know how to do this for CDE, but what about telnet and sshd?
thanks all...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 04:49 AM
11-30-2006 04:49 AM
Re: Restrict initial logins to accounts other than root?
This thread should be able to help you:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123216&admit=-682735245+1164908912885+28353475
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 05:11 AM
11-30-2006 05:11 AM
Re: Restrict initial logins to accounts other than root?
Later on in the thread it suggests changes to .profile but there's a hitch I forgot to mention. Users need to be able to
su - name
to get to the restricted acount. So they will execute the .profile from su. Need another way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 05:14 AM
11-30-2006 05:14 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1023896
The example is for oracle but you can modify it to use with any account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 05:18 AM
11-30-2006 05:18 AM
Re: Restrict initial logins to accounts other than root?
Executing 'su - logname' will cause the '.profile' for the 'logname' to be executed. [Posix shell assumed, here.]
As the last piece of the '.profile':
# exec /your_application_code
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 05:19 AM
11-30-2006 05:19 AM
Re: Restrict initial logins to accounts other than root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 05:46 AM
11-30-2006 05:46 AM
Re: Restrict initial logins to accounts other than root?
And in case that thread disappears, the solutions I've implemented are:
sshd_config:
DenyUsers username
.profile:
if [ `who -m|grep 'acctname'|wc -l` -gt 0 ]
then
exit
fi
with .profile owned by root and restricted permissions to prevent user changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 06:02 AM
11-30-2006 06:02 AM
Re: Restrict initial logins to accounts other than root?
Hmmm...0-points for attempting to help you when your question/problem description assumes someone is Miss Cleo...
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 06:09 AM
11-30-2006 06:09 AM
Re: Restrict initial logins to accounts other than root?
Either that or Miss Cleo wasn't really needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 06:16 AM
11-30-2006 06:16 AM
Re: Restrict initial logins to accounts other than root?
> Apparently others in this topic were more in touch with Miss Cleo than you, James. Either that or Miss Cleo wasn't really needed.
Yeah, and I'll venture to say that you probably wouldn't say "thank you" to someone who even held a door open for you.
Don't worry, I got your point (no pun intended).
...JRF...