Commande su impossible

Résolu/Fermé
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007 - 8 août 2005 à 11:42
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007 - 16 août 2005 à 11:21
Bonjour a tous,
J'ai un serveur sous redhat 8 et depuis quelque temps je n'arrive plus a a me logger sous un autre utilisateur que le root. Pourtan root sur la machine, des que je fais su user il me met:

su: /bin/bash: Permission non accordee.

Je voudrais savoir qu'elle solution apliquer pour permetre a d'autre utilisateur de se logger.

Merci d'avance et bonne continuation.
Ps : s'il a deja eu d'autre article de ce genre je ne les pa trouver je serai tres reconnaissant de m'indiquer ou les trouver.Merci

34 réponses

[Dal] Messages postés 6174 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 2 février 2024 1 083
9 août 2005 à 12:28
Bonjour gmania971,

En mettan /bin a 755 kan je fai su user il met :
I have no name!@toorre:/root$


Tu as donc un message d'erreur différent :) ... /bin était à autre chose que 755 ?

Ton message semble indiquer que tu t'es bien logué sous le user, mais que le user n'arrive pas à déterminer son (propre) nom, alors qu'il devrait être sous /etc/passwd (sauf si tu utilises une gestion des users et authentification avancée, style avec une base de données ldap, etc., mais tu ne l'as pas indiqué et ton log indique bien qu'il s'agit d'une utilisation de pam).

/etc/passwd on a déjà vérifié

mais /etc est-il est bien à 755 aussi ?

Postes nous

cd /
ls -l


Les répertoire suivants appartiennent à root:root et doivent être à 755 (drwxr-xr-x) :

/bin
/boot
/dev
/etc
/home
/initrd
/lib
/mnt
/opt
/sbin
/usr
/var

Les suivants appartiennent à root:root et ont les permissions suivantes en principe :

drwx------ lost+found
dr-xr-xr-x proc
drwxr-x--- root
drwxrwxrwt tmp


Dal
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 14:15
Bonjour Dal,

voila ce que j'ai :


drwxrwx--- 2 root root 4096 jun 8 2004 bin
drwxrwx--- 4 root root 1024 jui 12 11:37 boot
drwxrwx--- 20 root root 118784 jui 12 11:37 dev
drwxrwx--- 61 root root 8192 aoû 8 15:14 etc
-rwxrwx--- 1 rpm rpm 10514432 jan 4 2005 Filemd5s
drwxrwxrwx 132 root casimir 4096 aoû 8 15:13 home
drwxr-xr-x 2 root root 4096 jan 25 2003 initrd
drwxr-xr-x 9 root root 4096 jui 12 12:02 lib
drwxr-xr-x 3 root root 4096 mar 29 11:49 lock
drwxr-xr-x 6 root root 4096 mar 29 11:52 log
drwx------ 2 root root 16384 jan 14 2004 lost+found
drwxr-xr-x 2 root root 4096 jan 28 2003 misc
drwxr-xr-x 6 root root 4096 jui 19 09:33 mnt
drwxr-xr-x 2 root root 4096 jan 25 2003 opt
-rw-r--r-- 1 rpm rpm 40513536 jan 4 2005 Packages
dr-xr-xr-x 90 root root 0 jui 12 13:25 proc
drwxr-x--- 27 root root 4096 aoû 8 15:25 root
drwxr-xr-x 2 rpm rpm 4096 mar 29 10:58 rpm
drwxr-xr-x 4 root root 4096 aoû 16 2004 sauv
drwxr-xr-x 2 root root 8192 jun 8 2004 sbin
-rwxrwxrwx 1 root root 173 jui 15 09:20 su
drwxrwxrwt 3 root root 4096 aoû 9 04:02 tmp
drwxr-xr-x 15 root root 4096 mar 24 16:05 usr
drwxr-xr-x 20 root root 4096 mar 29 11:59 var

Merci encore de votre aide :)
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 14:15
Bonjour Dal,

voila ce que j'ai :


drwxrwx--- 2 root root 4096 jun 8 2004 bin
drwxrwx--- 4 root root 1024 jui 12 11:37 boot
drwxrwx--- 20 root root 118784 jui 12 11:37 dev
drwxrwx--- 61 root root 8192 aoû 8 15:14 etc
-rwxrwx--- 1 rpm rpm 10514432 jan 4 2005 Filemd5s
drwxrwxrwx 132 root casimir 4096 aoû 8 15:13 home
drwxr-xr-x 2 root root 4096 jan 25 2003 initrd
drwxr-xr-x 9 root root 4096 jui 12 12:02 lib
drwxr-xr-x 3 root root 4096 mar 29 11:49 lock
drwxr-xr-x 6 root root 4096 mar 29 11:52 log
drwx------ 2 root root 16384 jan 14 2004 lost+found
drwxr-xr-x 2 root root 4096 jan 28 2003 misc
drwxr-xr-x 6 root root 4096 jui 19 09:33 mnt
drwxr-xr-x 2 root root 4096 jan 25 2003 opt
-rw-r--r-- 1 rpm rpm 40513536 jan 4 2005 Packages
dr-xr-xr-x 90 root root 0 jui 12 13:25 proc
drwxr-x--- 27 root root 4096 aoû 8 15:25 root
drwxr-xr-x 2 rpm rpm 4096 mar 29 10:58 rpm
drwxr-xr-x 4 root root 4096 aoû 16 2004 sauv
drwxr-xr-x 2 root root 8192 jun 8 2004 sbin
-rwxrwxrwx 1 root root 173 jui 15 09:20 su
drwxrwxrwt 3 root root 4096 aoû 9 04:02 tmp
drwxr-xr-x 15 root root 4096 mar 24 16:05 usr
drwxr-xr-x 20 root root 4096 mar 29 11:59 var

Merci encore de votre aide :)
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 14:18
Pour le dossier bin jlai remit comme il etait mai jle remetrai a 755, pas de soucis.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
C'est normal que tu ne puisses pas faire de "su" avec ta config.
il faut que /bin, /etc, /dev soient en drwxr-xr-x (755).

et tu as aussi un truc bizzare :
le fichier "su" dans ta liste ne devrait pas exister.
renommes le au cas où, puis supprimes le quand ça marche.
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 14:35
jai mis les meme droit que tu ma montrer Dal, alor je te met ce qu'il m'affiche:

root@toorre:/$su tester
bash: /etc/bashrc: Permission non accordée
tester@toorre:/$

tester@toorre:/$su root
su: Mot de passe incorrect.

Quand je change le fichier bashrc en 755

root@toorre:/$su tester
id: ne peut trouver le nom de l'identificateur de groupe 1073
tester@toorre:/$

Voila
0
tu peux aussi mettre ces 3 répertoires en 555 pour plus de sécurité.
Mais le "x" et le "r" sont indispensables pour tout le monde.
0
[Dal] Messages postés 6174 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 2 février 2024 1 083
9 août 2005 à 15:50
Re :)

On progresse on dirait.

root@toorre:/$su tester
bash: /etc/bashrc: Permission non accordée
tester@toorre:/$


Tu t'es logué en tant que tester et le user a été capable de lire passwd and /etc.

En revanche /etc/bashrc n'a pas les permissions de lecture pour les "autres".

Tu dois mettre des permissions "-rw-r--r--" dessus (644).

Ces permissions doivent être mises pour tous les fichiers contenus dans /etc qui doivent être lisibles par les utilisateurs.

Les fichiers sous /etc sont nombreux, et tous ne doivent pas être lisibles de tous les utilisateurs. Si la modification accidentelle de tes permissions a affecté l'ensemble du contenu de ces 3 répertoires et récursivement, tu risques de voir surgir de nombreux autres problèmes.

tester@toorre:/$su root
su: Mot de passe incorrect.


çà, je ne comprend pas... mais on verra plus tard.

root@toorre:/$su tester
id: ne peut trouver le nom de l'identificateur de groupe 1073
tester@toorre:/$


Il y a des chances que le fichier /etc/group ne soit pas lisible par les users. Tu dois lui affecter les permissions "-rw-r--r--" (644).

Il est possible qu'il y ait d'autres choses qui nécessitent dans /etc (ou ailleurs) un ajustement. Comment ce changement de permissions est-il arrivé ? En connais-tu l'étendue exacte ?

Si tu veux, tu pourrais poster un listing de ton répertoire /etc pour que l'on puisse te conseiller.

Voilà une liste non exhaustive de fichiers importants devant figurer dans /etc avec la permission "-rw-r--r--" (644) :

anacrontab, bashrc, crontab, filesystems, fstab, group, host.conf, hosts, hosts.allow, hosts.deny, initlog.conf, inittab, inputrc, issue, issue.net, ld.so.cache, ld.so.conf, localtime, login.defs, mailcap, mail.rc, man.config, mime*, modprobe.conf, modules.conf, motd, mtab, named.conf, passwd, printcap, profile, protocols, resolv.conf, rpc, screenrc, sensors.conf, services, shells, sysctl.conf, syslog.conf, termcap, updatedb.conf, updfstab.conf, vimrc, xinetd.conf,...

Par contre voilà quelque exceptions notables, sur la FC2 :

-rw-r----- 1 root smmsp 12288 Jun 10 10:54 aliases.db
-rw------- 1 root root 688 Mar 5 2004 amd.conf
-rw-r----- 1 root root 105 Mar 5 2004 amd.net
-rw------- 1 root root 1 May 5 2004 at.deny
-rwxr-xr-x 1 root root 1057 Apr 14 2004 auto.net
-rw------- 1 root root 6 Nov 22 2004 group.lock
-r-------- 1 root root 585 Nov 22 2004 gshadow
-rw------- 1 root root 6 Nov 22 2004 gshadow.lock
-rw------- 1 root root 60 May 27 2004 ioctl.save
-rw------- 1 root root 222 May 27 2004 lilo.conf.anaconda
-rw------- 1 root root 6 Nov 22 2004 passwd.lock
-rw------- 1 root root 0 Jun 17 2003 .pwd.lock
-rw-r----- 1 root named 1101 Mar 26 2004 rndc.conf
-rw-r----- 1 root named 132 Jun 17 2003 rndc.key
-rw------- 1 root root 122 Feb 17 2003 securetty
-r-------- 1 root root 1360 Nov 22 2004 shadow
-rw------- 1 root root 6 Nov 22 2004 shadow.lock
-r--r----- 1 root root 580 Apr 23 2004 sudoers

Les permissions sont des éléments de sécurité cruciaux sus Linux. Il ne faut pas les changer à la légère. Comme tu le vois, le moindre changement affecte aussi potentiellement le bon fonctionnement du système. Si les changements sont massif sur ton système, le mieux serait que tu disposes d'un système RH8 comparable pour t'assurer que tout est comme c'est supposé être.


Dal
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 16:04
Voila le listing vive le copier coller
Je sais comment c'est arriver mais c'est depuis que j'ai des probleme pour la connection ssh que sa me fait sa que j'ai reussi tant bien que mal a remettre
Merci de vos conseils sa ma beaucoup aider Dal et les autres.

