LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2010, 09:44 AM   #1
cheltz
Member
 
Registered: Apr 2010
Posts: 62

Rep: Reputation: 2
Who is changing permissions?


Anyone know a way to track who is changing permissions of a specific directory?
 
Old 04-30-2010, 12:33 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Require everyone to use their user account and sudo rather than root. Cross check your logs vs who was logged in and the history files if applicable.
 
Old 04-30-2010, 12:38 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I would think you would want to set up a system so that normal users can only change files and directories where they are the owner. If it is set up that way, then why would you care how a user changed something?
 
Old 05-01-2010, 02:26 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you're talking about a mounted directory, it can change permissions based on WHO mounted it. Having a more explicit /etc/fstab entry might tame that beast. Otherwise your system might be a bit hosed.
 
Old 05-01-2010, 02:31 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Otherwise fam or gam_server might help ID something. Or just change chmod / chgrp / chown to include some sort of logging. You might also check ~/.bash_history to see who's being naughty for each user. moot if they can log in as root. But there might be some /var/log/ stuff to indicate who's been doing that as well. Depending on how your system is setup.

If it's a device (/dev/), udev might be handling those perms at creation time. Any changes made to the /dev/ after boot are likely lost at the next boot.
 
Old 05-04-2010, 01:21 PM   #6
cheltz
Member
 
Registered: Apr 2010
Posts: 62

Original Poster
Rep: Reputation: 2
OK, I maybe didn't explain myself very well. I do not have root. I was trying to help someone find out who changed permissions on an entire dir tree. I didn't set it up, nor can I change the set up. I DO NOT have root. I don't have a uid either. So, we have someone or a script which is what I think it is that is changing a dir tree from 777 to 755 which screws up the night scripts. I was wondering if anyone knew besides something like tripwire ( something free ) that would tell me who or what did that.

Thanks folks for trying
 
Old 05-04-2010, 01:24 PM   #7
cheltz
Member
 
Registered: Apr 2010
Posts: 62

Original Poster
Rep: Reputation: 2
Shadow7, you mentioned gemin server. Can you explain real quick how that works AND more importantly do I need to be root to run it?
 
Old 05-04-2010, 04:42 PM   #8
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If it happens regularly I would check the cron files to find your culprit.
 
Old 05-04-2010, 09:28 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
FAM - file alter(something or other) monitor.

gam_server is the next gen of that. Whatever that is. If you don't have root, even if you ID what's causing it, you probably can't change it. What file system is this tree on? Some file systems can have alternate perms. Cron is probably a good place to check. It could also be the selinux stuff. If it's not a custom thing, then you might not be the only one with the problem. If it goes with some other action (reboot) / cron job or something. There might be a timestamp on the tree to hint at when it happens, if it's consistent (every day +/- 5 minutes) then it's probably automated, i.e. cron (or any number of other alternatives). I don't know of any humans that consistent.
 
1 members found this post helpful.
  


Reply



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
Changing permissions boygenuis Linux - Newbie 3 10-29-2007 08:22 PM
changing permissions sy-co Mandriva 5 04-16-2004 10:13 AM
Changing Permissions synecdoche Linux - General 1 08-21-2003 10:41 AM
changing permissions... ashesh Linux - General 3 08-15-2003 11:32 PM
Changing permissions Mladek Linux - Software 7 07-09-2003 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration