LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



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

Rep: Reputation: 28
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, 09:57 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,235

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
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, 04:56 AM   #3
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Original Poster
Rep: Reputation: 28
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!
 
  


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] normal user, shutdown-dialog.sh with no sudo... linus72 Slackware 4 08-04-2010 07:10 PM
startx by non-root user account in red hat linux kernel 2.6 chuikingman Linux - Server 1 02-04-2010 05: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 08: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 11:02 AM
Can't startX as user (KDE 3.1)... root is fine Spislander Debian 1 01-01-2004 09:04 PM


All times are GMT -5. The time now is 10:15 AM.

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