RE: /tmp got deleted! help
On 07-Sep-2000 Bryan K. Walton wrote: Hello, I made a horrible mistake today. I accidentally deleted the /tmp directory and its contents. I quickly realized my mistake. I created it again (but wasn't able to replace the contents of it). Now, I can start X as root, but I can't start X as any other user. I can't find any errors anywhere. I have tried replacing and deleting the user .xsession files and have tried startx, wdm, and xdm, all to no avail. Can anyone explain to me what I blew away in the /tmp folder and how can I replace or fix it? ( I also made a new user and that user has the same problem as users that were on the box before /tmp got blown away.) Any help would be appreciated!!! drwxrwxrwt8 root root 2048 Sep 7 13:34 tmp notice the permisions. cd / chmod 1777 tmp chown root.root tmp should set you straight.
Re: /tmp got deleted! help
Thanks to both Sean and Andre for the info about the permission on the /tmp directory. Gross oversight on my part, but my panic is gone. Thanks! Bryan
Re: /tmp got deleted! help
Bryan K. Walton [EMAIL PROTECTED] writes: Hello, I made a horrible mistake today. I accidentally deleted the /tmp directory and its contents. I quickly realized my mistake. I created it again (but wasn't able to replace the contents of it). Now, I can start X as root, but I can't start X as any other user. I can't find any errors anywhere. I have tried replacing and deleting the user .xsession files and have tried startx, wdm, and xdm, all to no avail. Can anyone explain to me what I blew away in the /tmp folder and how can I replace or fix it? (I also made a new user and that user has the same problem as users that were on the box before /tmp got blown away.) Any help would be appreciated!!! Thanks, Bryan Walton As I understand it, /tmp/ must be owned by root.root, permissions 41777. An easy way to fix this is mc's chmod: tag everything but the first two fields (user and group ID on execution). -- Andre
Re: /tmp got deleted! help
On Thu, Sep 07, 2000 at 03:25:32PM -0500, Bryan K. Walton wrote: I made a horrible mistake today. I accidentally deleted the /tmp directory and its contents. (...) That *shouldn't* be a problem, as far as I know. Make sure the directories /tmp and /var/tmp exist, regardless if there's anything in them. These directories should normally be emptied on a regular basis, so it shouldn't be a big problem if their contents are deleted, as long as you're not doing anything very important when that happens. (This is basic Linux (UNIX actually) here.) Now as for X malfunctioning, I can't put any reasoning behind that, maybe someone else here can. My advice is to reboot your system after recreating the directories I mentioned above, to make sure everything is clean. Then see if X works. If it still doesn't, try reverting your X set up back to the state it was before the /tmp incident occurred. (Reverting your .xsession and whatever else you mentioned.) If that doesn't solve the problem, I'd investigate your X set up further and do some general diagnosis. Perhaps someone here (as I mentioned already) could provide more insight on the situation. In summary, if /tmp is deleted, don't sweat it, just make sure to reboot. (Cleanly. =) -- J.P. Larocque, known online as piranha [EMAIL PROTECTED] Fidonet: [EMAIL PROTECTED]:346/6 (The Garage, 509-326-4609)
Re: /tmp got deleted! help
In summary, if /tmp is deleted, don't sweat it, just make sure to reboot. (Cleanly. =) No offense intended, but you should almost never have to reboot a Unix / Linux box. Simply change run levels, or stop and start the daemons running. Reasons to reboot: new kernel a daemon went nuts and used up all your sockets lots of zombie processes
Re: /tmp got deleted! help
on Thu, Sep 07, 2000 at 01:57:55PM -0700, Sean 'Shaleh' Perry sent 0.4K bytes on their merry way: No offense intended, but you should almost never have to reboot a Unix / Linux box. Simply change run levels, or stop and start the daemons running. Reasons to reboot: new kernel a daemon went nuts and used up all your sockets lots of zombie processes What about change/add hardware? Linux isn't /that/ robust!! Dan -- Spinfire MagentaIn Real Life: Dan Noe Freelance Hackerhttp://www.isomerica.net/ 31 5B 89 66 F7 E8 73 34 50 6A 79 C4 32 E1 0E 4A pgpzPr9yDhBGs.pgp Description: PGP signature
Re: /tmp got deleted! help
On 07-Sep-2000 Spinfire Magenta wrote: on Thu, Sep 07, 2000 at 01:57:55PM -0700, Sean 'Shaleh' Perry sent 0.4K bytes on their merry way: No offense intended, but you should almost never have to reboot a Unix / Linux box. Simply change run levels, or stop and start the daemons running. Reasons to reboot: new kernel a daemon went nuts and used up all your sockets lots of zombie processes What about change/add hardware? Linux isn't /that/ robust!! (-: I assume new kernel with new hardware.