[CLUE-Tech] Re: I tried the 'chattr +i'

Jed S. Baer thag at frii.com
Wed May 22 17:51:20 MDT 2002


On Wed, 22 May 2002 18:59:16 -0400 (EDT)
"David Jackson" <david.j.jackson at pickledbeans.com> wrote:

> Joe --
> You have to use -R flag for recursive.

Well, I don't recall the original question too well, and I can't find it.
I'd be pretty leary of doing a recursive chattr on a home directory, or
any directory, for that matter.

> This is a bandaid solutions you need to find the script that runs
> a schedule job that does this.
> 
> su - # not su

Not necessary. The - causes su to set the login environment. Doesn't
affect your ability to use commands.

> crontab -l # this will tell you what jobs are scheduled as to run
> automaticly as part of root cron.

Also not.

# crontab -l
no crontab for root

# ls /etc/cron*
/etc/crontab

/etc/cron.d:
sysstat

/etc/cron.daily:
0anacron      logrotate        slocate.cron  tmpwatch
local_backup  makewhatis.cron  sysstat       tripwire-check

/etc/cron.hourly:

/etc/cron.monthly:
0anacron

/etc/cron.weekly:
0anacron  makewhatis.cron

All those jobs run on their schedules, but none of them show up in crontab
for root.

> > [root at localhost jl]# chattr +i /home/ru
> > chattr: Inappropriate ioctl for device while reading flags on /home/ru

Let's see your fstab entry for /home.

-- 
Got Privacy? http://makeashorterlink.com/?N33052F1

"Those who expect to reap the blessings of freedom must, like men,
 undergo the fatigue of supporting it." - Thomas Paine



More information about the clue-tech mailing list