no root term after upgrade deb 9-10

Kernels & Hardware, configuring network, installing services

no root term after upgrade deb 9-10

Postby dblake2 » 2019-07-31 20:43

i upgraded from debian 9 to 10 & now get error msg when try to run root terminal, ie:
"failed to run /usr/bin/xterminal emulator as user root"
"unable to copy the users Xauthorization file"
i am in the sudoers list.
any ideas/hints?
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Re: no root term after upgrade deb 9-10

Postby L_V » 2019-07-31 21:53

Open a terminal, as user, and launch this
Code: Select all
sudo su
any problem ?
L_V
 
Posts: 1035
Joined: 2007-03-19 09:04

Re: no root term after upgrade deb 9-10

Postby dblake2 » 2019-08-01 00:05

i get the normal prompt for user pw & am able to log on as root.
if i then try & open a root terminal it fails & i get the same error msg.
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Re: no root term after upgrade deb 9-10

Postby Segfault » 2019-08-01 00:09

L_V wrote:Open a terminal, as user, and launch this
Code: Select all
sudo su
any problem ?

Bad command, use 'sudo -i' when you want to become root.
Segfault
 
Posts: 895
Joined: 2005-09-24 12:24

Re: no root term after upgrade deb 9-10

Postby dblake2 » 2019-08-01 01:09

ill try sudo -i but thats not the problem.
the root terminal icon itself is unusable. normally it just asks for the root pw & your off & running
this one gives the error msg- maybe i have to configure the root terminal itself?
i have deb 9 on this computer, on another partition, (used to be deb 8) & it works normally-haven't run into this b4.
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Re: no root term after upgrade deb 9-10

Postby L_V » 2019-08-01 05:53

Segfault wrote:Bad command, use 'sudo -i' when you want to become root.

What ? What ? Always used 'sudo su' for years without any problem. If you don't explain why you think it is "bad", I miss the point.

'sudo su' - it is a login shell, so /etc/profile, .profile and .bashrc are executed and you will find yourself in root's home directory with root's environment.

'sudo -i' - It is nearly the same as sudo su - The -i (simulate initial login) option runs the shell specified by the password database entry of the target user as a login shell. This means that login-specific resource files such as .profile, .bashrc or .login will be read and executed by the shell.

Then 'sudo su' is really not the point.

dblake2 wrote:ill try sudo -i but thats not the problem.
the root terminal icon itself is unusable..

This is totally unclear.
You open a terminal as user.
You type 'sudo su' or 'sudo -i' for those you prefer for some reason, or "su -" if not a sudoers.
Absolutely no icon will change anywhere.
Just the prompt will change because you enter a root session.

You then make something wrong somewhere, or something you should not do anymore.
Last edited by L_V on 2019-08-01 06:30, edited 1 time in total.
L_V
 
Posts: 1035
Joined: 2007-03-19 09:04

Re: no root term after upgrade deb 9-10

Postby Dai_trying » 2019-08-01 06:25

I think you should look at the properties of the .desktop file for the "root terminal" icon, I think some desktops might offer this but not one that I am currently using so I cannot check myself, what desktop are you using?
Dai_trying
 
Posts: 707
Joined: 2016-01-07 12:25

Re: no root term after upgrade deb 9-10

Postby Segfault » 2019-08-01 11:36

What ? What ? Always used 'sudo su' for years without any problem.

First, this command comes from noobs who share their "knowledge" on the net. From people who neglect to read manuals.
So what does 'sudo su' do. It runs root shell in your home directory. Educated people use "sudo -s" in case they want root shell in users home. However, root shell in users home is bad habit. It can overwrite user [config] files and render them unwritable for user. Depends of course on what you are doing. People who run 'sudo su' clearly do not know what they are doing.
I knew someone who drove drunk every day over decades "without any problem". Then one day it ended in tears. The argument "I've done it and nothing happened" is the most idiotic argument ever.
Segfault
 
Posts: 895
Joined: 2005-09-24 12:24

Re: no root term after upgrade deb 9-10

Postby L_V » 2019-08-01 11:50

@Segfault
You should open a dedicated thread to explain in detail why you think that "su" is so less dangerous than "sudo su".
Or if su", or "sudo su" are dangerous, and yes there are, or course, how do you pass an administration command like tune2fs for example.
Keep in mind there is a tremendous difference between one guy managing his laptotp, and a server connected to 200 users.

