LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-29-2012, 09:35 AM   #1
LQ Newbie
Registered: Dec 2007
Location: milan
Posts: 10

Rep: Reputation: 0
Linux fedora version 17 - 64 bit

HI all

I just installed in virtual machine on my pc laptop asus with 4gb., a OS fedora (last version) downloaded by the website fedoraproject
the installation went good and i can use my OS fedora *(in virtual, though)
I wanted to start to try the basic linux commands, as I am totally newbie with linux, and i wanted to type su in terminal *loaded pressing alt+f2
the session opened i got the blank terminal
i wrote "su" and the terminal closed and reapper the normal desktop of fedora. I have tried also basic commands as pwd and last, and happne the same.
my question is. how to verify what is the account i have, in fedora? user and administRator, and how to enter as administrator in terminaL? is correct typing Su only, without anything else?
thanks in avance

Last edited by redlynch; 12-29-2012 at 09:37 AM.
Old 12-29-2012, 10:20 AM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 16,589

Rep: Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375
in fedora ,like most linux distros, you can NOT boot into the "root" account in the GUI
that was disabled

it is VERY unwise to run the GUI as root using the root account

Now you can boot into the root account in the TEXT only ( run level 3 )
-- no GUI just the terminal .

for the terminal session you will need to use one of the two "su" and "su -"
the two are different

In the terminal a normal user will have a >
and root will have a #

"12345678@linux-user:~> " --- normal user
"linux-user:~ # " ---- this is the root user ( you can also hack the os to make the root account text a different color )

as for commands
a bit old but it has not changed
general things

and then the fedoraforum
and set up guides
Old 12-29-2012, 11:57 AM   #3
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,030

Rep: Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170Reputation: 1170
If you use a virtual terminal, like Alt+F2, it should ask you to log in: you do so with your normal name and password. If it's just giving a blank screen, that's a new one on me. But you don't need a virtual terminal: use the terminal emulator (in the System tools menu).

As John says, only use su when it's absolutely necessary: if you make a mistake, anything could happen. Do not try this at home:
rm -fr / unwanted-folder
The space accidentally inserted after "/" would cause it to be interpreted as
rm -fr /
deleting the entire current directory!

When you've finished with being administrator, press Ctrl+d to go back to being yourself.
Old 12-29-2012, 12:17 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Posts: 16,589

Rep: Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375Reputation: 2375
DO NOT RUN THIS !!!!!!!!
-- very bad things will happen

rm -fr /
that is the FORCED removal of ALL files , that is until the system crashes

but it is rather easy to make a normal everyday typo
by accidentally putting a blank space in front of the folder name

( root is ALL powerful and with that comes the FULL responsibility )

Last edited by John VV; 12-29-2012 at 12:20 PM. Reason: -- fixed typo -- SEE
Old 12-29-2012, 01:21 PM   #5
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,221

Rep: Reputation: 1098Reputation: 1098Reputation: 1098Reputation: 1098Reputation: 1098Reputation: 1098Reputation: 1098Reputation: 1098
To identify your current id... use "id".

This will list out the current UID, gid, list of groups, and depending on your distribution, the security context you are currently using.
Old 12-29-2012, 01:34 PM   #6
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
few things of note.

1. you are running in a VM, you may not have full access to all of the virtual terminals like you would in a real system.

2. ctrl+alt+F1-6 prob. will not function in the VM as that command will be captured by the host OS, not the VM.

3. easiest way to get to the CLI is to run the terminal via the GUI and then you can su, or su - to gain root access:

3a. put the mouse in the top left corner of the screen, as if you did a default install you will be running Gnome for the desktop.
3b. along the left hand side of the screen you will see a row of 3x3 boxes. click that.
3c. this will cause a bunch of icons to show in the screen. scroll down until you see a black window called Terminal. click that.
3d. you will then be presented with a white box and a $ prompt. Now you can type in basic linux commands and if you need root access to run yum or some other administrative tool you can su - at this point.

Note on step 3b, you will also see a dialog bar you can type in, you can just type terminal there and it should pop up visible to click.

As others have noted running as root is not a good idea in Linux. The ONLY time you should be root is if you are performing administrative tasks, like I mentioned above yum, or adding hardware like a printer to the system, etc...

hope that helps.
Old 12-30-2012, 11:24 AM   #7
LQ Newbie
Registered: Dec 2007
Location: milan
Posts: 10

Original Poster
Rep: Reputation: 0

Hi , thanks to everyone for the reply. I appreciated.
I will avoid su unless very necessary ( install printers etc e.g) and i found the terminal session icon in applications. i am very a new starter...all good to me to kickstart using fedora, it seems so cool!
i will try other 2 or 3 Distro OS *ubuntu, mint, opensuse i thought * in virtual, and maybe the next one will be my first linux main OS


command, fedora 17

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
[SOLVED] Fedora version i686 for 32 bit pcs does not work silvyus_06 Fedora 8 12-26-2010 11:36 AM
version 6 Fedora: bad multi-tasking in standard, 64-bit buggy Timmi Linux Mint 12 04-10-2009 04:29 PM
Which version of linux 32 or 64 bit NEVICA Linux - Newbie 17 08-04-2008 05:11 AM
LXer: Upgrade from 32-bit to 64-bit Fedora Linux without a system reinstall LXer Syndicated Linux News 0 01-11-2008 09:42 PM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 05:50 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration