Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 08-06-2010, 05:45 PM   #1
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Rep: Reputation: 29
Question After improper shutdown, 1 user can't startx (KDE), sudo, OR su. Root account is ok!

Running Slackware 13.0 with KDE 4.

During a thunderstorm, I (properly) turned off my laptop and unplugged the power and ethernet.

I forgot to plug the power back in when I started my laptop later. So the battery got drained.

After letting the laptop charge, my regular user can no longer "startx," "sudo," "su," or "slocate." I thought maybe I lost my PATH variable, but typing a full path such as "/usr/bin/startx" returns the same error. The error message is "command not found." Some commands work, however, like "ls" and "ls -la."

Actually, when I type "startx," it gives me a list of commands (maybe 6-10) it can't find! This includes "rm."

However, the root account is fine. I am on KDE now, logged in as root. So I don't want to configure X, correct?

I also thought about (while logged in as root) opening a console, "su"-ing to the regular user, and trying "startx" so as to paste the output here. But I think that's unsafe....if for any reason startx works (like because I still have my root environment), I don't know if it will cause problems because I already have an X session going!

Did some profile files get corrupted? What should I do? (Again, trying "startx" as user causes the error of not being able to find "rm" and other commands, not just startx!)
Old 08-06-2010, 08:57 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,636
Blog Entries: 17

Rep: Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250Reputation: 3250
For testing purposes, try creating a new user using "adduser" as root, then logging in as the new user and seeing if new user works okay.

If it does, it tells you that something is boinked in old user's profile.

I don't have any answers from here on but I have a couple of more testing suggestions: IF that happens, the first thing I would try would be to log back in as old user and run xwmconfig to see what happens.

I would also try selecting a different window manager for old user (fluxbox or blackbox or anything not used before) and seeing if that worked.

If so, it could mean that the configuration files in /home/Old User/.[whatever window manager you were using before] are messed up.

Hope this helps you get started testing.
1 members found this post helpful.
Old 09-19-2010, 03:56 AM   #3
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Original Poster
Rep: Reputation: 29
Thanks frankbell.

Unfortunately I ended up re-installing Slackware for another reason, but I will try your suggestions if an account gets messed up again!


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] normal user, with no sudo... linus72 Slackware 4 08-04-2010 06:10 PM
startx by non-root user account in red hat linux kernel 2.6 chuikingman Linux - Server 1 02-04-2010 04:00 PM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Can't startX as user (KDE 3.1)... root is fine Spislander Debian 1 01-01-2004 08:04 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:46 PM.

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