Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Moving /tmp -- chmod 1777 /tmp (don't forget!)
  • From: "Bryan J. Smith" <b.j.smith@xxxxxxxx>
  • Date: Mon, 3 Jul 2006 06:34:20 -0700 (PDT)
  • Message-id: <20060703133420.49161.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Per Jessen <per@xxxxxxxxxxxx> wrote:
> 1. go into single user mode - "init S"
> 2. mv /tmp /oldtmp
> 3. mkdir /tmp

Don't forget**:

3.a. chmod 1777 /tmp

> 4. umount /dev/hda6
> 5. mount /dev/hda6 /tmp

Don't forget**:

5.a. chmod 1777 /tmp

> 6. rsync -av /new/oldtmp/* /tmp
> 6. return to normal runlevel - "init 5".
> 7. optionally get rid /oldtmp
> 8. update fstab to have /tmp mounted at startup.

**NOTE: It's best to set the sticky bit on both the /tmp directory
of the root (/) filesystem (before mount, just in case /tmp doesn't
mount) as well as on the /tmp filesystem after mount.

If you don't set the sticky bit and full read/write/execute
permissions on /tmp, you'll get all sorts of wacky behavior. And it
won't be readily apparent the cause is permissions either.


--
Bryan J. Smith Professional, Technical Annoyance
b.j.smith@xxxxxxxx http://thebs413.blogspot.com
-----------------------------------------------------------
Americans don't get upset because citizens in some foreign
nations can burn the American flag -- Americans get upset
because citizens in those same nations can't burn their own

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
References