LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

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

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:

Code:
/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?

NOTES:
* Linux Kernel: 2.6.3-7mdk.
 
Old 06-25-2004, 10:20 PM   #2
mascdman
Member
 
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.

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

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. :-)
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:25 AM.

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