LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create user from command line interface fedora 12 (http://www.linuxquestions.org/questions/linux-newbie-8/create-user-from-command-line-interface-fedora-12-a-798357/)

janeybaby 03-27-2010 11:03 PM

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.

sycamorex 03-27-2010 11:13 PM

Quote:

Originally Posted by janeybaby (Post 3915018)
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.

AwesomeMachine 03-27-2010 11:14 PM

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

sycamorex 03-27-2010 11:21 PM

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.

janeybaby 03-27-2010 11:27 PM

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.

sycamorex 03-27-2010 11:37 PM

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.

janeybaby 03-27-2010 11:56 PM

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....

sycamorex 03-27-2010 11:59 PM

Have you got any linux live CD?

janeybaby 03-28-2010 12:34 AM

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?

janeybaby 03-28-2010 03:53 AM

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?? :-(

unix.fresher 03-28-2010 04:13 AM

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.
:)

YogX 04-09-2013 02:10 PM

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

spiky0011 04-09-2013 02:19 PM

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

John VV 04-09-2013 03:29 PM

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


All times are GMT -5. The time now is 12:43 PM.