Login as root [SOLVED]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Login as root [SOLVED]
I realize this is a really stupid question, but how does one login as root in a terminal? I tried "su - root" and "su -l root" and entered my password, but it just comes back with Authentication failure. Something I'm unaccustomed to with Linux Mint is using my own password when it prompts for a root password, such as bringing up Synaptic. At no point have I ever been prompted to create a separate root password, so I do find that confusing after using PCLOS for so many years.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Login as root
Hello cgiefer,
Mint uses sudo instead of su to gain root privileges. so the syntax would be
one of the differences in between the two is that with sudo privilege is only give temporarily and it reverses to standard user when program is finished.
For instance say you wanted to elevate privilege to install a program
Note: you should use gksu or gksudo if your running a program already installed such as
Hope this helps.
Mint uses sudo instead of su to gain root privileges. so the syntax would be
Code: Select all
sudo <nameofprogram or file you need access to.>
For instance say you wanted to elevate privilege to install a program
Code: Select all
sudo apt install <package name>
Code: Select all
gksu xed
Last edited by kc1di on Wed Feb 21, 2018 12:21 pm, edited 2 times in total.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Re: Login as root
Yes, it definitely helps! Thank you, kc1di, much appreciated. I didn't realize how sudo was used, but now I get it.
Re: Login as root [SOLVED]
Also note though that of course a shell is one of the programs you can open with elevated privileges:
sudo -i
will get you a root shell.Re: Login as root
Close but no cigar. You should always use gksu or gksudo if you are running a program with a graphical GUI, such askc1di wrote: ⤴Wed Feb 21, 2018 10:00 am Note: you should use gksu or gksudo if your running a program already installed such asCode: Select all
gksu xed
Code: Select all
gksu xed
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: Login as root [SOLVED]
Thanks for the clarification Moem
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Re: Login as root [SOLVED]
kc1di, you're welcome! The more you know, right?
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!