public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] fcrontab - what am I missing?
@ 2009-09-30 15:40 Helmut Jarausch
  2009-09-30 17:31 ` [gentoo-user] " Doug Hunley
  2009-09-30 18:55 ` [gentoo-user] " Dirk Heinrichs
  0 siblings, 2 replies; 7+ messages in thread
From: Helmut Jarausch @ 2009-09-30 15:40 UTC (permalink / raw
  To: gentoo-user

Hi,

I've been using fcron for quite some time, but
now it behaves strange.
I have version 3.0.4-r2 installed.

Doing  fcrontab -e  as non-root user
I get 
Could not change egid to fcron[449]: Operation not permitted

although I'm a member of group fcron.
Furthermore /etc/fcron/fcron.allow has 'all'

Even more strangely,
do - as root -
fcrontab -e USER

it lets me create a file but on closing I get

no fcrontab for jarausch - using an empty one
17:34:40 could not open file jarausch.orig.tmp: Permission denied
17:34:40 could not remove /tmp/fcr-z9FG5g: Operation not permitted

So, I'm puzzled.

Many thanks for some help,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] fcrontab - what am I missing?
  2009-09-30 18:55 ` [gentoo-user] " Dirk Heinrichs
@ 2009-09-30 17:21   ` Helmut Jarausch
  2009-10-01  6:47     ` Florian Philipp
  0 siblings, 1 reply; 7+ messages in thread
From: Helmut Jarausch @ 2009-09-30 17:21 UTC (permalink / raw
  To: gentoo-user

On 30 Sep, Dirk Heinrichs wrote:
> Am Mittwoch 30 September 2009 17:40:43 schrieb Helmut Jarausch:
> 
>> I've been using fcron for quite some time, but
>> now it behaves strange.
>> I have version 3.0.4-r2 installed.
>> 
>> Doing  fcrontab -e  as non-root user
>> I get
>> Could not change egid to fcron[449]: Operation not permitted
>> 
>> although I'm a member of group fcron.
> 
> Maybe permissions of fcrontab are borked, should be:
> 
> # ll =fcrontab
> -rwsr-sr-x 1 fcron fcron 51K 10. Jun 19:28 /usr/bin/fcrontab*
> 
Unfortunately, the same as here.
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: fcrontab - what am I missing?
  2009-09-30 15:40 [gentoo-user] fcrontab - what am I missing? Helmut Jarausch
@ 2009-09-30 17:31 ` Doug Hunley
  2009-10-01  9:55   ` Helmut Jarausch
  2009-09-30 18:55 ` [gentoo-user] " Dirk Heinrichs
  1 sibling, 1 reply; 7+ messages in thread
From: Doug Hunley @ 2009-09-30 17:31 UTC (permalink / raw
  To: gentoo-user

On Wed, Sep 30, 2009 at 11:40, Helmut Jarausch
<jarausch@igpm.rwth-aachen.de> wrote:
> Hi,
>
> I've been using fcron for quite some time, but
> now it behaves strange.
> I have version 3.0.4-r2 installed.

If you mask that version and downgrade, does the issue persist? Do you
have a nosuid mount option in effect now that you didn't before? Is
/tmp (and or /var/tmp or even /var/spool/fcron (iirc)) truly mode 1777
?
-- 
Douglas J Hunley, RHCT
doug.hunley@gmail.com : http://douglasjhunley.com : Twitter: @hunleyd

Obsessively opposed to the typical.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] fcrontab - what am I missing?
  2009-09-30 15:40 [gentoo-user] fcrontab - what am I missing? Helmut Jarausch
  2009-09-30 17:31 ` [gentoo-user] " Doug Hunley
@ 2009-09-30 18:55 ` Dirk Heinrichs
  2009-09-30 17:21   ` Helmut Jarausch
  1 sibling, 1 reply; 7+ messages in thread
From: Dirk Heinrichs @ 2009-09-30 18:55 UTC (permalink / raw
  To: gentoo-user

Am Mittwoch 30 September 2009 17:40:43 schrieb Helmut Jarausch:

> I've been using fcron for quite some time, but
> now it behaves strange.
> I have version 3.0.4-r2 installed.
> 
> Doing  fcrontab -e  as non-root user
> I get
> Could not change egid to fcron[449]: Operation not permitted
> 
> although I'm a member of group fcron.

Maybe permissions of fcrontab are borked, should be:

# ll =fcrontab
-rwsr-sr-x 1 fcron fcron 51K 10. Jun 19:28 /usr/bin/fcrontab*

HTH...

	Dirk



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] fcrontab - what am I missing?
  2009-09-30 17:21   ` Helmut Jarausch
@ 2009-10-01  6:47     ` Florian Philipp
  0 siblings, 0 replies; 7+ messages in thread
From: Florian Philipp @ 2009-10-01  6:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

Helmut Jarausch schrieb:
> On 30 Sep, Dirk Heinrichs wrote:
>> Am Mittwoch 30 September 2009 17:40:43 schrieb Helmut Jarausch:
>>
>>> I've been using fcron for quite some time, but
>>> now it behaves strange.
>>> I have version 3.0.4-r2 installed.
>>>
>>> Doing  fcrontab -e  as non-root user
>>> I get
>>> Could not change egid to fcron[449]: Operation not permitted
>>>
>>> although I'm a member of group fcron.
>> Maybe permissions of fcrontab are borked, should be:
>>
>> # ll =fcrontab
>> -rwsr-sr-x 1 fcron fcron 51K 10. Jun 19:28 /usr/bin/fcrontab*
>>
> Unfortunately, the same as here.
> Helmut.
> 

And the filesystem is not mounted nosuid?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: fcrontab - what am I missing?
  2009-09-30 17:31 ` [gentoo-user] " Doug Hunley
@ 2009-10-01  9:55   ` Helmut Jarausch
  2009-10-01 14:10     ` Doug Hunley
  0 siblings, 1 reply; 7+ messages in thread
From: Helmut Jarausch @ 2009-10-01  9:55 UTC (permalink / raw
  To: gentoo-user

On 30 Sep, Doug Hunley wrote:
> On Wed, Sep 30, 2009 at 11:40, Helmut Jarausch
> <jarausch@igpm.rwth-aachen.de> wrote:
>> Hi,
>>
>> I've been using fcron for quite some time, but
>> now it behaves strange.
>> I have version 3.0.4-r2 installed.
> 
> If you mask that version and downgrade, does the issue persist? Do you
> have a nosuid mount option in effect now that you didn't before? Is
> /tmp (and or /var/tmp or even /var/spool/fcron (iirc)) truly mode 1777
> ?

Strangely not,
ls -ld  /var/spool/fcron
gives
drwsrws---  2 stunnel fcron  4096 Oct  1 11:31 /var/spool/fcron

So, who is 'stunnel'. The corr. entry in /etc/passwd is
stunnel:x:104:1007:added by portage for stunnel:/dev/null:/sbin/nologin

So what is, what should be going on?

Thanks for your help,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: fcrontab - what am I missing?
  2009-10-01  9:55   ` Helmut Jarausch
@ 2009-10-01 14:10     ` Doug Hunley
  0 siblings, 0 replies; 7+ messages in thread
From: Doug Hunley @ 2009-10-01 14:10 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 1, 2009 at 05:55, Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
> Strangely not,
> ls -ld  /var/spool/fcron
> gives
> drwsrws---  2 stunnel fcron  4096 Oct  1 11:31 /var/spool/fcron
>
> So, who is 'stunnel'. The corr. entry in /etc/passwd is
> stunnel:x:104:1007:added by portage for stunnel:/dev/null:/sbin/nologin
>
> So what is, what should be going on?

From the ebuild:
docrondir /var/spool/fcron -m6770 -o fcron -g fcron

so do:
chown fcron.fcron /var/spool/fcron
chmod 6770 /var/spool/fcron
chown fcron.fcron /var/spool/fcron/*

to set it right
-- 
Douglas J Hunley, RHCT
doug.hunley@gmail.com : http://douglasjhunley.com : Twitter: @hunleyd

Obsessively opposed to the typical.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-01 14:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 15:40 [gentoo-user] fcrontab - what am I missing? Helmut Jarausch
2009-09-30 17:31 ` [gentoo-user] " Doug Hunley
2009-10-01  9:55   ` Helmut Jarausch
2009-10-01 14:10     ` Doug Hunley
2009-09-30 18:55 ` [gentoo-user] " Dirk Heinrichs
2009-09-30 17:21   ` Helmut Jarausch
2009-10-01  6:47     ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox