View previous topic :: View next topic |
Author |
Message |
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Sat Feb 02, 2008 12:17 am Post subject: Directory permissions changing |
|
|
Hi! It's been some months since this problem begun to appear. Sometimes the permissions for a directory change suddenly: in particular 'others' cannot write anymore. This is somehow boring as some processes which have to write there stop working, and I have to set the correct permissions again. Is it possible to know which is the process which changes the permissions to that directory?
Thanks! |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Sun Feb 03, 2008 6:25 pm Post subject: |
|
|
what you would need is a combination of lsof and inofitywatch. unfortunately this does not exist afaik.
check this. |
|
Back to top |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Sun Feb 03, 2008 6:39 pm Post subject: |
|
|
So I have no way to understand why or what is changing my permissions... I will have to test everythig... difficult to find the problem...
Thanks anyway! |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Tue Feb 05, 2008 8:38 am Post subject: |
|
|
What directory is it? Anything standard?
Cheers,
jcat |
|
Back to top |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Tue Feb 05, 2008 8:43 am Post subject: |
|
|
No, I would say nothing related directly to the OS. The directory is on a ext3 filesystem used only by Gentoo. It's a directory created on a mounted hard disk which is used by mldonkey and shared with samba. The same exact use of another directory which is not affected by this strange problem. |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Tue Feb 05, 2008 10:33 am Post subject: |
|
|
I don't know your network set-up, but this could be related to something/someone updating the permissions via samba.
How often does this occur?
If it's often, then try either stopping the samba daemons or temporarily un-sharing that directory. See if it still happens.
Cheers,
jcat |
|
Back to top |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Tue Feb 05, 2008 10:54 am Post subject: |
|
|
It seems it is happening something like once a week. The remote host access the directory more often. The shares are setup the same way in smb.conf. Maybe I can try with something like changing directories or something similar just to understand if this all is up to the pc accessing the directory or something else. I will try some different combinations using other directories and I'll see if the old directory not shared still changes or not. Unfortunately it is difficult since it takes long time to happen.
Thanks! |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Tue Feb 05, 2008 11:54 am Post subject: |
|
|
No worries, just seems like samba is a likely candidate. I don't know how you're set it up, but it is possible for people connecting via SMB to alter permissions if it's allowed.
Like you say, migrate the contents of the directory to another (one with a different name), then change the Samba config to share the new directory and not the old one. Then sit back and wait!
Hopefully that will help to narrow this mystery down at least!
Let us know how you get one.
Cheers,
jcat |
|
Back to top |
|
|
|