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

Notices


Reply
  Search this Thread
Old 10-08-2011, 01:03 AM   #1
opticks
Member
 
Registered: Oct 2011
Location: U.S.
Distribution: Ubuntu Backtrack
Posts: 41

Rep: Reputation: Disabled
Startx failure with New User


First of all, I am running Backtrack 5 R1 KDE 64 bit. I have been using it for a significant amount of time, and my M.O. has been to work past any obstacle I encounter in Linux that comes from a lack of knowledge or understanding. This was difficult at first as I had to switch back to Windows for tasks I didn't know how to accomplish in Linux, but now I have gotten my feet wet and I feel very confident to tackle anything on my new favorite OS.

Having said that, I am utterly stuck. I have been using the root account for so long, as most of the tools in Backtrack require root permissions and I like having them to work with at my every whim since my field of study is Internet Security / Cyber Defense, and I want to familiarize myself with the tools/methods/capabilities/etc of attacks. I know a little about the dangers of being logged in as the root user all the time and performing all tasks as the root user, so I decided to find a command-line walkthrough to creating a new user account, as I couldn't find a graphical tool in the distro already.

The guide was pretty straightforward. It said to use these commands and then to log out of root and log in to the new account.

useradd <username>
passwd <username>
<enter password here>


Simple enough, right? So I logged out to the console view and logged into the new account, no problems there. I now see this message above my prompt:

No directory, logging in with HOME=/

Okay, problem or not? Well, one way to find out. My lack of suave at the CLI led me to type startx and see what I can find out after that. Here's where it gets interesting...

hostname: name or service not known.

After some time without a prompt at all, I see:

xauth: timeout in locking authority file //.Xauthority

Still no prompt, more waiting, and then my screen does some nifty, text-flying-flicker before I see a little gray XP-style window that tells me:

kstartupconfig4 doesn't exist or fails. Your error code is 3.

It goes on to say something else but it runs into the window edge so I can't even make out the first word. Upon some 'scroogling', I found a few solutions suggested by people who didnt have much info to go on other than "startx didn't work with new user" and no error output. I jotted some down to try, here are the results:

chmod +s /usr/bin/X11/Xorg
Command seems to complete successfully, no change for startx though.

chmod u+s /usr/X11R6/bin/Xorg
Tells me the directory doesn't exist.

startkde
Output: Display not set up or cannot connect to the X server.

kdm
Output: Only root wants to run kdm.

xf86config (as root)
Unknown command, doesn't work. Thought it could be a 86/64 isssue, but substituting the number in the command doesn't work either.

export PATH=$PATH:/usr/X11R6/bin
Command seems to complete successfully, no change for startx though.

I then got the bright idea, HEY, remember on the endless tutorials you've read that say you may need to add 'sudo' before the command if not logged in as root, and remember how you always omitted that since you're always on the root account? Let's try it with startx!

<user> is not in the sudoers file. Incident will be reported.

No such luck.
Note that all functionality with startx and the rest of the OS on the root account for that matter is intact. I have registered an account at the Backtrack forums, only to find out once I logged in and activated my account that I am "not allowed to post new threads"??? Anyways, LinuxQuestions.org thankfully had no such nonsense, and I humbly ask a more knowledgeable person for their assistance. If there is something essential to the process of creating new accounts in Linux/Ubuntu that I am missing, I am eager to learn. Thank you all in advance.

- opticks

Last edited by opticks; 10-08-2011 at 01:06 AM. Reason: I realized I had typed the initial "useradd" commands wrong; didn't want users to think that where where I had gone awry.
 
Old 10-08-2011, 01:37 AM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Try doing it again and this time try useradd. See man page for options.

You need the user to be a member of some group, at least "users" so that there is a /home/<user name> directory created. With out that there are no config files for that user. These are ~/.hidden files (all start with a .)and show up if you het control + h.

I would also check the newest date of posts on the Backtrack forum. If it is a while ago the reason you can't post there is that it is no longer active. Check it out. Could be the case.
 
1 members found this post helpful.
Old 10-08-2011, 02:09 AM   #3
opticks
Member
 
Registered: Oct 2011
Location: U.S.
Distribution: Ubuntu Backtrack
Posts: 41

Original Poster
Rep: Reputation: Disabled
Thank you for the timely feedback. I found a suggestion to try this:

su -
<enter root password>
chown -R <username>.users /home/<username>


Except it said (as you point out) that the directory does not exist!
My on-the-spot solution was to create it...lol.
The message above my prompt upon login disappeared, and voila, I was presented with a beautiful GUI. It does however look and operate completely different from the root account, but I imagine there are ways to remedy that, and since that's not really related to this thread I don't want to start asking about that here. But thank you for the hidden files / ctrl+h tip! I will do some reading into editing of config files and how to do further user customization, now that I have a nice GUI to operate from
 
Old 10-08-2011, 12:41 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Have FUN.
 
  


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
Ubuntu 9.10 Startx failure black screen white fonts mudcow007 Ubuntu 1 11-04-2009 08:34 AM
startx failure chiendarret Linux - Hardware 11 01-30-2009 01:33 PM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 08:41 PM
startx failure raiden4201 Mandriva 5 10-20-2004 12:17 AM
power failure toasts startx and nfs keirobyn Linux - General 1 04-29-2002 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:33 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
Open Source Consulting | Domain Registration