Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 06-23-2004, 03:41 PM   #1
Registered: Aug 2003
Location: Virginia, USA
Distribution: Mandrake 9.1, SuSE 9.2, Ubuntu 7.04-10.04, Sabayon 5, Debian 6
Posts: 64

Rep: Reputation: 18
Unhappy Why was the relocated /tmp write permission automatically reset (lost)?

I just did a fresh install of Mandrake 10.0 on my laptop (AMD XP 1400+). I have two mount points:

/dev/hda3 --> /
/dev/hda7 --> /home

It originally came with /tmp in / , which has attributes drwxrwxrwt.
Now, for some reason, I really want to move /tmp to /home/tmp (i.e. move /tmp to the second partition, but as a part of the second filesystem). So I made tmp subdir in the /home, and it already has attributes drwxrwxrwt before this relocation.

So here's my config in fstab:

/home/tmp  /tmp  none  bind  0 0
Do you know what happens? Every now and then, the /tmp permission was reset to drwxr-xr-x !! Then many programs would scream because they can't write to /tmp. Is this automatic of Mandrake (which, as I could tell, contains quite a bit of magic here and there), or what? Is it because this kind of trick is not allowed? (I.e. am I not supposed to remount /home/tmp as /tmp)? Should I just make a softlink from /tmp to /home/tmp?

* Linux Kernel: 2.6.3-7mdk.
Old 06-25-2004, 11:20 PM   #2
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
If you check the logs, there might be something in there about it changing the permissions on "world-writable" files. Depending on the security level you chose, there are a variety of daily checks that occur (looking for world-readable/-writeable files, SUID programs, changes to the RPM database, etc...). Personally, I would just use a symbolic link.

Old 06-26-2004, 08:33 PM   #3
Registered: Aug 2003
Location: Virginia, USA
Distribution: Mandrake 9.1, SuSE 9.2, Ubuntu 7.04-10.04, Sabayon 5, Debian 6
Posts: 64

Original Poster
Rep: Reputation: 18
Yup. I think that's because of `msec' (Mandrake security) feature. Sometimes it's nice to have this, but often it's a nuisance too, to have my settings overriden "magically" by its actions.

There was no information about the attribute change in the log file (syslog, dmesg, /var/log/security etc..). The action was logged in /var/log/messages.

To turn off this "feature", I had to go to Mandrake Control Center, choose "Security", "Permissions", then set up a custom rule in which /home/tmp's permission is explicitly set to 1777. Anyway, just a bit annoying feature of the otherwise-useful msec. :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
file in /tmp is lost ust Linux - General 3 03-02-2005 09:52 PM
permission denied writing to /tmp rsteelman Linux - General 7 02-06-2005 08:10 PM
Permissions home dir reset automatically Marco Vermunt Linux - Newbie 1 01-24-2005 02:50 PM
/tmp wiped automatically? rob19 Linux - General 4 12-14-2003 10:00 PM
original /tmp permission redhatnoob Linux - General 2 11-13-2003 09:05 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration