Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/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:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice