LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-28-2005, 12:23 PM   #1
ruzle0
LQ Newbie
 
Registered: Sep 2005
Location: Zamość
Distribution: Mandriva
Posts: 10

Rep: Reputation: 0
unexpected chmod behaviour


hi i'm new so maybe this will be obvious to somebody.

i am setting up a linux dual boot on mine and my parents computer so it's set up right, before making it the permanent os.

i've made the users so family members can have their various preferences and i wanted to make an area for files to be accessible to all users, mp3's etc.

as root i used chmod to allow the use of the /home directory by all users. this worked for a while and ls -l confirmed the new permisions.
later i went to write something into the /home directory to find it had reverted to the original permissions. This is after i had writen data there as a user [not root] already.
While i don't know why, this is happening and on closer observation seems to happen within about 10 mins.
Is the home folder specially protected or is there a problem with the permissions being saved to disk somehow?
i have not noticed this happening anywhere else in the file system.

i am using mandriva LE 2005 with kde
 
Old 11-28-2005, 01:40 PM   #2
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 10, Linux Mint 11
Posts: 148

Rep: Reputation: 18
Ok. I'd run across this under 10.0, and finally figured it all out, but had forgotten. So I went looking. Turns out the interface I'd used under 10.0 isn't there anymore.

Anyway, your culpret is msec (Mandrive Security). Which is pretty handy and all, can just cause some problems. If you check your /etc/cron.hourly, I bet you see it in there. Now, you can get rid of it (check cron.daily as well), or you can change its behavior. To do so, you'll need to know the msec level that you are running under (check /etc/sysconfig/msec under the SECURE_LEVEL variable). Once you know that, pop over to /usr/share/msec. In this directory are your configuration files. If you look in the perm file for your security level (mine is set to 3, so perm.3 for me), you'll see a listing of directories, owners, and permissions. When that cron job kicks off every hour, it sets the owner and permissions for those directories. Just find the home directory and set the permissions to what you want.

There might be a GUI interface for this, but I couldn't find one on my 2005LE system, though I remember it in the Control Center under 10.0.
 
Old 11-28-2005, 02:06 PM   #3
ruzle0
LQ Newbie
 
Registered: Sep 2005
Location: Zamość
Distribution: Mandriva
Posts: 10

Original Poster
Rep: Reputation: 0
Ok thanks i'll give that a look.
At least i know whats happening now, thanks for the tip!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
Unexpected behaviour with the find command dazdaz Linux - General 3 12-15-2004 08:50 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
Unexpected Problem with XP Mandrake92 General 9 05-28-2004 10:52 AM
error unexpected inconsistency rromeli Linux - Software 0 02-07-2002 01:55 AM


All times are GMT -5. The time now is 07:18 PM.

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