LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-16-2018, 02:31 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
Permissions change automatically


Hello all,

I can see a change of file permissions from rwxrwxrwx to rw-rw-r-- for some of the files. Any idea on this? Is there any monitoring tool to observe this changes. Please suggest

Last edited by 1s440; 07-16-2018 at 06:06 AM.
 
Old 07-16-2018, 08:45 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
In general rwxrwxrwx is a bad idea. Many people try to do this on all files so they don't have to muck with permissions but even if it worked it would make the machine totally hackable. Due to the security issues inherent in global access to system files many of them won't work when they have rwxrwxrwx permissions so setting everything to that breaks things.

You don't say what Linux distro or version thereof you're running. There could indeed be automated jobs that check for the correct permissions on files and reset them based on the installation package used originally. There may be other jobs other admins wrote to guard against junior admins setting things to rwxrwxrwx.

Also there are special directory permissions that can be set to insure certain permissions are put on files within them though that usually only impacts new or updated files and not already existing files.
 
Old 07-18-2018, 05:15 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,160

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
To monitor file changes or permission changes, need to enable auditd or auditctl

Check out links below:

https://unix.stackexchange.com/quest...ission-changes

https://serverfault.com/questions/43...ission-changes

https://access.redhat.com/solutions/10107

Good luck!
 
  


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
Automatically change permissions/ownership of files in a directory Shimdidly Linux - Newbie 3 04-08-2012 08:22 PM
[SOLVED] How can I change file permissions in windows ntfs partition.Even root can't change it e3399 Linux - Newbie 3 03-02-2011 10:54 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM
Any way to automatically assign permissions?? andpol Linux - Newbie 2 05-14-2007 11:01 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:44 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