Aller au contenu

[Résolu] permissions du /var


Messages recommandés

Hello !

J'ai un tant soit peu fait une fausse manip...

J'ai toujours pas compris comme j'y étais arrivé mais je l'ai fait...

Tout d'abord, je me suis rendu compte ce matin que lorsque je faisais un sudo j'obtenais : "sudo: /var/run/sudo owned by uid 115, should be uid 0"

Donc je file dans mon var et je me rends compte que mon run (et presque la totalité de son contenu) sont détenus par openldap.

tyrann@Sebastien:/var/run$ ll
total 64K
drwxr-xr-x 16 root	 root	 4,0K 2009-04-18 09:07 ..
-rw-r--r--  1 openldap openldap	0 2009-05-16 08:35 sendsigs.omit
-rw-r--r--  1 openldap openldap	0 2009-05-16 08:35 .ramfs
drwxr-xr-x  2 openldap openldap   60 2009-05-16 08:36 mdadm
drwxrwxr-x  2 openldap openldap   40 2009-05-16 08:37 screen
drwxrwx---  2 openldap openldap   40 2009-05-16 08:37 PolicyKit
srw-rw-rw-  1 openldap openldap	0 2009-05-16 08:37 acpid.socket
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 syslogd.pid
drwxr-xr-x  2 openldap openldap  100 2009-05-16 08:37 klogd
drwxr-xr-x  2 openldap openldap   80 2009-05-16 08:37 dbus
drwxr-xr-x  2 openldap openldap   40 2009-05-16 08:37 sshd
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 sshd.pid
drwxr-xr-x  2 openldap openldap   80 2009-05-16 08:37 mysqld
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 console-kit-daemon.pid
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 gdm.pid
srw-rw-rw-  1 openldap openldap	0 2009-05-16 08:37 gdm_socket
drwxr-xr-x  2 openldap openldap   60 2009-05-16 08:37 NetworkManager
-rw-r--r--  1 openldap openldap	4 2009-05-16 08:37 system-tools-backends.pid
drwxr-xr-x  2 openldap openldap   40 2009-05-16 08:37 pppconfig
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 atd.pid
-rw-r--r--  1 openldap openldap	5 2009-05-16 08:37 crond.pid
----------  1 openldap openldap	0 2009-05-16 08:37 crond.reboot
drwxr-xr-x  2 openldap openldap   40 2009-05-16 08:37 apache2
-rw-r--r--  1 openldap openldap 1,8K 2009-05-16 08:37 nm-dhclient-eth1.conf
drwxr-xr-x  2 openldap openldap   80 2009-05-16 08:37 avahi-daemon
drwxr-xr-x  2 openldap openldap   60 2009-05-16 08:37 network
drwxr-xr-x  2 openldap openldap   80 2009-05-16 08:40 update-motd
drwx------  3 openldap openldap   60 2009-05-17 11:13 sudo
drwxr-xr-x  3 openldap openldap  300 2009-05-17 11:49 samba
srw-rw-rw-  1 openldap openldap	0 2009-05-21 13:54 sdp
srwxr-xr-x  1 openldap openldap	0 2009-05-25 18:26 synaptic.socket
lrwxrwxrwx  1 openldap openldap   11 2009-05-30 09:02 ldapi -> slapd/ldapi
-rw-rw-r--  1 openldap openldap 4,5K 2009-05-30 09:38 utmp
drwx--x---  2 root	 sasl	   40 2009-05-30 14:42 saslauthd
-rw-r--r--  1 openldap openldap	5 2009-05-31 02:02 dhclient-eth1.pid
-rw-r--r--  1 openldap openldap	6 2009-05-31 07:59 apache2.pid
drwxr-xr-x  3 root	 lp		120 2009-05-31 07:59 cups
drwxr-xr-x  2 openldap openldap  100 2009-05-31 08:25 slapd
-rw-r--r--  1 openldap openldap	1 2009-05-31 08:25 updates-available
-rw-r--r--  1 root	 root	  430 2009-05-31 08:30 motd
-rw-r--r--  1 openldap openldap   62 2009-05-31 08:30 update-motd.lastrun
drwxr-xr-x 23 openldap openldap  900 2009-05-31 08:30 .
drwxr-xr-x  2 openldap openldap   60 2009-05-31 08:30 ConsoleKit
drwxr-xr-x  2 openldap openldap   60 2009-05-31 08:30 console
drwxr-xr-x  2 openldap openldap   80 2009-05-31 08:30 hald
tyrann@Sebastien:/var/run$

Quelqu'un a une solution ou un conseil pour ce genre de bêtise ? ;)

Merci

EDIT : une autre possibilité serait que quelqu'un me fasse un petit ls -laR sur son ubuntu 9.04 de /var/run et je ferai une comparaison pour tout remettre !

Lien vers le commentaire
Partager sur d’autres sites

root@istham-desktop:/home/istham# ls -alR /var/run
/var/run:
total 56
drwxr-xr-x 16 root	   root		700 2009-06-02 00:42 .
drwxr-xr-x 15 root	   root	   4096 2008-10-29 22:28 ..
srw-rw-rw-  1 root	   root		  0 2009-06-01 03:14 acpid.socket
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 atd.pid
drwxr-xr-x  2 avahi	  avahi	   100 2009-06-01 03:14 avahi-daemon
drwxr-xr-x  2 root	   root		 80 2009-06-02 00:42 console
drwxr-xr-x  2 root	   root		 60 2009-06-02 00:42 ConsoleKit
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 console-kit-daemon.pid
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 crond.pid
----------  1 root	   root		  0 2009-06-01 03:14 crond.reboot
drwxr-xr-x  3 root	   lp		  120 2009-06-01 04:06 cups
drwxr-xr-x  2 messagebus messagebus   80 2009-06-01 03:14 dbus
-rw-r--r--  1 root	   root		391 2009-06-01 03:14 dhclient-eth0.lease
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 dhclient-eth0.pid
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 gdm.pid
srw-rw-rw-  1 root	   root		  0 2009-06-01 03:14 gdm_socket
drwxr-xr-x  2 haldaemon  haldaemon	80 2009-06-02 00:42 hald
drwxr-xr-x  2 klog	   klog		100 2009-06-01 03:14 klogd
-rw-r--r--  1 root	   root		428 2009-06-01 03:14 motd
drwxr-xr-x  2 root	   root		 80 2009-06-01 03:14 network
-rw-r--r--  1 root	   root		  4 2009-06-01 03:14 NetworkManager.pid
-rw-r--r--  1 root	   root	   1652 2009-06-01 03:14 nm-dhclient-eth0.conf
drwxrwx---  2 root	   polkituser   40 2009-06-01 03:14 PolicyKit
drwxr-xr-x  2 root	   root		 40 2009-06-01 03:14 pppconfig
-rw-r--r--  1 root	   root		  0 2009-06-01 03:13 .ramfs
drwxr-xr-x  2 root	   root		220 2009-06-01 03:14 samba
drwxrwxr-x  2 root	   utmp		 40 2009-06-01 03:14 screen
srw-rw-rw-  1 root	   root		  0 2009-06-01 03:14 sdp
-rw-r--r--  1 root	   root		  0 2009-06-01 03:13 sendsigs.omit
drwxr-xr-x  2 root	   root		 40 2009-06-01 03:14 sshd
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 sshd.pid
drwx------  3 root	   istham	   60 2009-06-02 00:42 sudo
-rw-r--r--  1 root	   root		  5 2009-06-01 03:14 syslogd.pid
-rw-r--r--  1 root	   root		  4 2009-06-01 03:14 system-tools-backends.pid
-rw-rw-r--  1 root	   utmp	   3840 2009-06-02 00:41 utmp

/var/run/avahi-daemon:
total 8
drwxr-xr-x  2 avahi avahi 100 2009-06-01 03:14 .
drwxr-xr-x 16 root  root  700 2009-06-02 00:42 ..
-rw-r--r--  1 root  root   50 2009-06-01 03:14 checked_nameservers
-rw-r--r--  1 avahi avahi   5 2009-06-01 03:14 pid
srwxrwxrwx  1 avahi avahi   0 2009-06-01 03:14 socket

/var/run/console:
total 8
drwxr-xr-x  2 root root  80 2009-06-02 00:42 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..
-rw-r--r--  1 root root  75 2009-06-02 00:41 istham
-rw-r--r--  1 root root  38 2009-06-02 00:42 root

/var/run/ConsoleKit:
total 4
drwxr-xr-x  2 root root   60 2009-06-02 00:42 .
drwxr-xr-x 16 root root  700 2009-06-02 00:42 ..
-rw-------  1 root root 1770 2009-06-02 00:42 database

/var/run/cups:
total 8
drwxr-xr-x  3 root lp	  120 2009-06-01 04:06 .
drwxr-xr-x 16 root root	700 2009-06-02 00:42 ..
dr-x--x--x  2 lp   lpadmin  40 2009-06-01 04:06 certs
-rw-r--r--  1 root root	  5 2009-06-01 03:14 cupsd.pid
srwxrwxrwx  1 root root	  0 2009-06-01 04:06 cups.sock
-rw-r--r--  1 root root	135 2009-06-01 04:06 printcap

/var/run/cups/certs:
total 0
dr-x--x--x 2 lp   lpadmin  40 2009-06-01 04:06 .
drwxr-xr-x 3 root lp	  120 2009-06-01 04:06 ..

/var/run/dbus:
total 4
drwxr-xr-x  2 messagebus messagebus  80 2009-06-01 03:14 .
drwxr-xr-x 16 root	   root	   700 2009-06-02 00:42 ..
-rw-r--r--  1 root	   root		 5 2009-06-01 03:14 pid
srwxrwxrwx  1 root	   root		 0 2009-06-01 03:14 system_bus_socket

/var/run/hald:
total 8
drwxr-xr-x  2 haldaemon haldaemon   80 2009-06-02 00:42 .
drwxr-xr-x 16 root	  root	   700 2009-06-02 00:42 ..
-rw-r--r--  1 root	  root	  1168 2009-06-02 00:42 acl-list
-rw-r--r--  1 root	  root		 5 2009-06-01 03:14 hald.pid

/var/run/klogd:
total 8
drwxr-xr-x  2 klog klog 100 2009-06-01 03:14 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..
-rw-r--r--  1 klog klog   5 2009-06-01 03:14 klogd.pid
prwx------  1 klog klog   0 2009-06-01 22:59 kmsg
-rw-r--r--  1 root root   5 2009-06-01 03:14 kmsgpipe.pid

/var/run/network:
total 4
drwxr-xr-x  2 root root  80 2009-06-01 03:14 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..
-rw-------  1 root root  16 2009-06-01 03:14 ifstate
-rw-r--r--  1 root root   0 2009-06-01 03:14 initialized

/var/run/PolicyKit:
total 0
drwxrwx---  2 root polkituser  40 2009-06-01 03:14 .
drwxr-xr-x 16 root root	   700 2009-06-02 00:42 ..

/var/run/pppconfig:
total 0
drwxr-xr-x  2 root root  40 2009-06-01 03:14 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..

/var/run/samba:
total 224
drwxr-xr-x  2 root root   220 2009-06-01 03:14 .
drwxr-xr-x 16 root root   700 2009-06-02 00:42 ..
-rw-r--r--  1 root root 40200 2009-06-01 03:14 brlock.tdb
-rw-r--r--  1 root root 90112 2009-06-01 03:14 connections.tdb
-rw-r--r--  1 root root   696 2009-06-01 03:14 gencache.tdb
-rw-r--r--  1 root root 40200 2009-06-01 03:14 locking.tdb
-rw-------  1 root root   696 2009-06-01 03:14 messages.tdb
-rw-r--r--  1 root root	 5 2009-06-01 03:14 nmbd.pid
-rw-r--r--  1 root root   696 2009-06-01 03:14 sessionid.tdb
-rw-r--r--  1 root root	 5 2009-06-01 03:14 smbd.pid
-rw-r--r--  1 root root 28672 2009-06-01 03:14 unexpected.tdb

/var/run/screen:
total 0
drwxrwxr-x  2 root utmp  40 2009-06-01 03:14 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..

/var/run/sshd:
total 0
drwxr-xr-x  2 root root  40 2009-06-01 03:14 .
drwxr-xr-x 16 root root 700 2009-06-02 00:42 ..

/var/run/sudo:
total 0
drwx------  3 root istham  60 2009-06-02 00:42 .
drwxr-xr-x 16 root root   700 2009-06-02 00:42 ..
drwx------  2 root istham  60 2009-06-02 00:42 istham

/var/run/sudo/istham:
total 0
drwx------ 2 root istham 60 2009-06-02 00:42 .
drwx------ 3 root istham 60 2009-06-02 00:42 ..
-rw------- 1 root istham  0 2009-06-02 00:42 0
root@istham-desktop:/home/istham#

c'est le desktop du coloc, c'est plutot minimaliste.

mais le principal y est.

Lien vers le commentaire
Partager sur d’autres sites

Voilà, en esperant que ca aide :transpi:

total 56
drwxr-xr-x 17 root	   root		720 2009-06-02 17:00 .
drwxr-xr-x 15 root	   root	   4096 2009-04-20 16:13 ..
srw-rw-rw-  1 root	   root		  0 2009-05-31 15:16 acpid.socket
-rw-r--r--  1 root	   root		  5 2009-05-31 15:16 atd.pid
drwxr-xr-x  2 avahi	  avahi		80 2009-05-31 15:16 avahi-daemon
drwxr-xr-x  2 root	   root		 60 2009-06-02 17:00 console
drwxr-xr-x  2 root	   root		 60 2009-06-02 17:00 ConsoleKit
-rw-r--r--  1 root	   root		  5 2009-05-31 15:16 console-kit-daemon.pid
-rw-r--r--  1 root	   root		  6 2009-06-02 16:55 crond.pid
----------  1 root	   root		  0 2009-05-31 15:16 crond.reboot
drwxr-xr-x  3 root	   lp		  120 2009-06-02 07:44 cups
drwxr-xr-x  2 messagebus messagebus   80 2009-05-31 15:16 dbus
-rw-r--r--  1 root	   root		  5 2009-06-02 08:41 dhclient-eth0.pid
-rw-r--r--  1 root	   root		  5 2009-05-31 15:16 gdm.pid
srw-rw-rw-  1 root	   root		  0 2009-05-31 15:16 gdm_socket
drwxr-xr-x  2 haldaemon  haldaemon	80 2009-06-02 17:00 hald
drwxr-xr-x  2 klog	   klog		100 2009-05-31 15:16 klogd
-rw-r--r--  1 root	   root		  1 2009-06-02 17:00 motd
drwxr-xr-x  2 root	   root		 60 2009-05-31 15:16 network
drwxr-xr-x  2 root	   root		 60 2009-05-31 15:16 NetworkManager
-rw-r--r--  1 root	   root	   1777 2009-05-31 15:16 nm-dhclient-eth0.conf
drwxrwx---  2 root	   polkituser   40 2009-05-31 15:16 PolicyKit
drwxr-xr-x  2 root	   root		 40 2009-05-31 15:16 pppconfig
-rw-r--r--  1 root	   root		  0 2009-05-31 17:16 .ramfs
drwxr-xr-x  3 root	   root		140 2009-05-31 15:16 samba
drwxrwxr-x  2 root	   utmp		 40 2009-05-31 15:16 screen
srw-rw-rw-  1 root	   root		  0 2009-05-31 15:16 sdp
-rw-r--r--  1 root	   root		  0 2009-05-31 17:16 sendsigs.omit
drwx------  3 root	   koub		 60 2009-06-01 14:41 sudo
srwxr-xr-x  1 root	   root		  0 2009-06-02 16:55 synaptic.socket
-rw-r--r--  1 root	   root		  5 2009-05-31 15:16 syslogd.pid
-rw-r--r--  1 root	   root		  4 2009-05-31 15:16 system-tools-backends.pid
drwxr-xr-x  2 root	   root		 80 2009-05-31 15:20 update-motd
-rw-r--r--  1 root	   root		 50 2009-06-02 17:00 update-motd.lastrun
-rw-r--r--  1 root	   root		  1 2009-06-02 16:55 updates-available
-rw-rw-r--  1 root	   utmp	   4224 2009-06-01 19:04 utmp

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...