Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vixie-cron
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
osku
n00b
n00b


Joined: 29 Nov 2004
Posts: 1
Location: Tampere

PostPosted: Mon Nov 29, 2004 6:51 pm    Post subject: vixie-cron Reply with quote

Sattuipa erikoinen tapaus vixie-cronin kanssa. Emergellä läiskin ajastimen myllyyn ja asennus sujui virheittä. Mutta kun koitin ajaa peruskäyttäjältä crontabia niin kones ilmoitti "-bash: /usr/bin/crontab: Permission denied".

Sen jälkeen naputtelin "chmod o+x /usr/bin/crontab" koska "ls -la /usr/bin/ |grep crontab" näytti "-rwxr-x--- 1 root cron 21408 Oct 31 23:08 crontab"

Roottina kun ajaa crontabia niin oikeuksista ei tietenkään valita mitään, mutta tämän näköistä jälkeä tuo tuppaa tulostamaan "no crontab for root - using an empty one"

-osku :roll:
Back to top
View user's profile Send private message
Mikessu
Bodhisattva
Bodhisattva


Joined: 11 Oct 2003
Posts: 220
Location: Oulu, Finland

PostPosted: Mon Nov 29, 2004 8:08 pm    Post subject: Reply with quote

Tuleeko tuo "no crontab for root - using an empty one" kun kirjoitat crontab -e? Tuossahan se vain toteaa, että mitään ei ole laitettu crontabbiin. Jos näet tuon virheen kun kirjoitat crontab -e (eikä editori käynnisty), niin sinulla on jotain häikkää editorin kanssa. Kokeile silloin EDITOR="/usr/bin/nano" crontab -e

Oikeuksien muuttamisen sijaan olisit voinut laittaa käyttäjän cron-ryhmään.
Back to top
View user's profile Send private message
Zarhan
l33t
l33t


Joined: 27 Feb 2004
Posts: 994

PostPosted: Mon Nov 29, 2004 9:45 pm    Post subject: Re: vixie-cron Reply with quote

osku wrote:
"ls -la /usr/bin/ |grep crontab" näytti "-rwxr-x--- 1 root cron 21408 Oct 31 23:08 crontab"


Tästä voisi ottaa vihjeen että Gentoon tapa on sallia vain cron-ryhmään päästetyille käyttäjille cronin käytön. Sama koskee montaa muutakin osa-aluetta (ryhmät wheel, video, audio, games...). Käyhän se tietysti noinkin..mutta kätevämpää melkein vaan lisätä tunnukset cron-ryhmään.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum