Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Directory permissions changing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sat Feb 02, 2008 12:17 am    Post subject: Directory permissions changing Reply with quote

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
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Feb 03, 2008 6:25 pm    Post subject: Reply with quote

what you would need is a combination of lsof and inofitywatch. unfortunately this does not exist afaik.
check this.
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Sun Feb 03, 2008 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Tue Feb 05, 2008 8:38 am    Post subject: Reply with quote

What directory is it? Anything standard?



Cheers,
jcat
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Tue Feb 05, 2008 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Tue Feb 05, 2008 10:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Tue Feb 05, 2008 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Tue Feb 05, 2008 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum