Page 1 sur 1
[slim] Authentification et problème de droit (résolu)
Publié : mar. 18 sept. 2012, 11:07
par L_Indien
Bonjour,
Je fais suite à ce sujet :
[HAL] Impossibilité de l'installer mais concernant les soucis de droits.
En suivant
le tuto sur les utilisateurs, j'ai ajouter l'utilisateur "Indien" dans le groupe "users" en exécutant les commandes suivantes :
et modifier le /etc/inittab pour démarrer en mode 5 :
Code : Tout sélectionner
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
x:5:respawn:/usr/bin/slim >& /dev/null
# End of file
et le fichier /etc/slim.conf pour démarrer par sans l'autologin
Code : Tout sélectionner
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path ./:/bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4,icewm,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user indien
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
# current_theme default
current_theme archbang
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Mais rien n'y fait. Obligé de passer en mode console et de démarrer en manu (ID et $ startx).
Ce qui est bizzare, c'est que quand je rentre mes ID dans l'interface de SLIM, tout va "bien". Il ne me renvoit un bip d'erreur (comme quand on rentre un mauvais identifiant et/ou MotdePasse). Je vois le curseur de la souris en forme de croix, et même pas 3 seconde après (
tu l'as vu, tu l'as pas vu. Tu l'as vu, tu l'as pas vu 
) je me retrouve devant l'écran d'authentification de SLIM...
Le fait de rajouter le groupe users à l'utilisateur indien n'a rien changé (ni pour k3b).
Quand au fichier ~/.xinitrc, le groupe est indien ainsi que le propriétaire.
C'est normal ?
Merci pour les conseils.
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:23
par benjarobin
Peux tu donner le contenu de ton .xinitrc (/home/indien/.xinitrc)
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:24
par L_Indien
Oups, je pensait l'avoir mis...
Code : Tout sélectionner
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
export BROWSER=firefox
export DE=openbox
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#DEFAULT_SESSION=openbox-session
# Pour mettre utiliser openbox
exec ck-launch-session dbus-launch openbox-session
#Pour utiliser gnome
#exec ck-launch-session gnome-session
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:26
par tuxce
Salut
L_Indien a écrit :En suivant le tuto sur les utilisateurs, j'ai ajouter l'utilisateur "Indien" dans le groupe "users" en exécutant les commandes suivantes :
L'une des deux est suffisante
L_Indien a écrit :Mais rien n'y fait. Obligé de passer en mode console et de démarrer en manu (ID et $ startx).
Il faudrait voir ce que retourne slim,
/var/log/slim.log
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:26
par benjarobin
Enlève ck-launch-session, slim le lance maintenant
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:36
par L_Indien
Bonjour,
Merci pour les réponses.
tuxce a écrit :Salut
L_Indien a écrit :En suivant le tuto sur les utilisateurs, j'ai ajouter l'utilisateur "Indien" dans le groupe "users" en exécutant les commandes suivantes :
L'une des deux est suffisante

Ok, merci
tuxce a écrit :L_Indien a écrit :Mais rien n'y fait. Obligé de passer en mode console et de démarrer en manu (ID et $ startx).
Il faudrait voir ce que retourne slim,
/var/log/slim.log
Ok, voici le retour de
/var/log/slim.log
Code : Tout sélectionner
slim: pam_authentication(): User not known to the underlying authentication module
slim: pam_authenticate(): Conversation error
slim: pam_authentication(): User not known to the underlying authentication module
slim: connection to X server lost.
slim: pam_authentication(): User not known to the underlying authentication module
slim: connection to X server lost.
slim: pam_authenticate(): Conversation error
slim: pam_authenticate(): Conversation error
slim: connection to X server lost.
slim: pam_authenticate(): Conversation error
slim: pam_authenticate(): Conversation error
slim: pam_authenticate(): Conversation error
slim: pam_authenticate(): Conversation error
slim: pam_authentication(): User not known to the underlying authentication module
slim: pam_authenticate(): Conversation error
slim: connection to X server lost.
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: pam_authentication(): Authentication failure
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: pam_authentication(): User not known to the underlying authentication module
slim: pam_authentication(): Authentication failure
slim: pam_end(): System error
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: pam_end(): System error
slim: waiting for X server to shut down
slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
slim: waiting for X server to shut down
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: pam_end(): System error
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
slim: waiting for X server to shut down
slim: waiting for X server to begin accepting connections.
slim: pam_authentication(): Authentication failure
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: pam_end(): System error
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
slim: waiting for X server to shut down
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: pam_authentication(): Authentication failure
slim: pam_end(): System error
slim: Invalid theme in config: archbang
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: pam_end(): System error
slim: waiting for X server to shut down
slim: Invalid theme in config: archbang
slim: waiting for X server to begin accepting connections.
slim: pam_end(): System error
slim: waiting for X server to shut down
slim: Invalid theme in config: archbang
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: unexpected signal 15
slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
slim: waiting for X server to shut down.....
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections
Giving up.
slim: unable to connect to X server
slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: pam_authentication(): Authentication failure
slim: pam_authentication(): Authentication failure
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
slim: open_session: Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
benjarobin a écrit :Enlève ck-launch-session, slim le lance maintenant
ça c'est fait. Je vous donne des nouvelles lors du prochain redémarrage... Et sans oublier de mettre l'inittab en mode 5.
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:43
par benjarobin
On peut voir le contenu de ton /etc/rc.conf
Ainsi que la sortie de
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 11:53
par L_Indien
Oui,
Voici le contenu de /etc/rc.conf
Code : Tout sélectionner
#
# /etc/rc.conf - configuration file for initscripts
#
# Most of rc.conf has been replaced by various other configuration
# files. See archlinux(7) for details.
#
# For more details on rc.conf see rc.conf(5).
#
LOCALE="fr_FR.UTF-8"
DAEMONS=(syslog-ng network network rpcbind nfs-common @netfs crond)
# Storage
#
# USEDMRAID="no"
# USELVM="no"
# Network
#
# interface=
# address=
# netmask=
# gateway=
ainsi que
Code : Tout sélectionner
# ls -l /etc/pam.d/*.pac*
ls: impossible d'accéder à /etc/pam.d/*.pac*: Aucun fichier ou dossier de ce type
je pense que ça explique un peu plus les choses. Logiquement, ça ne s'installe pas en même temps que le gestionnaire de connexion ?
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 12:25
par benjarobin
La dernier commande vérifié si tu avait des .pacnew ou des .pacsave et tu n'en a pas ce qui est très bien.
Par contre ta ligne de DAEMONS ne va pas du tout... Remplace par
Code : Tout sélectionner
DAEMONS=(syslog-ng dbus network rpcbind nfs-common @netfs @crond)
Et remplace
par
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 12:45
par L_Indien
Merci pour les info. Je reboot et te tiens aux nouvelles.
Re: [SLIM] Authentification et problème de droit
Publié : mar. 18 sept. 2012, 12:51
par L_Indien
ReSalut,
Merci pour les info benjarobin et tuxce... Ça fonctionne...

Juste une dernière question, le soucis vennait de dbus, @crond ou de l'interface eth0. Au vus des infos, j'aurais plus tabler sur la différence entre crond et @crond.
Je viens également de tester k3b, et idem, les 3 lecteurs/graveurs sont reconnus.
Merci.
Re: [SLIM] Authentification et problème de droit (RÉSOLU)
Publié : mar. 18 sept. 2012, 13:31
par benjarobin
Non le soucis c'était dbus manquant, après pour crond c'est une optimisation mineur pour la vitesse de démarrage, et pour l'interface elle est nécessaire pour le daemon network que je sache
Re: [slim] Authentification et problème de droit (résolu)
Publié : mar. 18 sept. 2012, 14:13
par L_Indien
Ok.
Merci pour les informations.
Bonne après-midi.