You are not logged in.
Pages: 1
Hi guys. I'm new with xfce. I installed xfce and slim. The problem is when I want to login as normal user always login as root. Any suggestions? thanks.
Offline
What? Can you elaborate? It sounds like you've given your own interpretation, but share the symptoms that lead to that conclusion.
There should be no way you could enter your users credentials and end up actually logged in as root.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Imagine:
you are on the PC and you have the SLIM login screen, and put the user:
username: aperillo (in my case)
password: ***************
The XFCE desktop appears, I go to my home directory and the path is /root
I open the terminal and the prompt says: root@"my hostname" :
when I was login with "aperillo" user. what's wrong in here? thanks :-)
Offline
Would you mind posting your ~/.xinitrc and your /etc/slim.conf?
Is there any possibility that in your /etc/slim.conf you have the default user set to root?
I've got both xfce and xmonad in there and this is what mine looks like:
~/.xinitrc (sorry, there is some extra garbage in there so I could get gnome-keyring working for geary)
-------------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# SLIM Login Manager
DEFAULT_SESSION=xmonad
case $1 in
xfce4)
# Gnome-keyring settings for XFCE compatibility
#----------------------------------------------------
# Start a D-Bus session
source /etc/X11/xinit/xinitrc.d/30-dbus
# Start GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
# You probably need to do this too:
export SSH_AUTH_SOCK
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID
exec startxfce4
;;
xmonad)
xsetroot -cursor_name left_ptr
# Gnome-keyring setup (required for remembering passwords in geary)
# -----------------------------------------------------------------
source /etc/X11/xinit/xinitrc.d/30-dbus
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_SOCKET
export GNOME_KEYRING_PID
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
#obtained correct SSH_AUTH_SOCK settings with the command:
# export | grep SSH
# while in xfce where gnome-keyring works
#
#
# you can see the gnome_keyring restults with
# gnome-keyring-daemon -s
#
# you can see the actual export values with:
# export | grep SSH
export SSH_AUTH_SOCK="/tmp/gpg-gXLJ5S/S.gpg-agent.ssh"
exec xmonad
;;
*)
xsetroot -cursor_name left_ptr
# Gnome-keyring setup (required for remembering passwords in geary)
# -----------------------------------------------------------------
source /etc/X11/xinit/xinitrc.d/30-dbus
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_SOCKET
export GNOME_KEYRING_PID
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
#obtained correct SSH_AUTH_SOCK settings with the command:
# export | grep SSH
# while in xfce where gnome-keyring works
#
#
# you can see the gnome_keyring restults with
# gnome-keyring-daemon -s
#
# you can see the actual export values with:
# export | grep SSH
export SSH_AUTH_SOCK="/tmp/gpg-gXLJ5S/S.gpg-agent.ssh"
exec xmonad
;;
esac
/etc/slim.conf
----------------------------------------------------------------------------------------------------------------------------------
# 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 xmonad,xfce4
# 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 kaivai
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
focus_password yes
# 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 archlinux-soft-grey
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Offline
/home/"my user(not root)"/.xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
donex
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice/etc/slim.conf
# 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 halt
reboot_cmd reboot
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 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
sessionstart_cmd startxfce4
# 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-session,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 simone
# 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
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.logLast edited by huoda (2013-05-18 15:49:19)
Offline
Please use code tags when pasting to the boards...
Offline
SOLVED!
Finally, in /etc/slim.conf I replaced:
sessionstart_cmd startxfce with:
sessionstart_cmd ck-launch-session startxfce4 thanks
Last edited by huoda (2013-05-18 17:18:51)
Offline
Pages: 1