what's my login?

Posted on 1999-12-11
Medium Priority
Last Modified: 2013-12-15
Having installed Linux for the first time i have been prompted for a login. I know my password but don't remember being asked for a login name??
I can't even get started!

Garth Henriques
Question by:garth
  • 2
  • 2

Expert Comment

ID: 2273942
Start by logging in as root.  "root" is the superuser, system administrator, whatever.

Then add ordinary users, including yourself. (You only want to use the root account for maintenance).  You can trash the system in a heartbeat because root has access to everything.

I don't know what version of Linux you are using, but after logging in as root, you should be able to type the command "useradd" or "adduser"  -- give yourself an account name, like garth. Then enter passwd to set your account password.  That is not a typo, the command is passwd, not password.

Don't be alarmed that you can't see the password as you type it: that's normal and proper.

Depending on the distribution of Linux you have, there may or may not be any further permissions to set.  But, this will get you started.

Accepted Solution

tq3407 earned 200 total points
ID: 2274501
When you were installing your Linux onto your computer, you were asked for a password.  If it did not ask you to put in an non-privilaged user, then your password is for the root or super-user.  Whrn your linux boots and your at the login screen for the login prompt type root and hit enter then it will ask you for the password. Type in the password that you entered when you installed the distribution.  This should log you in. then you can use the commands that the other person above gave you. those commands will create a unprivilaged user for your system.

Author Comment

ID: 2274762
Great, I have got passed that problem, now it just gives me the following:

[root@localhost.root]# and won't let me in. I have tried reinstalling several times now and can't see where I am going wrong?

Expert Comment

ID: 2274828
There are subtle differences between distros. Suggest you add a comment, or repost -- this time be specific as to what version of linux you are running.

Are you certain that the command line is "root@localhost.root"?  The "#" symbol indicates that you have, in fact logged in successfully as root; that you are in a shell, and that the computer is ready to go. Try "cd /" (leave off the quotation marks) and see what happens. Then try to run "adduser bob" or whatever. If you have gotten that far, it may be working and you just don't realize it! (BTDT)

Expert Comment

ID: 2275551
If you were looking for the grahpical environment, at the [root@localhost.root]# prompt, type startx.  this will only work if you have set up X.  Most distributions ask you this when you set up the Linux.  The things that it should have asked you was what type of monitor do you have?,What type of video card do you have?,etc.  If youdidn't set this up in the begining, at the prompt you can type Xconfigurator and set up X/

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Virtualization software lets you run different versions of Windows, Ubuntu Linux and other versions of Linux all at the same time, rather than running each one directly from your computer's hard drive.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month7 days, 11 hours left to enroll

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question