The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/tmp directory

Discussion in 'General Discussion' started by mahdionline, Oct 23, 2006.

  1. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    we have a centos4.4 + cpanel.

    our box have a /tmp and I want to remount it with noexec.

    I edit "/etc/fstab" and then try to remount the /tmp for change the setting,
    I try " umount /dev/sda6 " I get this error :
    umount: /tmp: device is busy
    umount: /tmp: device is busy

    how can i do it ?

    Regard
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If there are open files on it you cannot umount the drive, you would have to kill any processes that have files open on /tmp. However, there's no need to do that, just remount it instead:

    mount -v -o remount /tmp
     
Loading...

Share This Page