Page 1 sur 2

aide sur une commande linux

Posté : 15 mars 2006, 16:44
par roumayne
Bonjour,
j'ai fait une configuration et j'ai rélancé les services en tapant cette commande
/etc/services restart
mais j'ai l'erreur suivante
-bash: /etc/init.d/services: No such file or directory
quelqu'un peut-il m'aider?
merci

Posté : 15 mars 2006, 16:46
par mere-teresa
Tu es root sur ta machine ?
Est-ce que les répertoires et les fichiers cités existent ?

aide sur une commande linux

Posté : 15 mars 2006, 16:49
par roumayne
oui je suis en tant que root.
j'ai bel et bien le repertoire /etc et le fichier services qui existent.

Posté : 15 mars 2006, 17:58
par Sysadmin
Quelle distribution utilises-tu?

aide sur une commande linux

Posté : 15 mars 2006, 18:13
par roumayne
j'utilise la Mandrake 10.1

Posté : 15 mars 2006, 18:59
par mere-teresa
Qu'y a-t-il dans /etc/init.d/services/ ?

aide sur une commande linux

Posté : 16 mars 2006, 11:06
par roumayne
voici un exemple du contenu du fichier /etc/services
# /etc/services:
# $Id: services,v 1.17 2003/10/12 19:48:48 siegel Exp $
#
# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, most entries here have two entries
# even if the protocol doesn't support UDP operations.
# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports
# are included, only the more common ones.
#
# The latest IANA port assignments can be gotten from
# http://www.iana.org/assignments/port-numbers
# The Well Known Ports are those from 0 through 1023.
# The Registered Ports are those from 1024 through 49151
# The Dynamic and/or Private Ports are those from 49152 through 65535
#
# Each line describes one service, and is of the form:
#

#
# service-name port/protocol [aliases ...] [# comment]

tcpmux 1/tcp # TCP port service multiplexer
tcpmux 1/udp # TCP port service multiplexer
rje 5/tcp # Remote Job Entry
rje 5/udp # Remote Job Entry
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
systat 11/udp users
daytime 13/tcp
daytime 13/udp
qotd 17/tcp quote
qotd 17/udp quote
msp 18/tcp # message send protocol
msp 18/udp # message send protocol
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp-data 20/udp

j'ai encore rencontré ce problème en tapant ifconfig voila le message que j'ai
bash: ifconfig: command not found

comment faire pour remedier à ce genre de problème.

Posté : 16 mars 2006, 11:12
par zeus
si ce que tu voualis faire, c'est récupérer la configuration IP de ton PC, c'est ipconfig et non pas ifconfig

Sinon, le message d'erreur est clair : il ne connait pas la commande ifconfig

Posté : 16 mars 2006, 11:17
par rami
si ce que tu voualis faire, c'est récupérer la configuration IP de ton PC, c'est ipconfig et non pas ifconfig

Sinon, le message d'erreur est clair : il ne connait pas la commande ifconfig
Bah si c'est ifconfig :!: ipconfig c'est sous Windows ;)

Est tu certain d'être loggué en tant que root qd tu veux faire un ifconfig?
(commande su)

Posté : 16 mars 2006, 11:22
par zeus
Bah si c'est ifconfig :!: ipconfig c'est sous Windows ;)
:shock: ca alors, je suis presque certains de m'en être servi sous linux :-k

faut que j'arrete la vodka le we, moi :oops:

aide sur une commande linux.

Posté : 16 mars 2006, 12:26
par roumayne
oui je crois que je n'étais pas en root.
merci.
mais pour le /etc/service restart j'était bien en root.
et j'ai cette réponse
-bash: /etc/services: Permission denied

Re: aide sur une commande linux.

Posté : 16 mars 2006, 12:48
par mario
oui je crois que je n'étais pas en root.
merci.
mais pour le /etc/service restart j'était bien en root.
et j'ai cette réponse
-bash: /etc/services: Permission denied
fait un chmod 777

Posté : 16 mars 2006, 12:55
par mere-teresa
Qu'y a-t-il dans /etc/init.d/services/ ?
Mandrake met tout dans des dossiers gnagna.d/

aide sur une commande linux

Posté : 16 mars 2006, 13:01
par roumayne
voici un exemple du contenu du fichier /etc/services

# /etc/services:
# $Id: services,v 1.17 2003/10/12 19:48:48 siegel Exp $
#
# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, most entries here have two entries
# even if the protocol doesn't support UDP operations.
# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports
# are included, only the more common ones.
#
# The latest IANA port assignments can be gotten from
# http://www.iana.org/assignments/port-numbers
# The Well Known Ports are those from 0 through 1023.
# The Registered Ports are those from 1024 through 49151
# The Dynamic and/or Private Ports are those from 49152 through 65535
#
# Each line describes one service, and is of the form:
#

#
# service-name port/protocol [aliases ...] [# comment]

tcpmux 1/tcp # TCP port service multiplexer
tcpmux 1/udp # TCP port service multiplexer
rje 5/tcp # Remote Job Entry
rje 5/udp # Remote Job Entry
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
systat 11/udp users
daytime 13/tcp
daytime 13/udp
qotd 17/tcp quote
qotd 17/udp quote
msp 18/tcp # message send protocol
msp 18/udp # message send protocol
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp-data 20/udp

Posté : 16 mars 2006, 13:37
par mere-teresa