LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-14-2013, 11:56 AM   #1
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Rep: Reputation: 187Reputation: 187
Failed to execute login command


I have installed Slackware with Xfce on my ThinkPad T61, setup a user account, configured my Xfce desktop the way I wanted it, etc.

Then, as root, I went over to SlackBuilds and installed SLiM, flash-plugin, and Dropbox. Everything installed and is working fine.

However, now I cannot login with my user account, I get this message at the SLiM login screen:

"Failed to execute login command"

So, what did I break, and how do I fix it?
 
Old 04-14-2013, 09:21 PM   #2
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Update: I deleted the user account from root, and created a new user account, but attempting to login to the new user account yielded the same result. Puzzled...
 
Old 04-14-2013, 09:24 PM   #3
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware 14.0/32bit + Xmonad
Posts: 280

Rep: Reputation: 74
I haven't used SLiM, but I've read that deleting your ~/.Xauthority file then logging out and back in (from the console) will fix that, but mind you, that info came from a quick googal search. Also, if you've altered your /etc/hosts file, that might be affecting SLiM.
Probably more of a SLiM problem than a Slackware or even a DE issue, although XFCE can be finicky about things.
 
1 members found this post helpful.
Old 04-14-2013, 10:25 PM   #4
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 160

Rep: Reputation: 21
Are you able to login as new user and start Xorg manually from console? Could you post content of ~/.xinitrc?

I'm using SLiM and only encountered "Failed to execute login command" when stopping or restarting computer via SLiM, in which case it really doesn't matter.
 
Old 04-14-2013, 11:06 PM   #5
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by STDOUBT View Post
I haven't used SLiM, but I've read that deleting your ~/.Xauthority file then logging out and back in (from the console) will fix that, but mind you, that info came from a quick googal search. Also, if you've altered your /etc/hosts file, that might be affecting SLiM.
Probably more of a SLiM problem than a Slackware or even a DE issue, although XFCE can be finicky about things.
Confirmed: the problem is SLiM. I removed SLiM from my rc.4, thereby reverting to XDM, and was able to login as user. Oh well, it looks like there are lots of cool configuration options for XDM, too, so I guess I'll check that out.
 
Old 04-14-2013, 11:15 PM   #6
slack_rick
LQ Newbie
 
Registered: Apr 2013
Location: Florida,
Distribution: Slackware 64 Current - Slackware 14 x86_64
Posts: 9
Blog Entries: 1

Rep: Reputation: Disabled
I would just delete ~.xinitrc

and make a new one.

nano .xinitrc
#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

exec startxfce4
 
Old 04-14-2013, 11:29 PM   #7
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by yenn View Post
Are you able to login as new user and start Xorg manually from console? Could you post content of ~/.xinitrc?

I'm using SLiM and only encountered "Failed to execute login command" when stopping or restarting computer via SLiM, in which case it really doesn't matter.
This may be a moot point now, but here it is:

Code:
#!/bin/sh
#  xinitrc.xfce - modified to work around xfce4session bug
#                 https://bugzilla.xfce.org/show_bug.cgi?id=8841


########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

if [ -f $sysresources ]; then
    /usr/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/bin/xmodmap $usermodmap
fi

########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
  exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
 
Old 04-15-2013, 12:19 AM   #8
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by slack_rick View Post
I would just delete ~.xinitrc

and make a new one.

nano .xinitrc
#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

exec startxfce4
I did try this, after adding SLiM back into rc.4, but it didn't work.
 
Old 04-15-2013, 04:46 AM   #9
GazL
Senior Member
 
Registered: May 2008
Posts: 3,501

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
  exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
That kind of construct where you use dbus-launch to exec the environment's start script has proven unreliable in the past.
I prefer to add the following to the start<whatever> script and remove the dbus-launch from the xinitrc.
Code:
   if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
      eval `dbus-launch --sh-syntax --exit-with-session`
   fi
Note: you can't just add the above to the xinitrc itself because it needs to be run within the session started by ck-launch-session


In the case of xfce4, /etc/xdg/xfce4/xinitrc will start dbus anyway so the dbus-launch in xinitrc.xfce is redundant.

I'd be inclined to replace that section with:
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session /usr/bin/startxfce4
else
  exec /usr/bin/startxfce4
fi
This may or may not have any bearing on your problem, but it's one less thing that could go wrong.


P.S. If SLIM is anything like XDM it may be running .xsession rather than .xinitrc, so you need to make sure you know which file it is running.

Last edited by GazL; 04-15-2013 at 04:47 AM.
 
1 members found this post helpful.
Old 04-15-2013, 08:11 AM   #10
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Thanks, GazL, I will check that out when I get the chance. I'm going to mark this as SOLVED for now, as SLiM was clearly the problem, and I'm able to login normally with XDM. I may also give GDM a try, we'll see.
 
Old 04-15-2013, 08:52 AM   #11
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 160

Rep: Reputation: 21
You can also try running 'xwmconfig' as new user, which creates new correct .xinitrc or .xsession (I'm not sure which one) and report if it helped.
 
1 members found this post helpful.
Old 04-15-2013, 10:49 AM   #12
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Thanks, yenn, I will check that out also, and report back.
 
Old 04-16-2013, 12:22 AM   #13
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Test. This is only a test.
 
Old 04-17-2013, 11:40 PM   #14
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by eyeofliberty View Post
I may also give GDM a try, we'll see.
I decided to give GDM a try, and I'm very happy with it so far. I even found some very nice Slackware themes for it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] failed to execute system command from CGI program evgenyz Programming 3 11-22-2012 10:43 AM
Failed to execute login command SBN Gentoo 6 12-14-2011 12:55 AM
failed to execute login command charlie_lab Slackware 2 06-28-2009 02:09 PM
failed to execute command : ifconfig <interface> create summersgone Linux - Networking 6 05-12-2009 12:04 PM
Bash command $? failed to execute. Linh Programming 7 05-14-2004 12:11 PM


All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration