filesystem permissions change by themselves...

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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,...
    5. 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...
  3. #2

    Default Re: filesystem permissions change by themselves...

    On 2004-07-23, Rachael wrote:
    > 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??
    Your OS's security system is probably doing it. Have you changed
    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

  4. #3

    Default Re: filesystem permissions change by themselves...

    Rachael wrote:
    >
    > 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.
    Turning off search and turning on ability for anyone to create
    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.
    > Checked that there was nothing in cron that could be causing this to
    > happen -- found nothing.
    Check root's /.sh_history for any chmod calls especially ones
    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

  5. #4

    Default Re: filesystem permissions change by themselves...

    [email]dfreybur@yahoo.com[/email] (Doug Freyburger) wrote in message news:<7960d3ee.0407230622.370e4775@posting.google. com>...
    > 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!
    Rachael Guest

  6. #5

    Default Re: filesystem permissions change by themselves...

    Rachael wrote:
    > 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!
    Modify time and change time mean two different things. So
    "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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139