Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
p.
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 )
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.
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...
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
bye
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.