- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ez way to temporarily restrict dtremote access
Operating System - HP-UX
1758535
Members
1794
Online
108872
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
Discussions
Discussions
Forums
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
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
тАО05-13-2002 03:25 PM
тАО05-13-2002 03:25 PM
This forum has been great, with a ton of good ideas, as I've worked with AIX, but am new to HP-UX.
I'm looking for an equivalent of the /etc/nologin, which works fine for standard conenctions, that will work for dtremote. I just want to be able to "switch off" XWindows access (and any others, if a quick solution), then switch it back on. I might end up with a script to do it all, but wondering what files/settings need to get hit. fyi, this is UX 11.0, on a smaller system. There is not currently an /etc/dt/config/Xsetup file.
Thanks one and all
I'm looking for an equivalent of the /etc/nologin, which works fine for standard conenctions, that will work for dtremote. I just want to be able to "switch off" XWindows access (and any others, if a quick solution), then switch it back on. I might end up with a script to do it all, but wondering what files/settings need to get hit. fyi, this is UX 11.0, on a smaller system. There is not currently an /etc/dt/config/Xsetup file.
Thanks one and all
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2002 05:50 PM
тАО05-13-2002 05:50 PM
Re: ez way to temporarily restrict dtremote access
You can use the following command to stop Xsessions, if any user is currently using it will kill them.
/sbin/init.d/dtlogin.rc stop
when you want to enable run
/sbin/init.d/dtlogin.rc start
If you want to disable permanently you edit the file /etc/rc.config.d/desktop
change DESKTOP=CDE to DESKTOP=
Hope this helps
Raj
/sbin/init.d/dtlogin.rc stop
when you want to enable run
/sbin/init.d/dtlogin.rc start
If you want to disable permanently you edit the file /etc/rc.config.d/desktop
change DESKTOP=CDE to DESKTOP=
Hope this helps
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2002 06:26 PM
тАО05-13-2002 06:26 PM
Re: ez way to temporarily restrict dtremote access
Hi,
Try this out
# cp /usr/dt/config/Xaccess /etc/dt/config/.
You can chnage the parameters according to your need in Xaccess file.
# /sbin/init.d/dtlogin.rc stop
# /sbin/init.d/dtlogin.rc start
--Niraj
Try this out
# cp /usr/dt/config/Xaccess /etc/dt/config/.
You can chnage the parameters according to your need in Xaccess file.
# /sbin/init.d/dtlogin.rc stop
# /sbin/init.d/dtlogin.rc start
--Niraj
Niraj.Verma@philips.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 12:06 AM
тАО05-14-2002 12:06 AM
Solution
Hi
Add this to /etc/profile
name=$(logname)
if [ -r /etc/nologin ]
then
if [ $name != root ]
then
echo "$name not allowed to login, System is Unavailable"
echo "Exiting"
sleep 2
exit
fi
fi
touch /etc/nologin and chmod 444
Then the non root logins are banned when /etc/nologin exists and is readable
If csh users exists add code /etc/csh.login
Steve Steel
Add this to /etc/profile
name=$(logname)
if [ -r /etc/nologin ]
then
if [ $name != root ]
then
echo "$name not allowed to login, System is Unavailable"
echo "Exiting"
sleep 2
exit
fi
fi
touch /etc/nologin and chmod 444
Then the non root logins are banned when /etc/nologin exists and is readable
If csh users exists add code /etc/csh.login
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP