HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to limit root login from eXceed?
Operating System - HP-UX
1832487
Members
4286
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-12-2005 04:00 PM
10-12-2005 04:00 PM
For security consideration, we have to limit root login. We have used /etc/securetty to limit root login from telnet. However, we always can't limit root login from eXceed. We try the following workaround but still failed. Please advise.
# vi /etc/dt/config/Xsession.d/0001.nologin
case "$USER" in
root)
/usr/dt/bin/dterror.ds \
'Deny root login !!\n' \
'nologin' \
'OK'
exit 1
;;
*)
: # do nothing
;;
esac
# vi /etc/dt/config/Xsession.d/0001.nologin
case "$USER" in
root)
/usr/dt/bin/dterror.ds \
'Deny root login !!\n' \
'nologin' \
'OK'
exit 1
;;
*)
: # do nothing
;;
esac
測試
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 04:09 PM
10-12-2005 04:09 PM
Re: How to limit root login from eXceed?
A similar thread can help you,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840663
-Arun
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840663
-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 08:06 PM
10-12-2005 08:06 PM
Re: How to limit root login from eXceed?
You have to use /usr/dt/config/Xstartup file to put this script as,
if [ ${LOGNAME} = "root" ]
then
/usr/dt/bin/dterror.ds \
'Deny root login !!\n' \
'nologin' \
'OK'
exit 1
;;
fi
Or else put this in root's home directory $HOME/.dtprofile file.
Note: Don't use USER environment variable when you don't have SSH connection. It is ssh variable. Use LOGNAME instead.
hth.
if [ ${LOGNAME} = "root" ]
then
/usr/dt/bin/dterror.ds \
'Deny root login !!\n' \
'nologin' \
'OK'
exit 1
;;
fi
Or else put this in root's home directory $HOME/.dtprofile file.
Note: Don't use USER environment variable when you don't have SSH connection. It is ssh variable. Use LOGNAME instead.
hth.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2005 04:11 AM
10-14-2005 04:11 AM
Solution
Hi there,
The easiest way to disable logins (though not root specifically) via XDMCP is via Bastille.
Run "bastille" on an 11.23 system (or download the app for 11.0 or 11.11), and answer the associated question "Y". While you're in there you'll also see other useful security-lockdown features you may want to use.
Bastille is an easy-to-use, supported, graphical wizard that walks you through security hardening.
Also, note that Bastille can also perform the securetty edit you guys currently do "manually" or via a home-grown script.
Hope that helps,
Robert
The easiest way to disable logins (though not root specifically) via XDMCP is via Bastille.
Run "bastille" on an 11.23 system (or download the app for 11.0 or 11.11), and answer the associated question "Y". While you're in there you'll also see other useful security-lockdown features you may want to use.
Bastille is an easy-to-use, supported, graphical wizard that walks you through security hardening.
Also, note that Bastille can also perform the securetty edit you guys currently do "manually" or via a home-grown script.
Hope that helps,
Robert
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP