Re: logrotate on FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kristina Clair wrote:
On Apr 12, 2005 12:13 PM, Paul Howarth <paul@xxxxxxxxxxxx> wrote:

Kristina Clair wrote:

Just some more information:  I haven't modified any of the files in
/etc/logrotate.d or the logrotate.conf file.  Also, I ran logrotate -d
/etc/logrotate.conf -- no errors reported.
The system is completely up-to-date.

Do you have /tmp mounted with the noexec option?

If so, you may be falling over:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149270

The logrotate package in rawhide fixes that.



That's a good question: running "mount" just shows: /dev/sda3 on /tmp type ext3 (rw)

but /etc/fstab has:
/dev/sda3              /tmp                    ext3    defaults,noexec,nosuid

So does that mean that noexec is enabled even though mount isn't showing it?

I don't know. You could always test it by creating a script in /tmp and seeing if it runs:


$ echo echo Hello > /tmp/testscript
$ chmod +x /tmp/testscript
$ /tmp/testscript

If noexec is set, you'll get:
-bash: /tmp/testscript: Permission denied

If not, you'll get:
Hello

I'd change the fstab entry to this anyway:
/dev/sda3 /tmp ext3 noexec,nosuid 1 2

The "defaults" keyword is redundant if you're specifying other options.

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux