HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Screen erasure upon logout
Operating System - Linux
1829044
Members
2643
Online
109986
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
04-17-2007 09:21 AM
04-17-2007 09:21 AM
For Linux we can achieve by inserting "clear" in /etc/skel/.bash_logout
How can we do this in HP-UX 11.11? Thanks in advance.
How can we do this in HP-UX 11.11? Thanks in advance.
Everything is possible
Solved! Go to Solution.
- Tags:
- clear
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 09:33 AM
04-17-2007 09:33 AM
Solution
The answer depends on which shell the user is using: sh, ksh, csh (*horror*) or something else. Your Linux solution is applicable to HP-UX too, if you install the bash shell to your system and make it available to the users.
Standard warning: *never* change the shell of the root user: in HP-UX, root's shell must always be /sbin/sh. That is a special shell that will work even when /usr is not mounted and/or system libraries are gone... like when you boot the system to single user mode. If you change root's shell in HP-UX, your system may become unbootable until the change is undone.
If we assume that your users use the HP-UX default shell, /usr/bin/sh, then you could insert the following to the user's .profile (and/or /etc/skel/.profile):
trap "clear" EXIT
MK
Standard warning: *never* change the shell of the root user: in HP-UX, root's shell must always be /sbin/sh. That is a special shell that will work even when /usr is not mounted and/or system libraries are gone... like when you boot the system to single user mode. If you change root's shell in HP-UX, your system may become unbootable until the change is undone.
If we assume that your users use the HP-UX default shell, /usr/bin/sh, then you could insert the following to the user's .profile (and/or /etc/skel/.profile):
trap "clear" EXIT
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 09:41 AM
04-17-2007 09:41 AM
Re: Screen erasure upon logout
Yes. I am using the default shell and it works. Thank you.
Everything is possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 09:42 AM
04-17-2007 09:42 AM
Re: Screen erasure upon logout
Solution worked
Everything is possible
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