LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 03-27-2010, 11:03 PM   #1
janeybaby
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Rep: Reputation: 0
create user from command line interface fedora 12


Hi all,

I'm an epic noob to Linux, and after getting Fedora 12 installed all fine I'm now stuck at logging in.

I've figured out that Fedora automatically starts up the GUI when it boots, and then that you can't log into the GUI as root user. However since I haven't had a chance to log into the system at all to create another user, I'm stuck - I can't log in with root, but it's the only user account that currently exists.

I booted into the CLI ctrl+alt+F1 and am now at the GNU Grub version 0.97, with grub> on screen and no freaking idea what to do next.

Can someone please give me an idea on how I can create a user account to log into the GUI and continue my learnings?

Thanks!

J

PS, sorry for the step explanation of what I've done, but I figure the more info i give, the easier it will be to solve my problem.
 
Old 03-27-2010, 11:13 PM   #2
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Quote:
Originally Posted by janeybaby View Post
Hi all,

I'm an epic noob to Linux, and after getting Fedora 12 installed all fine I'm now stuck at logging in.

I've figured out that Fedora automatically starts up the GUI when it boots, and then that you can't log into the GUI as root user. However since I haven't had a chance to log into the system at all to create another user, I'm stuck - I can't log in with root, but it's the only user account that currently exists.

I booted into the CLI ctrl+alt+F1 and am now at the GNU Grub version 0.97, with grub> on screen and no freaking idea what to do next.

Can someone please give me an idea on how I can create a user account to log into the GUI and continue my learnings?

Thanks!

J

PS, sorry for the step explanation of what I've done, but I figure the more info i give, the easier it will be to solve my problem.
Welcome to LQ.

Try the command: adduser
It's an interactive script that should guide you through the process of adding a new user.
 
Old 03-27-2010, 11:14 PM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian Wheezy amd64, i386; Adrienne Knoppix, VMware, OpenSuSE, Fedora 14 x86_64
Posts: 1,443

Rep: Reputation: 108Reputation: 108
The grub prompt is a boot prompt. If you're getting the grub prompt, the machine isn't booted yet. You have to get a login prompt. After you log in as root, type man useradd
 
Old 03-27-2010, 11:21 PM   #4
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Yes I forgot to add. You need to boot the machine first and log in to GUI, then:
1. open the terminal,
2. type 'su' + your root password.

As AwesomeMachine suggests, you can check the manual of useradd. The command 'adduser' is just a script that asks you a couple of questions and uses 'useradd' to create a user. I haven't used fedora for a couple of years now so don't remember but you might have to issue: /sbin/adduser
If you can't find it try useradd. You might also need to specify the path: /sbin/useradd + options.
 
Old 03-27-2010, 11:27 PM   #5
janeybaby
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thank you all for such quick and helpful responses!! much appreciated :-)

ahh ok, see my problem stems from having let the computer boot, then seeing the 'log in' box, then typing in 'root' as the username and entering the password exactly as i entered it in the installation.

After 32094809324234 attempts, I rebooted and held down ctrl+alt+F1 and got the grub CLI.

I'm at a stalemate, how can I create a user account to log into the GUI with if I can't get into the GUI to do so?

ps there is no terminal button/option/menu anywhere on the log in screen, just the universal access preferences, boot messages, time/date and shut down button.
 
Old 03-27-2010, 11:37 PM   #6
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
When you are at the gui login screen, you should be able to press ctrl+alt+f1 to get to the command line login where you can log in as root.
 
Old 03-27-2010, 11:56 PM   #7
janeybaby
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
ah thanks, i'm pressing and pressing and no luck.

is there a known error that prevents this from working? ctrl+alt+F1 (or any of the Function keys) does not work yet i know it worked because I made it go to the grub CLI before it booted....
 
Old 03-27-2010, 11:59 PM   #8
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Have you got any linux live CD?
 
Old 03-28-2010, 12:34 AM   #9
janeybaby
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
nah i downloaded fedora 12 i386 dvd, burnt iso image to dvd and installed that way.

is there a particular live cd you recommend to use to test the system?
 
Old 03-28-2010, 03:53 AM   #10
janeybaby
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
ok the problem appears to be that my computer is not loading the firstboot procedure, it goes directly from 'reboot' after install to the gui log in, no first boot settings available. it's in this firstboot that i'm able to create a new user, so of course the reason i'm having dramas is that it doesn't run.

have re-installed several times with same problem... what am i doing wrong?? :-(
 
Old 03-28-2010, 04:13 AM   #11
unix.fresher
LQ Newbie
 
Registered: Dec 2008
Distribution: redhat
Posts: 27

Rep: Reputation: 17
Dear,
May I help you?
When you get gui login, then press ctrl+alt+F2. login as a root
then
Quote:
#useradd <username>
#passwd <username>
type your password.
then goto ctrl+alt+F1
Now you can get your user in that list.
Hope it will help you
All the best.
 
  


Reply

Tags
command, create, fedora, interface, line, user


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create an ext2 partition from command line which is writable from every user piefa703 Linux - Newbie 7 11-04-2009 10:07 AM
Command Line Interface sj061 Linux - Newbie 4 02-22-2007 01:48 AM
How do you create a user account from command line??? bossdog22 Ubuntu 3 04-18-2006 01:06 PM
Can only use command line interface! The helpless one Linux - Newbie 6 03-12-2006 03:42 PM
How To Add user in Fedora Core 4 using the Command Line Interface regnox Linux - Newbie 9 08-22-2005 12:30 AM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration