Ask a Question related to Linux / Unix Administration, Design and Development.
-
Rachael #1
filesystem permissions change by themselves...
permissions on my /opt filesystem are changing daily, seeming by
themselves.
i.e.
I tried to run a scipt and noticed that the permissions on /opt had
changed to 766, i.e.
drwxrw-rw- 40 root unicentr 1024 Jul 13 11:40 opt
where they had previously always been 755.
Checked that there was nothing in cron that could be causing this to
happen -- found nothing.
At the moment I've had to schedule a cron job to reset the permissions
each night, but have no idea what could be causing them to be changed.
Any ideas??
Rachael
Rachael Guest
-
Change NTFS Permissions or run shell script
I am trying to Create a web app that creates a directory, and assigns permissions to the directory. Is there a way to do this, or even run a shell... -
how do you change IUSR_machinename permissions?
Having a nightmare with the old DW bug when using an Access database and ASP pages that produces this error: "Could not open "unknown"; file... -
Change Unix file permissions from a Carbon app?
In article <not.here-ya02408000R3007030100130001@news.dial.pipex.com>, not.here@dial.pipex.com (Phil Taylor) wrote: 1.) Look in <Files.h> at... -
cant change file permissions from read only on network
Im on WindowsXP Home--I have a network setup and experience no problems, except for one. I can share drives on each computer and see all the data,... -
screwed up permissions for whole filesystem
On Fri, June 27 at 12:08 PM EDT Shri Shrikumar <shri@urbyte.com> wrote: Are you sure you messed up the whole filesystem that way? /root is... -
Chris F.A. Johnson #2
Re: filesystem permissions change by themselves...
On 2004-07-23, Rachael wrote:
Your OS's security system is probably doing it. Have you changed> permissions on my /opt filesystem are changing daily, seeming by
> themselves.
>
> i.e.
>
> I tried to run a scipt and noticed that the permissions on /opt had
> changed to 766, i.e.
>
> drwxrw-rw- 40 root unicentr 1024 Jul 13 11:40 opt
>
> where they had previously always been 755.
>
> Checked that there was nothing in cron that could be causing this to
> happen -- found nothing.
>
> At the moment I've had to schedule a cron job to reset the permissions
> each night, but have no idea what could be causing them to be changed.
>
> Any ideas??
the security level recently?
--
Chris F.A. Johnson [url]http://cfaj.freeshell.org/shell[/url]
================================================== =================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
Chris F.A. Johnson Guest
-
Doug Freyburger #3
Re: filesystem permissions change by themselves...
Rachael wrote:
Turning off search and turning on ability for anyone to create>
> permissions on my /opt filesystem are changing daily, seeming by
> themselves.
>
> drwxrw-rw- 40 root unicentr 1024 Jul 13 11:40 opt
> where they had previously always been 755.
and delete files under /opt is extremely bad. Any chance you
have been root-kitted? Get a fresh copy of the checksum
program and run it to see if common binaries have been changed.
Check root's /.sh_history for any chmod calls especially ones> Checked that there was nothing in cron that could be causing this to
> happen -- found nothing.
with -r. Ask around with the rest of the staff as someone
could be doing it deliberately not knowing how wrong it is.
Log the modify time of /opt each day for several days. Use
"ls -ldc /opt" as well as "ls -ld /opt" to find any chmod's
as well as any time some file is created/renamed/deleted
under /opt. If it is changed as the same time then it's a
cron job that needs *much* closer inspection or a daemon
imitating a cron job.
Doug Freyburger Guest
-
Rachael #4
Re: filesystem permissions change by themselves...
[email]dfreybur@yahoo.com[/email] (Doug Freyburger) wrote in message news:<7960d3ee.0407230622.370e4775@posting.google. com>...
---> Well, thats another thing, the modify date of /opt does not> Log the modify time of /opt each day for several days. Use
> "ls -ldc /opt" as well as "ls -ld /opt" to find any chmod's
> as well as any time some file is created/renamed/deleted
> under /opt. If it is changed as the same time then it's a
> cron job that needs *much* closer inspection or a daemon
> imitating a cron job.
change, but the permissions on the directory do..I will check out the
other things that have been mentioned, thanks!
Rachael Guest
-
Doug Freyburger #5
Re: filesystem permissions change by themselves...
Rachael wrote:
Modify time and change time mean two different things. So> Doug Freyburger wrote:
>>> > Log the modify time of /opt each day for several days. Use
> > "ls -ldc /opt" as well as "ls -ld /opt" to find any chmod's
> > as well as any time some file is created/renamed/deleted
> > under /opt. If it is changed as the same time then it's a
> > cron job that needs *much* closer inspection or a daemon
> > imitating a cron job.
> ---> Well, thats another thing, the modify date of /opt does not
> change, but the permissions on the directory do..I will check out the
> other things that have been mentioned, thanks!
"ls -ldc" not "ls -ldm". chmod causes ctime to be updated
not mtime. To change mtime create/delete/rename a file in
/opt. To change ctime run chmod/chown/chgrp on /opt itself.
Doug Freyburger Guest



Reply With Quote