-rwxrwx--- 1 root root 15228 jan 24 2003 a2ps.cfg
-rwxrwx--- 1 root root 2562 jan 24 2003 a2ps-site.cfg
-rwxrwx--- 1 root root 46 jui 11 16:40 adjtime
drwxrwx--- 4 root root 4096 jan 14 2004 alchemist
-rwxrwx--- 1 root root 1343 sep 17 2003 aliases
-rwxrwx--- 1 smmsp smmsp 12288 avr 14 15:48 aliases.db
drwxrwx--- 2 root root 4096 jun 8 2004 alternatives
-rwxrwx--- 1 root root 317 jan 24 2003 anacrontab
drwxrwx--- 6 root root 4096 jun 8 2004 apt
-rwxrwx--- 1 root root 1 jan 24 2003 at.deny
-rwxrwx--- 1 root root 212 jan 28 2003 auto.master
-rwxrwx--- 1 root root 575 jan 28 2003 auto.misc
-rw-r--r-- 1 root root 1538 avr 16 2004 bashrc
drwxrwx--- 2 root root 4096 jan 14 2004 bonobo-activation
-rwxrwx--- 1 root root 1090 sep 19 2003 cdrecord.conf
drwxrwx--- 3 root root 4096 jan 14 2004 CORBA
drwxrwx--- 2 root root 4096 fév 19 2003 cron.d
drwxrwx--- 2 root root 4096 mar 16 13:41 cron.daily
drwxrwx--- 2 root root 4096 fév 7 2003 cron.hourly
drwxrwx--- 2 root root 4096 jan 14 2004 cron.monthly
-rwxrwx--- 1 root root 255 fév 7 2003 crontab
drwxrwx--- 2 root root 4096 aoû 30 2004 cron.weekly
-rwxrwx--- 1 root root 561 mar 11 2002 csh.cshrc
-rwxrwx--- 1 root root 409 mar 11 2002 csh.login
drwxr-xr-x 5 lp sys 4096 jun 8 2004 cups
drwxrwx--- 2 root root 4096 jan 14 2004 default
-rwxrwx--- 1 root root 2456 oct 29 2003 DIR_COLORS
-rwxrwx--- 1 root root 2434 oct 29 2003 DIR_COLORS.xterm
-rwxrwx--- 1 root disk 0 jan 25 2003 dumpdates
-rwxrwx--- 1 root root 77 fév 11 2003 esd.conf
-rwxrwx--- 1 root root 98 jun 7 2004 exports
-rwxrwx--- 1 root root 1024 jan 31 2003 fam.conf
-rwxrwx--- 1 root root 22060 jan 25 2003 fb.modes
-rwxrwx--- 1 root root 1246 fév 25 2003 fdprm
-rwxrwx--- 1 root root 51 mar 12 2002 filesystems
drwxrwx--- 2 root root 4096 jan 14 2004 fonts
drwxrwx--- 2 root root 4096 jun 8 2004 foomatic
-rwxrwx--- 1 root root 776 jui 19 11:19 fstab
-rwxrwx--- 1 root root 38 déc 14 2004 fstab.REVOKE
drwxrwx--- 7 root root 4096 fév 14 2003 gconf
drwxrwx--- 3 root root 4096 jan 14 2004 gimp
drwxrwx--- 4 root root 4096 jan 14 2004 gnome
drwxrwx--- 3 root root 4096 jan 14 2004 gnome-vfs-2.0
-rwxrwx--- 1 root root 9167 fév 4 2003 gnome-vfs-mime-magic
-rwxrwx--- 1 root root 1756 jan 29 2003 gpm-root.conf
-rwxrwx--- 1 root root 40 mar 8 2004 gre.conf
-rw-r--r-- 1 root root 3141 aoû 9 13:41 group
-rwxrwx--- 1 root root 3157 aoû 8 15:14 group-
-rwxrwx--- 1 root root 2811 mai 10 15:53 group.bak
lrwxrwxrwx 1 root root 22 jan 14 2004 grub.conf -> ../boot/grub/grub.conf
-rw-rw---- 1 root root 1377 aoû 9 13:41 gshadow
-rwxrwx--- 1 root root 1389 aoû 8 15:14 gshadow-
drwxrwx--- 2 root root 4096 jan 14 2004 gtk
drwxrwx--- 2 root root 4096 mar 1 2004 gtk-2.0
-rwxrwx--- 1 root root 17 jui 23 2000 host.conf
-rwxrwx--- 2 root root 210 aoû 30 2004 hosts
-rwxrwx--- 1 root root 160 avr 13 2004 hosts.allow
-rwxrwx--- 1 root root 155 jan 14 2004 hosts.bak
-rwxrwx--- 1 root root 347 jan 13 2000 hosts.deny
-rwxrwx--- 1 root root 20 avr 5 2004 hosts.lpd
drwxrwx--- 4 root root 4096 jan 14 2004 hotplug
-rwxrwx--- 1 root root 8510 jan 26 2003 htdig.conf
-rwxrwx--- 1 root root 3376 jan 24 2003 im_palette.pal
-rwxrwx--- 1 root root 920 jan 24 2003 im_palette-small.pal
-rwxrwx--- 1 root root 224 jan 24 2003 im_palette-tiny.pal
-rwxrwx--- 1 root root 5464 jan 24 2003 imrc
lrwxrwxrwx 1 root root 11 jan 14 2004 init.d -> rc.d/init.d
-rwxrwx--- 1 root root 658 mar 13 2003 initlog.conf
-rwxrwx--- 1 root root 1666 jan 14 2004 inittab
-rwxrwx--- 1 root root 709 jan 1 2003 inputrc
-rwxrwx--- 1 root root 60 jui 12 11:37 ioctl.save
drwxrwx--- 2 root root 4096 jun 8 2004 iproute2
drwxrwx--- 2 root root 4096 jan 14 2004 isdn
-rwxrwx--- 1 root root 53 fév 26 2003 issue
-rwxrwx--- 1 root root 52 fév 26 2003 issue.net
-rwxrwx--- 1 root root 22338 fév 2 2003 jwhois.conf
drwxrwx--- 3 root root 4096 aoû 10 2004 kde
-rwxrwx--- 1 root root 424 sep 9 2003 kderc
-rwxrwx--- 1 root root 640 avr 1 2003 krb5.conf
-rwxrwx--- 1 root root 2281 jan 14 2004 krb.conf
-rwxrwx--- 1 root root 1296 jan 25 2003 krb.realms
-rwxrwx--- 1 root root 701 jui 1 2002 ksysguarddrc
-rwxrwx--- 1 root root 6198 jan 14 2004 ldap.conf
-rwxrwx--- 1 root root 65554 oct 15 2004 ld.so.cache
-rwxrwx--- 1 root root 73 jun 8 2004 ld.so.conf
-rwxrwx--- 1 root root 2954 déc 9 2003 lftp.conf
-rwxrwx--- 1 root root 2313 jan 14 2004 libuser.conf
-rwxrwx--- 1 root root 220 jan 14 2004 lilo.conf.anaconda
-rwxrwx--- 1 root root 1082 jan 14 2004 localtime
drwxrwx--- 4 root root 4096 jan 14 2004 log.d
-rwxrwx--- 1 root root 1180 fév 12 2003 login.defs
-rwxrwx--- 1 root root 505 jan 24 2003 logrotate.conf
drwxrwx--- 2 root root 4096 jun 8 2004 logrotate.d
-rwxrwx--- 1 root root 8486 fév 3 2003 ltrace.conf
drwxrwx--- 2 root root 4096 jun 8 2004 mail
-rwxrwx--- 1 root root 291 fév 7 2003 mailcap
-rwxrwx--- 1 root root 112 jan 25 2003 mail.rc
drwxrwx--- 2 root root 4096 jan 14 2004 makedev.d
-rwxrwx--- 1 root root 4557 fév 10 2003 man.config
-rwxrwx--- 1 root root 36823 fév 11 2003 mime-magic
-rwxrwx--- 1 root root 99960 fév 11 2003 mime-magic.dat
-rwxrwx--- 1 root root 12682 fév 7 2003 mime.types
-rwxrwx--- 1 root root 1110 jan 25 2003 minicom.users
-rwxrwx--- 1 root root 300 mar 9 17:17 modules.conf
-rwxrwx--- 1 root root 308 jan 19 2004 modules.conf~
-rwxrwx--- 1 root root 0 jan 13 2000 motd
-rw-r--r-- 1 root root 239 jui 25 09:00 mtab
-rwxrwx--- 1 root root 1913 jan 25 2003 mtools.conf
-rwxrwx--- 1 root root 92421 jan 27 2004 Muttrc
-rwxrwx--- 1 root root 1155 nov 13 2003 nscd.conf
-rwxrwx--- 1 root root 1783 jui 20 2004 nsswitch.conf
drwxrwx--- 2 ntp ntp 4096 jun 15 2004 ntp
-rwxrwx--- 1 root root 2788 jun 15 2004 ntp.conf
drwxrwx--- 2 root root 4096 jan 14 2004 oaf
drwxrwx--- 2 root root 4096 jan 14 2004 openldap
drwxrwx--- 2 root root 4096 jun 8 2004 openoffice
drwxrwx--- 2 root root 4096 jan 25 2003 opt
drwxrwx--- 2 root root 4096 aoû 10 2004 pam.d
-rwxrwx--- 1 root root 12 aoû 15 2003 pam_smb.conf
drwxrwx--- 2 root root 4096 jan 14 2004 pango
-rwxrwx--- 1 root root 595 fév 11 2003 paper.config
-rw-r--r-- 1 root root 8831 aoû 9 13:41 passwd
-rwxrwx--- 1 root root 8876 aoû 8 15:14 passwd-
-rw-r--r-- 1 root root 8876 aoû 8 15:11 passwd2.bak
-rwxrwx--- 1 root root 8352 mai 10 15:55 passwd.bak
-rw-r--r-- 1 root root 8659 jui 12 11:44 passwd.OLD
-rwxrwx--- 1 root root 7099 jun 10 2004 passwd.sov
-rwxrwx--- 1 root root 1362 jan 25 2003 pbm2ppa.conf
drwxrwx--- 3 root root 4096 jan 14 2004 pcmcia
-rwxrwx--- 1 root root 2853 jan 25 2003 pinforc
-rwxrwx--- 1 root root 6300 jan 25 2003 pnm2ppa.conf
drwxrwx--- 4 root root 4096 jui 12 08:52 ppp
-rwxrwx--- 1 root root 139 jui 17 04:02 printcap
-rwxrwx--- 1 root root 137 sep 16 2003 printcap.local
-rwxrwx--- 1 root root 0 jun 8 2004 printconf.local
-rwxrwx--- 1 root root 896 avr 7 2004 profile
drwxrwx--- 2 root root 4096 jan 4 2005 profile.d
-rwxrwx--- 1 root root 5834 jui 7 2001 protocols
-rwxrwx--- 1 root root 134 fév 10 2003 pwdb.conf
lrwxrwxrwx 1 root root 7 jan 14 2004 rc -> rc.d/rc
lrwxrwxrwx 1 root root 10 jan 14 2004 rc0.d -> rc.d/rc0.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc1.d -> rc.d/rc1.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc2.d -> rc.d/rc2.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc3.d -> rc.d/rc3.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc4.d -> rc.d/rc4.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc5.d -> rc.d/rc5.d
lrwxrwxrwx 1 root root 10 jan 14 2004 rc6.d -> rc.d/rc6.d
drwxrwx--- 10 root root 4096 mar 29 10:41 rc.d
lrwxrwxrwx 1 root root 13 jan 14 2004 rc.local -> rc.d/rc.local
-rwxrwx--- 1 root root 181 mar 9 13:29 rc.modules
lrwxrwxrwx 1 root root 15 jan 14 2004 rc.sysinit -> rc.d/rc.sysinit
-rwxrwx--- 1 root root 33 fév 26 2003 redhat-release
-rwxrwx--- 2 root root 104 jun 8 2004 resolv.conf
-rwxrwx--- 1 root root 51 jan 14 2004 resolv.conf.bak
lrwxrwxrwx 1 root root 11 jan 14 2004 rmt -> ../sbin/rmt
-rwxrwx--- 1 root root 1615 nov 13 2003 rpc
drwxrwx--- 2 root root 4096 jan 14 2004 rpm
-rwxrwx--- 1 root root 175 aoû 16 2004 rsyncd.conf
-rwxrwx--- 1 root root 16 aoû 16 2004 rsyncd.users
drwxrwx--- 2 root root 4096 jui 28 09:38 samba
drwxrwx--- 2 root root 4096 jun 8 2004 sane.d
-rwxrwx--- 1 root root 7336 fév 18 2003 screenrc
-rwxrwx--- 1 root root 103 jan 25 2003 scrollkeeper.conf
-rwxrwx--- 1 root root 122 fév 17 2003 securetty
drwxrwx--- 3 root root 4096 jan 14 2004 security
-rwxrwx--- 1 root root 43666 jan 25 2003 sensors.conf
-rwxrwx--- 1 root root 19935 jan 9 2003 services
drwxrwx--- 2 root root 4096 jan 14 2004 sgml
-rw------- 1 root root 9013 aoû 9 13:41 shadow
-rwxrwx--- 1 root root 9043 aoû 8 15:14 shadow-
-rwxrwx--- 1 root root 8363 mai 10 15:55 shadow.bak
-rw-rw---- 1 root root 8762 jui 12 10:59 shadow.OLD
-rwxrwx--- 1 root root 6373 jun 10 2004 shadow.sov
-rwxrwx--- 1 root root 80 jan 14 2004 shells
drwxrwx--- 3 root root 4096 jun 8 2004 skel
-rwxrwx--- 1 root root 22476 jan 25 2003 slrn.rc
-rwxrwx--- 1 root root 17468 jui 5 2004 smbpasswd.old
drwxrwx--- 2 root root 4096 sep 17 2003 smrsh
drwxrwx--- 2 root root 4096 jun 8 2004 snmp
drwxrwx--- 3 root root 4096 fév 25 2003 sound
drwxrwx--- 2 root root 4096 aoû 8 10:24 ssh
drwxrwx--- 2 root root 4096 jan 14 2004 stunnel
-rwxrwx--- 1 root root 710 nov 30 2004 sudoers
drwxrwx--- 7 root root 4096 jun 8 2004 sysconfig
-rwxrwx--- 1 root root 526 mar 13 2003 sysctl.conf
-rwxrwx--- 1 root root 693 fév 7 2003 syslog.conf
-rwxrwx--- 1 root root 738310 jan 25 2003 termcap
-rwxrwx--- 1 root root 149 jan 21 2004 updatedb.conf
-rwxrwx--- 1 root root 35 fév 26 2003 updfstab.conf
-rwxrwx--- 1 root root 870 fév 26 2003 updfstab.conf.default
lrwxrwxrwx 1 root root 34 jan 14 2004 vfontcap -> ../usr/share/VFlib/2.25.6/vfontcap
drwxrwx--- 3 root root 4096 jan 14 2004 vfs
drwxrwx--- 2 root root 4096 jun 18 2004 vsftpd
-rwxrwx--- 1 root root 125 fév 28 2003 vsftpd.ftpusers
-rwxrwx--- 1 root root 361 fév 28 2003 vsftpd.user_list
drwxrwx--- 2 root root 4096 jan 14 2004 w3m
-rwxrwx--- 1 root root 864 fév 25 2003 warnquota.conf
-rwxrwx--- 1 root root 4022 jan 25 2003 wgetrc
-rwxrwx--- 1 root root 0 jan 19 2004 wvdial.conf
drwxrwx--- 16 root root 4096 mar 10 14:40 X11
drwxrwx--- 3 root root 4096 mar 1 2004 xdg
-rwxrwx--- 1 root root 289 avr 16 2003 xinetd.conf
drwxrwx--- 2 root root 4096 aoû 9 2004 xinetd.d
drwxrwx--- 2 root root 4096 jan 14 2004 xml
-rwxrwx--- 1 root root 4914 jui 10 2003 xpdfrc
drwxrwx--- 2 root root 4096 jun 8 2004 yp
-rwxrwx--- 1 root root 415 jun 8 2004 yp.conf
-rwxrwx--- 1 root root 1624 jun 8 2004 ypserv.conf
-rwxrwx--- 1 root root 837 jun 21 2004 yum.conf
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 16:38
j'ai changer les droits sur les ficchiers que tu ma indiquer
je me logge sur la machine et j'ai :

