hello
bon suite a kelkes discussion la meilleure solution semble etre:
faire une copie parfaite de /etc kelke part ailleurs,
pis regulierement recopier tous les files en ecrasant ceux de "ailleurs" pis faire des cvs commit, par exemple:
mkdir /var/etc_cvs
cp -a /etc/* /var/etc_cvs
cd /var/etc_cvs
cvs import etc *
voila normalement la tout devrait etre importé dans le cvs ...
pis apres, en crontab, faire eventuellement un cp -a /etc/* /var/etc_cvs && cd /var/etc_cvs && ls | grep -v CVS | xargs cvs add && cvs commit
lol
bon bin ca devrait le faire, mais la je suis kéblo car mon cvs ne me laisse pas me loguer donc je peux pas faire de impoirt ni rien du tout; je suis sous gentoo ... si kelkun pouvait me filer un coup de main ?
j'ai emergé xinetd,
j'ai ajouté un user cvs et un groupe cvs,
j'a ce fichier de conf la:
Code :
- kpoman root # cat /etc/xinetd.d/cvspserver
- service cvspserver
- {
- disable = no
- socket_type = stream
- wait = no
- user = cvs
- group = cvs
- log_type = FILE /var/log/cvspserver
- protocol = tcp
- #env = '$HOME=/home/cvsroot'
- env = '$HOME=/var/cvs'
- log_on_failure += USERID
- port = 2401
- server = /usr/bin/cvs
- server_args = -f --allow-root=/var/cvs pserver
- }
- kpoman root #
|
puis le repertoire:
Code :
- kpoman root # ll /var/
- total 76
- drwxr-xr-x 17 root root 4096 Sep 14 00:35 .
- drwxr-xr-x 25 root root 4096 Sep 1 09:14 ..
- -rw-r--r-- 1 root root 0 Aug 12 11:15 .keep
- drwxr-xr-x 4 named named 4096 Aug 3 20:47 bind
- drwxr-xr-x 10 root root 4096 Jun 25 22:38 cache
- drwxr-xr-x 3 cvs root 4096 Sep 14 00:14 cvs
- drwxr-xr-x 3 root root 4096 Sep 8 2002 db
- drwxr-xr-x 2 root root 4096 Aug 14 11:31 empty
- drwxr-xr-x 92 root root 8192 Sep 14 00:36 etcmirror
- drwxr-xr-x 24 root root 4096 Sep 12 03:06 lib
- drwxrwxr-x 4 root uucp 4096 Sep 13 13:45 lock
- drwxr-xr-x 12 root root 8192 Sep 14 01:34 log
- lrwxrwxrwx 1 root root 15 Sep 2 23:25 mail -> /var/spool/mail
- drwxr-xr-x 13 root root 4096 Sep 14 01:37 run
- drwxr-xr-x 8 root root 4096 Sep 2 22:55 spool
- drwxr-xr-x 2 root root 4096 Aug 12 11:15 state
- drwxrwxrwt 3 root root 4096 Sep 13 01:26 tmp
- drwxr-xr-x 2 root bin 4096 Mar 7 2003 usermin
- drwx------ 2 root bin 4096 Sep 3 00:54 webmin
- kpoman root #
|
je lance mon daemon xinetd, je vois ca dans les logs:
Code :
- kpoman root # tail -n 30 /var/log/daemon.log
- Sep 14 01:34:51 kpoman xinetd[18984]: removing time
- Sep 14 01:34:51 kpoman xinetd[18984]: removing time
- Sep 14 01:34:51 kpoman xinetd[18984]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
- Sep 14 01:34:51 kpoman xinetd[18984]: Started working: 1 available service
- Sep 14 01:37:36 kpoman xinetd[18984]: Exiting...
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/chargen-tcp [file=/etc/xinetd.conf] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/cups-lpd [file=/etc/xinetd.d/cups-lpd] [line=14]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/cvspserver [file=/etc/xinetd.d/cvspserver] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/daytime-tcp [file=/etc/xinetd.d/daytime-tcp] [line=16]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/echo-tcp [file=/etc/xinetd.d/echo-tcp] [line=14]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/pure-ftpd [file=/etc/xinetd.d/pure-ftpd] [line=14]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/swat [file=/etc/xinetd.d/swat] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/time-tcp [file=/etc/xinetd.d/time-tcp] [line=17]
- Sep 14 01:37:38 kpoman xinetd[19058]: Reading included configuration file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=13]
- Sep 14 01:37:38 kpoman xinetd[19058]: removing chargen
- Sep 14 01:37:38 kpoman xinetd[19058]: removing chargen
- Sep 14 01:37:38 kpoman xinetd[19058]: removing printer
- Sep 14 01:37:38 kpoman xinetd[19058]: removing daytime
- Sep 14 01:37:38 kpoman xinetd[19058]: removing daytime
- Sep 14 01:37:38 kpoman xinetd[19058]: removing echo
- Sep 14 01:37:38 kpoman xinetd[19058]: removing echo
- Sep 14 01:37:38 kpoman xinetd[19058]: removing ftp
- Sep 14 01:37:38 kpoman xinetd[19058]: removing swat
- Sep 14 01:37:38 kpoman xinetd[19058]: removing time
- Sep 14 01:37:38 kpoman xinetd[19058]: removing time
- Sep 14 01:37:38 kpoman xinetd[19058]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
- Sep 14 01:37:38 kpoman xinetd[19058]: Started working: 1 available service
- kpoman root #
|
ou bien
Code :
- kpoman root # netstat -an | grep 2401
- tcp 0 0 0.0.0.0:2401 0.0.0.0:* LISTEN
- kpoman root #
|
alors je fais ca:
Code :
- kpoman xinetd.d # cvs -d :pserver:root@localhost:2401/var/cvs login
- Logging in to :pserver:root@localhost:2401/var/cvs
- CVS password:
- cvs [login aborted]: reading from server: Connection reset by peer
- kpoman xinetd.d #
|
donc ca me laisse pas me connecter mais pourtant ya bien kek chose qui se passe:
Code :
- kpoman xinetd.d # cat /var/log/cvspserver
- 03/9/14@01:35:16: FAIL: cvspserver address from=192.168.0.2
- 03/9/14@01:35:16: START: cvspserver pid=18993 from=192.168.0.2
- 03/9/14@01:38:38: FAIL: cvspserver address from=127.0.0.1
- 03/9/14@01:38:38: START: cvspserver pid=19067 from=127.0.0.1
- 03/9/14@01:38:57: START: cvspserver pid=19069 from=127.0.0.1
- 03/9/14@01:38:57: FAIL: cvspserver address from=127.0.0.1
- 03/9/14@01:39:20: START: cvspserver pid=19071 from=127.0.0.1
- 03/9/14@01:39:20: FAIL: cvspserver address from=127.0.0.1
- 03/9/14@01:40:07: START: cvspserver pid=19075 from=127.0.0.1
- 03/9/14@01:40:07: FAIL: cvspserver address from=127.0.0.1
- 03/9/14@01:44:39: START: cvspserver pid=19084 from=127.0.0.1
- 03/9/14@01:44:39: FAIL: cvspserver address from=127.0.0.1
- 03/9/14@02:13:09: START: cvspserver pid=19119 from=127.0.0.1
- 03/9/14@02:13:09: FAIL: cvspserver address from=127.0.0.1
- kpoman xinetd.d #
|
voila je pense que je dois etre a deux doigts que ca marche mais je galere a fond j'arrive pa s atrouver ce qui va pas, j'espere que vous pourrez me filer un coup de main ! histoire qu'apres je puisse faire partager mes experiences avec la communauté a mon tour merci bcp:jap: