LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 12-05-2018, 07:58 PM   #1
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Rep: Reputation: 21
Root Terminal


How do I open a root terminal. mint 18.0 Cinnamon. I created a unix root password:
$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

sudo root
sudo: root: command not found
$ root
The program 'root' is currently not installed. You can install it by typing:
sudo apt install root-system-bin

I have not installed the above is the above correct? It will create a root terminal?

Last edited by borgward; 12-06-2018 at 07:50 AM. Reason: Solved
 
Old 12-05-2018, 08:07 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,337
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
"Root" is a user or a directory, but it's not a command.

Try

Code:
sudo [name of terminal emulator]
Since you have created a root password, you could also open a terminal as user, then run the command su and enter the root password when prompted to become root without having to repeatedly enter sudo. You can leave "su" status with the command "exit." See man su for more.

Last edited by frankbell; 12-05-2018 at 08:08 PM.
 
Old 12-05-2018, 08:11 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
If you want to run your terminal as the root user just open your terminal and use sudo <name of command>.

Mint comes with a package manager to take care of things that are required by elevated privileges for administrative tasks.

Why do you need a root terminal?
 
Old 12-06-2018, 03:55 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You did not need to give root a password as described in your opening post. Although this can be done, it is usually inadvisable to do so as it can cause confusion for an inexperienced user. I would suggest that you return the root password to the Mint/Ubuntu default (locked and passwordless) with the two following commands:

Code:
sudo passwd -d root

sudo passwd -l root
To open a terminal as root in Mint Cinnamon, simply enter the following command on the terminal (using your normal user password when requested):
Code:
sudo gnome-terminal
Remember to be careful what you're doing in that terminal as every single command will have root privileges. You should provide a response to Ztoracat's question as to why you need to run a terminal as root - normally you just issue sudo for any root privilege commands you want to run.
 
1 members found this post helpful.
Old 12-06-2018, 07:49 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you can title your terminal as well, most all of them, if not all of them have a means to control this via cli execution type settings etc..

If you did not already know this. Some have a preference setting to control colours and such as well.

Code:
xterm -geometry 80x35 -sb -fg white -bg grey20 -T 'Xterm: User' &
xterm -geometry 80x35 -sb -fg snow -bg midnightblue -T 'Xterm: Root'  &
//to trun the last one into root user at start up.
//Just add the sudo as told about.
sudo xterm -geometry 80x35 -sb -fg snow -bg midnightblue -T 'Xterm: Root'  &
as well as, as mentioned, having one open as root, one needs to keep an eye on it if more than one terminal is opened, so as to not get confused while typing in them and using the wrong one, that maybe where the colours can come in, setting root terminal a specif colour to indicate it is a root privileged terminal if the pound sign # isn't enough when quickly accessing the terminal(s) to bang out some commands.


if you just need root privs in a term, then use sudo, or su, or su - , and some distros maybe still using 'sudo su' in a terminal. Those were the ones that did not give root user , or rather try to hide it away from the person installing , and most likely using the OS.

In order to become an experienced user, one needs to expose themselves to the conditions to become one, which is not by trying to hide root user 'dude', and not tie the apron sting back on.

Last edited by BW-userx; 12-06-2018 at 08:04 AM.
 
Old 12-06-2018, 07:57 AM   #6
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
[QUOTE=hydrurga;5933942] I would suggest that you return the root password to the Mint/Ubuntu default (locked and passwordless) with the two following commands:

Code:
sudo passwd -d root

sudo passwd -l root
[QUOTE=hydrurga;5933942]To open a terminal as root in Mint Cinnamon, simply enter the following command on the terminal (using your normal user password when requested):
Code:
sudo gnome-terminal
Good answer. Not to worry, I was doing this on an extra computer that I use for experiments. Not much on it. I can reinstall if I break anything. It seems like there used to be an option to open terminal as root. Maybe that was on the live disc.
 
Old 12-06-2018, 08:13 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by borgward View Post
Good answer. Not to worry, I was doing this on an extra computer that I use for experiments. Not much on it. I can reinstall if I break anything. It seems like there used to be an option to open terminal as root. Maybe that was on the live disc.
No problem, Borgward. What I've done on my system is create a couple of launchers (which I've placed in my Cairo Dock but they could be placed on the desktop) which open the terminal and the file manager as root, respectively. I hardly ever need to use them but they come in handy if I have to do a protracted session of activities as root.

Just for info, the commands that I use in these Cairo launchers (on my Mint 19 MATE system) are:

Code:
lxqt-sudo mate-terminal
Code:
su-to-root -X -c caja
The first one may appear strange, but gksudo no longer exists in Mint 19/Ubuntu 18.04 (due to a move to pkexec). However, lxqt-sudo is still kicking around the repos and does the trick nicely. Actually the second one may also appear strange but Cairo can be a bit fussy sometimes and I played around until I found variations that did what I wanted to do.
 
1 members found this post helpful.
Old 12-06-2018, 08:46 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The two most viable options are to either stick with sudo(8) or enable the root account and use su(1) to gain root privileges. There is also nothing to prevent you from using a combination of both.

All other options will involve launching X11 applications as root, which is as a rule bad practice and in almost all cases completely unnecessary. Running any X11 file managers as root is a particularly bad idea.
 
  


Reply



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] How does let user's terminal like root's terminal feixiangdezhu Slackware 4 02-16-2017 10:15 PM
how can i write to a root:root 750 file with a non-root user? Droa Linux - Newbie 1 05-14-2012 07:49 PM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

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

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