And this is absolutely not the point of dblake2 here.
L_V
 
Posts: 1035
Joined: 2007-03-19 09:04

Re: no root term after upgrade deb 9-10

Postby dblake2 » 2019-08-01 18:58

not to interrupt the argument but i got around the problem by logging in with xfce desktop rather than gnome.
now that i think about it i recall having problems with root & gnome b4.
gnome seems especially picky about root logins/usage.
i might look into it later-if there's a root term on the menu it should be usable-setting is wrong somewhere.
i did note the xfce 'root terminal' on the system menu logs in with reg user pw though.
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Re: no root term after upgrade deb 9-10

Postby cuckooflew » 2019-08-01 20:50

I noticed that in your first post, it was clear you could not open the terminal, and kind of figured it was Gnome all though you had not told anyone, good to see it works ok with Xfce,
I don't know what to say about fixing Gnome, have never used it myself, and my grandfather hated it , so he never installed it on any of the computers in our home.
As far as the suggestion about using
Code: Select all
sudo su
that is just silly, I think the person that suggested that must have just been kidding with you, I mean if you think about it , sudo gives you root privledges, as a user,in your username,..'su' is used to login as root, any user that has the root password can become root, either way, the objective is to get root privlidges, so what is the point in repeating the command, ? I am not very advanced myself, and do not have much experience , but I can not understand what someone thinks they would gain by using 'sudo su' either command is fine, but no need to use both. Now on Debian 10 'su -' is needed, and you need to 'cd' to the directory you want to work in.
You need to be carefull on forums, there are a lot of clowns that will tell you anything,and often no one notices, it is a good practice to read the manual as well, and confirm if the command and options shown are really what you want to do. Using 'sudo su' is not dangerous, it wont hurt anything, but it is just silly . Any way, this morning I was looking for more about the problem on Gnome, and saw a few bug reports, but on Ubuntu, you might find some more information if you look for it.
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 42
Joined: 2018-05-10 19:34
Location: Some where out west

Re: no root term after upgrade deb 9-10

Postby dblake2 » 2019-08-01 22:41

yeah, i agree with your grandfather.
this was an upgrade from deb9 & both gnome & xfce carried over. thankfully xfce is the default.
i did find out how to login to a session with gnome,by googling, but that didn't affect the original problem with the root terminal if i'm logged in as reg user.
back to google, i guess.
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Re: no root term after upgrade deb 9-10

Postby Dai_trying » 2019-08-02 06:48

Did you have a look to see how the root terminal is being launched by the "root terminal icon"?
It should have a .desktop file with a command in the "Exec" line.
Dai_trying
 
Posts: 707
Joined: 2016-01-07 12:25

Re: no root term after upgrade deb 9-10

Postby Head_on_a_Stick » 2019-08-02 14:37

dblake2 wrote:gnome seems especially picky about root logins/usage

The GNOME desktop in buster uses Wayland by default and that will not allow GUI applications to run as root, which is entirely sane behaviour and should be regarded as a feature rather than a bug.

If you are foolish enough to want to run the entire terminal emulator as root rather than just the shell then use the X-based GNOME session instead.

cuckooflew wrote:Using 'sudo su' is not dangerous, it wont hurt anything, but it is just silly

+1
User avatar
Head_on_a_Stick
 
Posts: 10321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: no root term after upgrade deb 9-10

Postby dblake2 » 2019-08-04 18:42

Are you saying there should be no root terminal icon in buster (monitor icon on activities menu with magenta/purple face that sez 'root terminal')?

after googling .Xauthority & xauth it would be easier to just delete it than try & fix it.

But curious as to what it's doing there in the first place if it's not usable (it is usable in my debian 9 tho I note there's no .Xauthority, instead an .ICEauthority).

I did try creating the missing ~/.Xauthority file with 'touch' & copying 'gksu.desktop' over from debian 9 then rebooting but .Xauthority still remained empty-though it did get rid of error msgs & present the usual login box when I tried to run the root terminal-could not enter pw though.
Last edited by dblake2 on 2019-08-04 20:15, edited 3 times in total.
dblake2
 
Posts: 77
Joined: 2008-10-09 01:42

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable