LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
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
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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 jessie/sid; OpenSuSE; Fedora
Posts: 1,591

Rep: Reputation: 162Reputation: 162
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
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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.
 
Old 04-09-2013, 02:10 PM   #12
YogX
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
hi every1,
facing a sort of same issue here on F13...by pressing ctrl+alt+f2 m able to go on to CLI and there login with root....but after that not able to create new user using useradd...

i tried this -->

useradd XYZ

this creates new user XYZ but when i again try logging into with XYZ without any password it gives me authentication failed error...

please help...
THAK YOU
 
Old 04-09-2013, 02:19 PM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

login as root again and give the user a passwd
Code:
passwd username
enter the passwd hit enter re enter passwd

FYI fedora13 is old why not use 18 and start again

Last edited by spiky0011; 04-09-2013 at 02:20 PM.
 
Old 04-09-2013, 03:29 PM   #14
John VV
Guru
 
Registered: Aug 2005
Posts: 12,836

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
as i recall with fedora 9 the fedora devs went from the warning in fedora 8 and locked OUT root gui login in 9 and newer

unless you use the VERY NOT recommended "pam hack"
you do not login as root into the gui


if you used the pam hack this might be one of the " untended consequences"


as a normal user
use the gui under system / administration / users and groups

it will ask for the root password

Also fedora 13 is long dead
it went End of Life back in "2011-06-04"
June of 2011

it has NOT had any security updates in almost two years

Please stay current and install Fedora 18
 
  


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


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:53 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 Google+: linuxquestions
Open Source Consulting | Domain Registration