- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Denial login through X
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
03-06-2002 09:53 PM
03-06-2002 09:53 PM
Denial login through X
Is it possible to denial user login using X emulation software ? If so, how ?
Thanks in advance,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2002 10:04 PM
03-06-2002 10:04 PM
Re: Denial login through X
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x99d8a135f587d5118ff00090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2002 11:39 PM
03-06-2002 11:39 PM
Re: Denial login through X
Here's how to prevent root from getting a desktop login:
To prevent root from logging in to CDE at any display:
Create /etc/dt/config/Xsession.d/0001.noroot (755 root sys) with the following contents:
#!/usr/bin/sh
if [ $USER = root ]; then
/usr/dt/bin/dterror.ds 'Root Access Denied\n
Login as a non-root user, \n
or as root through Command Line Login' 'title' 'OK'
exit 0
fi
Thanks to NASRE,CHRISTINE [christine_nasre@hp.com]
I've made this work for other users as well, just swap 'root' with the username you wish to lock out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 12:14 AM
03-07-2002 12:14 AM
Re: Denial login through X
1)if your user has a fixed machine then copy
/usr/dt/config/Xaccess to /etc/dt/config if
it is not already there and then exclude the users system.
The file contains enough comment to be self explanatory.
2)Use the Xstartup script to identify users.
The script is run with root permissions and can identify users by name that may login to CDE. If Xstartup exits with a non-zero status, CDE will NOT start. Due to display restrictions, you cannot display a message from Xstartup. The user will just see the login is failing.
copy Xstartup,from /usr/dt/config to /etc/dt/config.
Never edit the files in /usr/dt/config.
EXAMPLE:
case "$USER" in
root|admin)
: # do nothing
;;
*)
exit 1
;;
esac
3) As shown above using a test in an Xsession.d script to identify authorized users.
Scripts found in /etc/dt/config/Xsession.d will be "sourced" by CDE's Xsession (/usr/dt/bin/Xsession) during login
EXAMPLE
"/etc/dt/config/Xsession.d/0001.nologin":
case "$USER" in
root|admin)
: # do nothing
;;
*)
/usr/dt/bin/dterror.ds 'Login to CDE not permitted for : $USER\n' 'Thus nologin' 'OK'
exit 1
;;
esac
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 12:14 AM
03-07-2002 12:14 AM