Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[fcrontab -e] permissions (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 200
Location: Lille

PostPosted: Tue Oct 07, 2008 4:44 am    Post subject: [fcrontab -e] permissions (résolu) Reply with quote

Salut à tous,

Je finalise l'installation d'un server (pas de clavier, pas de server X, pas d'écran).

Connexion au server via ssh.

J'utilse fcron et je me base sur la config de mon laptop.

je mets le user dans le groupe cron

Code:
cron:x:16:cron,fcron,server_shuttle


Ensuite je créé mon fichier .cron

Code:
$ vi testcron.cron


Code:
$ fcrontab testcron.cron


Vérification :

Code:
$ fcrontab -l
06:12:24 listing server_shuttle's fcrontab
#Min.  Heures Jours  Mois    JourSemaine


J'édite ensuite le fichier:

Code:
fcrontab -e
06:12:20 fcrontab : editing server_shuttle's fcrontab
/tmp/fcr-f4tUYH: usr/bin/vim: Permission non accordée
Fcrontab is unchanged : no need to install it.


Les droits sur /var/spool/fcron sont OK :wink:
J'ai mon user dans
Code:
/etc/fcron/fcron.allow
, ainsi que all dans
Code:
/etc/fcron/fcron.deny


Mon /etc/fcronfcron.conf

Code:

 # fcron.conf - Configuration file for fcron(8) and fcrontab(1).
#       See fcron.conf(5) for syntax and explanations.
#
# WARNING : this file must be owned by root:fcron and 640.
#

# The spool directory where fcron stores its files
fcrontabs       =       /var/spool/fcron

# The locations of the pid file and the fifo file
pidfile         =       /var/run/fcron.pid
fifofile        =       /var/run/fcron.fifo

# allow/deny files to determine which users are allowed to use fcrontab
fcronallow      =       /etc/fcron/fcron.allow
fcrondeny       =       /etc/fcron/fcron.deny

# Location of the programs used by fcron
shell           =       /bin/sh
sendmail        =       /usr/sbin/sendmail

# Location of the default editor for "fcrontab -e"
editor          =       /usr/bin/vi


Ma config gentoo:

Code:

$ emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Celeron(R) CPU E1200 @ 1.60GHz
Timestamp of tree: Sat, 04 Oct 2008 07:36:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/.tmp-portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib accessibility acl alsa arts atm audiofile avi berkdb bzip2 cdparanoia cli cracklib crypt cups directfb dri dvd encode fbcon fbdev flac fortran gdbm gphoto2 gpm iconv imap ipv6 isdnlog jpeg kde live man midi mmx mudflap ncurses nls nptl nptlonly oggvorbis opengl openmp pam pcre pda perl pppd python qt quicktime readline reflection session speex spl sse ssl stream svga sysfs tcpd tetex unicode usb x86 xine xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Je suis un peu sec sur le sujet :roll:
_________________
Gentoo only
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 200
Location: Lille

PostPosted: Sat Oct 11, 2008 4:43 pm    Post subject: Reply with quote

un
Code:
export EDITOR=vim


solutionne le problème. :wink:

Pourtant de mémoire je n'avais pas effectué cette manipulation lors de la config de mon laptop :roll:
_________________
Gentoo only
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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