- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tmp directory contents not deleted after reboot!!...
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
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
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
тАО01-23-2003 02:19 PM
тАО01-23-2003 02:19 PM
Just ran into this curious issue where the /tmp contents were not deleted on a reboot. Why? Is there some kernel parameter that is controlling this behaviour? Also why is the /tmp having 777 permissions, I thought the sticky bit should be on but to my surprise None of the HPUX workstations had the sticky bit on. Is there a reason for this?
Thanks for letting me know in advance.
Regards
Govind
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:36 PM
тАО01-23-2003 02:36 PM
SolutionYou may want to edit /sbin/init.d/clean_tmps to add any other directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:36 PM
тАО01-23-2003 02:36 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
You don't usually do file deletes with the kernel at boot.
Here is copy of a script run by cron that clears /tmp data
Its been in prodcution here for 8 years, and never made a mess.
It includes a function library but when cron runs it that library isn't used, so just change it and run it the way you need.
If you need to run it interactively, just point me and post a request. I've marked the post notify and I'll gladly share the function library.
This guy gets rid of files 7 days and older, that of course is easily adjustable.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:37 PM
тАО01-23-2003 02:37 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
As to 777 for /tmp this is just what the directory is for, temporary storage location for anyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:37 PM
тАО01-23-2003 02:37 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
/tmp has 777 permissions so that any user can write there. Its not a place to keep programs and stuff you want to limit access to.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:41 PM
тАО01-23-2003 02:41 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
Thanks again
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:42 PM
тАО01-23-2003 02:42 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 03:00 PM
тАО01-23-2003 03:00 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
vi /etc/rc.config.d/clean_tmps.
change it to read:
CLEAR_TMP=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 03:01 PM
тАО01-23-2003 03:01 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
HP-UX as standardly issued does not set the sticky bit on /tmp or /var/tmp or for that matter on /usr/local directories. It's one of those things that, once known, you simply correct and add to your installation checklist.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 03:02 PM
тАО01-23-2003 03:02 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
The sticky bit may not be set on the workstation since workstations are probably considered to be machines where only 1 person is going to log into them, thus no reason to set the sticky bit. This is probably also the reason that workstations used to come with a 2-user license of HP-UX by default.
I don't know all of this to be fact, mind you, this is just my guess, however sound or unsound it may be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 04:46 PM
тАО01-23-2003 04:46 PM
Re: /tmp directory contents not deleted after reboot!!! Why?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 08:52 AM
тАО01-24-2003 08:52 AM
Re: /tmp directory contents not deleted after reboot!!! Why?
Regards
Govind