HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- access by X
Operating System - HP-UX
1834408
Members
1714
Online
110067
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
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
12-12-2004 10:49 PM
12-12-2004 10:49 PM
access by X
How to block to HPUX access by X, for user "yyy" ?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 12:23 AM
12-13-2004 12:23 AM
Re: access by X
Hi, Piotr!
Try to add at startup file for CDE /*/dt/config/Xstartup
next:
...
if [ "$LOGNAME" = "root" ]
then exit 1
fi
...
where "/*/" is "/etc/" and "/usr/", of course.
Good Luck.
Try to add at startup file for CDE /*/dt/config/Xstartup
next:
...
if [ "$LOGNAME" = "root" ]
then exit 1
fi
...
where "/*/" is "/etc/" and "/usr/", of course.
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 12:29 AM
12-13-2004 12:29 AM
Re: access by X
Hi Piotr,
Add a startup file like below.
vi /etc/dt/config/Xsession.d/0000.deny
if [ "${USER}" = "yyy" ]
then
/usr/dt/bin/dterror.ds "You Cannot login as $USER through X" "Login Denied" "Exit"
exit 1
fi
If you want multiple users to be denied access, then create a file say /etc/xlogin.deny with entries like
user1:
user2:
user3:
then modify the above script like
grep -q "${USER}:" /etc/xlogin.deny
if [[ $? = 0 ]]
then
fi
-Sri
Add a startup file like below.
vi /etc/dt/config/Xsession.d/0000.deny
if [ "${USER}" = "yyy" ]
then
/usr/dt/bin/dterror.ds "You Cannot login as $USER through X" "Login Denied" "Exit"
exit 1
fi
If you want multiple users to be denied access, then create a file say /etc/xlogin.deny with entries like
user1:
user2:
user3:
then modify the above script like
grep -q "${USER}:" /etc/xlogin.deny
if [[ $? = 0 ]]
then
fi
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 12:35 AM
12-13-2004 12:35 AM
Re: access by X
thank you
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