login as: tester
tester@toorre's password:
-bash: /dev/null: Permission denied
tester@toorre:~$

quand je veu changer de user par exemple en root il met:

tester@toorre:~$su root
su: incorrect password
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
9 août 2005 à 16:41
C'est bon j'ai changer les droits sur /dev/null sa marche il manque plus qu'a regler ce truc

tester@toorre:~$su root
su: incorrect password

Merci encore tous le monde
0
[Dal] Messages postés 6174 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 2 février 2024 1 083
9 août 2005 à 16:57
Re,

Voilà les permissions correctes de /dev/null : "crw-rw-rw-".

Sinon... oui.. il y a des dégâts.

Si tu as déjà fait les modifications sur les fichiers identifiés dans mon post, tu devrais gagner en stabilité.

Les permissions sur les fichiers root:root "-rwxrwx---" (770) ne sont pas correctes. La plupart d'entre elles devraient être "-rw-r--r--" (644).

La permission d'exécution n'est pas utile, sauf exception sur les fichiers, car il s'agit normalement de fichiers de données qui sont seulement destinées à être lues.

Les permissions sur les répertoires sont incorrectes également, pour pouvoir être parcourus par les users, ils doivent être en "drwxr-xr-x" (755).. par exemple le répertoire ssh (qui contient des fichiers dont certains doivent être lisibles par les users). Si les contenus des répertoires ont aussi été affectés.. tu as un travail très conséquent devant toi, surtout si celà concerne les 4 répertoires /usr /dev /etc et /bin qui semblent affectés (il semble qu'il y en a 4 et non 3).

Si tu sais comment cet "accident" est arrivé, tu dois en connaître aussi l'ampleur. A toi de voir si réparer les dégâts à la main est faisable, si tu peux restaurer une sauvegarde dont tu disposerais, si tu veux continuer à utiliser un système dans un état approximatif, ou si tu procèdes à une nouvelle installation.

Une fois que tu auras récupéré un système à peu près utilisable, tu devrais sauvegarder tes données et adopter cette dernière solution dès que possible.

il manque plus qu'a regler ce truc

Heu.. je ne crois pas :)

tester@toorre:~$su root
su: incorrect password


Je sèche toujours pour celà.


Dal
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
10 août 2005 à 16:36
Merci de tous ces conseil,

J'ai changer les droits c'est long mais je vous confirmerais demain l'etat des evenements.

Merci encore. :)
0
gmania971 Messages postés 42 Date d'inscription lundi 8 août 2005 Statut Membre Dernière intervention 1 janvier 2007
16 août 2005 à 11:21
Salut a tous je tien encore a vous remercier des vos conseils qui m'ont ete bien beneficique, et m'ont aider a resoudre mes problemes.
Bonne continuation a tous le monde et a bientot.
0