Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory. Can I safely assume that as long as there is no one logged on, besides root to delete all the files in the /tmp directory, that I could safely use the command: #> rm -fr /tmp/* ?? Reading the email further I see that it can be enabled via YAST but when I tried, I failed :( Richard Bos wrote:
Anders Johansson wrote:
It is a good idea though to clean up old and unused junk. So setting CLEAN_TMP_DIRS_AT_BOOTUP to "yes" would be a good idea
Where's that option found?
Oh, sorry, it's in /etc/sysconfig/cron
Anders, I see that file on my 9.0 system is empty. Should I insert CLEAN_TMP_DIRS_AT_BOOTUP=yes in it?
Thought I'd try adding the option via YAST, courtesy of Richard's post, but...
yast -> system -> misc -> editor for sysconfig files. than: system -> cron ... does not lead to a solution as my sysconfig file editor in under system and there is no subdirectory Misc, only a Misc 'brother' to System.
This is all on a 9.0 system -- The tmp getting full Little Helper ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================
* Hylton Conacher (ZR1HPC)
Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory. ...
Oh, sorry, it's in /etc/sysconfig/cron Anders, I see that file on my 9.0 system is empty. Should I insert CLEAN_TMP_DIRS_AT_BOOTUP=yes in it?
Thought I'd try adding the option via YAST, courtesy of Richard's post, but...
yast -> system -> misc -> editor for sysconfig files. than: system -> cron ... does not lead to a solution as my sysconfig file editor in under system and there is no subdirectory Misc, only a Misc 'brother' to System.
This is all on a 9.0 system
Hint... Did you try the 'Search' option? yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Monday 15 November 2004 22:44, Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[11-15-04 14:13]: Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory.
...
Oh, sorry, it's in /etc/sysconfig/cron
Anders, I see that file on my 9.0 system is empty. Should I insert CLEAN_TMP_DIRS_AT_BOOTUP=yes in it?
Thought I'd try adding the option via YAST, courtesy of Richard's post, but...
yast -> system -> misc -> editor for sysconfig files. than: system -> cron
... does not lead to a solution as my sysconfig file editor in under system and there is no subdirectory Misc, only a Misc 'brother' to System.
This is all on a 9.0 system
Hint... Did you try the 'Search' option?
yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP
Yup. And perhaps 'grep TMP /etc/sysconfig/*' would do too. ;) Cheers, Leen
*** Reply to message from Leendert Meyer
Hint... Did you try the 'Search' option?
yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP
Yup. And perhaps 'grep TMP /etc/sysconfig/*' would do too. ;)
hey guys, I just tried that on a 9.1 box and you can find the line w/ search n/p BUT your choices are "go to" and cancel. I tried go to thinking it would bring up the document to edit .. but it doesn't do anything that is visible, and it doesn't ever show up w/ the file to edit. that is just weird, since there used to be a fairly easy edit method IIRC OF course for the terminally curious there is the old fashioned, find it in the cron section in /etc and edit the cron.daily there. It's odd tho that is the only way to edit the sys files. I thought there was a long tree w/ all the posible edits there to be essentially checked on or off... can't find that now . Musta drive somebody bats FWIW it says in /cron.daily suse.de-clean-tmp and that is where the instructions are to actuate it, or so it seems on a cursory read.. -- j -- nemo me impune lacessit 'Quis custodiet ipsos custodes? '
On Tuesday 16 November 2004 00:57, jfweber@bellsouth.net wrote:
*** Reply to message from Leendert Meyer
on Tue, 16 Nov 2004 00:04:52 +0100 One more candle and a trip around the Sun*** Hint... Did you try the 'Search' option?
yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP
Yup. And perhaps 'grep TMP /etc/sysconfig/*' would do too. ;)
hey guys, I just tried that on a 9.1 box and you can find the line w/
Seems you're replying to two mails, and that confuses me. You are not clear about /what/ you tried. What *exactly* did you try?
search n/p BUT your choices are "go to" and cancel. I tried go to thinking it would bring up the document to edit .. but it doesn't do anything that is visible, and it doesn't ever show up w/ the file to edit.
Cheers, Leen
*** Reply to message from Leendert Meyer
Seems you're replying to two mails, and that confuses me. You are not clear about /what/ you tried. What *exactly* did you try?
Sorry Leen, And anyone else I managed to confuse I tried this: Yast ->System ->/etc/sysconfig Editor-> ( pause here to input Administrator password ) having entered the password it brings me a page w/ a search button, lower left an abort button lower middle and a finish button on the lower right. Pushing the search button brings up a dialog, as it should , for me to enter a search term , or string .. then it brings up in response to "cron" as a search string , a series of lines in the "search results" window. One of which is the MAX_DAYS_IN_TMP where should you care to edit the line, your only choice is a button which says Go to or second choice is Cancel... the "go to button" never goes anywhere , it closes the search window as one would expect it to do on "cancel" I found that a little weird. Then I went to /etc/cron.daily and found the Suse.de-clean-tmp file and read it. But to edit a file to make the system delete or clean those files on boot up, /etc/sysconfig/cron will allow editing, if , of course, you have root permission. And the Cron.daily/suse-de-clean-tmp shows you what the options are for changing. I was mainly commenting upon his statement that he couldn't do it via yast. I was unalbe to make the changes w/ yast -> system -> /etc/sysconfig editor either. And to be perfectly clear, I am trying it on a 9.1 box. It hasn't graduated to 9.2 yet. <G> My other comment was, I thought there used to be a way to edit those files from a similarly named sysconfig editor page in yast where there was a great Tree of items and you could make whatever changes were allowed by the system there w/ little effort, even if a bit of patience was required to locate the bit of information you wished to change, that's all. Hope this hasn't muddled it more. -- j -- nemo me impune lacessit 'Quis custodiet ipsos custodes? '
Op dinsdag 16 november 2004 12:33, schreef jfweber@bellsouth.net:
My other comment was, I thought there used to be a way to edit those files from a similarly named sysconfig editor page in yast where there was a great Tree of items and you could make whatever changes were allowed by the system there w/ little effort, even if a bit of patience was required to locate the bit of information you wished to change, that's all.
It's still, look again or do a search for editor. -- Richard Bos Without a home the journey is endless
On Tuesday 16 November 2004 12:33, jfweber@bellsouth.net wrote:
*** Reply to message from Leendert Meyer
on Tue, 16 Nov 2004 11:11:05 +0100 One more candle and a trip around the Sun*** Seems you're replying to two mails, and that confuses me. You are not clear about /what/ you tried. What *exactly* did you try?
Sorry Leen,
No problem, you explained below, thanks. :)
And anyone else I managed to confuse I tried this: Yast ->System ->/etc/sysconfig Editor-> ( pause here to input Administrator password ) having entered the password it brings me a page w/ a search button, lower left an abort button lower middle and a finish button on the lower right. Pushing the search button brings up a dialog, as it should , for me to enter a search term , or string .. then it brings up in response to "cron" as a search string , a series of lines in the "search results" window. One of which is the MAX_DAYS_IN_TMP where should you care to edit the line, your only choice is a button which says Go to or second choice is Cancel... the "go to button" never goes anywhere ,
Perhaps you need to select an item with the mouse or keyboard first?
it closes the search window as one would expect it to do on "cancel" I found that a little weird.
So do I. Ok, you tried Patrick's way, and somehow it didn't work. Maybe try the old fashioned way: grepping /etc/sysconfig/*, and edit the found file. Still does work well. :)
Then I went to /etc/cron.daily and found the Suse.de-clean-tmp file and read it. But to edit a file to make the system delete or clean those files on boot up, /etc/sysconfig/cron will allow editing, if , of course, you have root permission. And the Cron.daily/suse-de-clean-tmp shows you what the options are for changing.
I was mainly commenting upon his statement that he couldn't do it via yast. I was unalbe to make the changes w/ yast -> system -> /etc/sysconfig editor either. And to be perfectly clear, I am trying it on a 9.1 box. It hasn't graduated to 9.2 yet. <G>
I do it on a 9.2 box (a slightly hacked DVD version). ;) The search and goto works overhere.
My other comment was, I thought there used to be a way to edit those files from a similarly named sysconfig editor page in yast where there was a great Tree of items and you could make whatever changes were allowed by the system there w/ little effort, even if a bit of patience was required to locate the bit of information you wished to change, that's all.
Huh? AFAIU that great tree of items /is/ the sysconfig editor.
Hope this hasn't muddled it more.
Nah. ;)) Cheers, Leen
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[11-15-04 14:13]: Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory.
...
This is all on a 9.0 system
Hint... Did you try the 'Search' option? Oh I tried that in any place it would let me search :)
yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP Helps of course if cron is installed.... Hylton you DUMMY!!!
-- The tmp cleared Little Helper ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================
On Sunday 21 November 2004 2:48 pm, Hylton Conacher (ZR1HPC) wrote:
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[11-15-04 14:13]: Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory.
...
This is all on a 9.0 system
Hint... Did you try the 'Search' option?
Oh I tried that in any place it would let me search :)
yast -> system -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP
Hi, Make that YAST >SYSTEM > ?etc/sysconfig editor >System >Cron then choose your option and then enable it. PeterB
Hylton Conacher (ZR1HPC) wrote:
Whilst reading through the list email, I decided it would be a good idea to clear out my own /tmp directory.
Can I safely assume that as long as there is no one logged on, besides root to delete all the files in the /tmp directory, that I could safely use the command:
#> rm -fr /tmp/* ??
A "good" point of view: http://www.securityfocus.com/archive/1/304192/2002-12-18/2002-12-24/0 This message talks about vulnerabilities in a debian package (tmpwatch and tmpreaper also) and/or with mkstemp(). The package's author thinks differently; see a fragment: "IMO there are a couple of things wrong about the points in the text, which I could not resolve in discussion [...] For example, the text speaks of "creation time"; I responded that there is no such thing in POSIX, only the inode change time (which is also changed if you link the file, or rename it, or change the permissions, or even when you delete it). I never got an answer on that." The complete answer was not sent to bugtrack, but you can read it inside the package (108kb): http://ftp.debian.org/debian/pool/main/t/tmpreaper/tmpreaper_1.6.5.tar.gz the file is extracted as tmpreaper-1.6.5\debian\README.security -- Marcos Lazarini
participants (7)
-
Hylton Conacher (ZR1HPC)
-
jfweber@bellsouth.net
-
Leendert Meyer
-
Marcos Lazarini
-
Patrick Shanahan
-
Peter B Van Campen
-
Richard Bos