LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-03-2020, 02:09 PM   #31
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722

What is the exact error message from running the following manually?

Code:
/usr/bin/sudo -i /bin/sh
 
Old 04-23-2020, 12:19 PM   #32
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
What is the exact error message from running the following manually?

Code:
/usr/bin/sudo -i /bin/sh
Turbocapitalist,

Error is:
Quote:
sudo: unable to resolve host (none)
Cheers!

TBNK
 
Old 04-23-2020, 01:12 PM   #33
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by TBotNik View Post
sudo: unable to resolve host (none)
That means the error is with the configuration of sudo and not with konsole. Re-check your settings in /etc/sudoers and make sure you can run the above command manually before retrying with the terminal emulator.
 
Old 04-24-2020, 05:42 PM   #34
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
That means the error is with the configuration of sudo and not with konsole. Re-check your settings in /etc/sudoers and make sure you can run the above command manually before retrying with the terminal emulator.
Turbocapitalist,

What am I looking for in /etc/sudoers?

Cheers!

TBNK
 
Old 04-25-2020, 02:26 AM   #35
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by TBotNik View Post
What am I looking for in /etc/sudoers?
You are looking for an error there. :/ Take a look at the output using the -l option.

Code:
sudo -l
It should list what you have available for that host. If that does not give a clue then look at /etc/sudoers itself.

Code:
sudo more /etc/sudoers
And pay attention to the parts you yourself have changed. Most distros seem not to be setup for resolving the host names properly, so you may have to have it ignore the host name. There are not too many use-cases for small-office-home-office situations where it would be useful anyway.
 
Old 04-27-2020, 10:13 PM   #36
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Turbocapitalist,

I never modify this file, so don't understand why it should error. Is the error msg saying my hostname is missing or invalid? I typed in the cmd: "hostname" and the return was "(none)". But I checked the /etc/hosts file and the hostname is set to "Aspire-LT" at 127.0.1.1

Doesn't the /etc/sudoers file read this /etc/hosts file?

Cheers!

TBNK
 
Old 04-28-2020, 12:23 AM   #37
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
No, I don't think it does read /etc/hosts. I am somewhat sure that sudo uses the same source as the hostname utility does.

I would recommend starting a new thread about the sudo problem and then returning to this thread when that is resolved. People more familiar with sudo will see the new thread even if they have ignored this one about konsole.
 
Old 05-03-2020, 11:52 AM   #38
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Turbocapitalist,

OK opened the new thread at:

Hope I explained it right!

Cheers!

TBNK

Last edited by TBotNik; 05-08-2020 at 08:53 PM.
 
  


Reply

Tags
bash, konsole



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
vfork - suspends the calling process or the calling thread? zmau Linux - Software 3 04-21-2015 02:38 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Konsole always give SuperUser Konsole - can't get regular shell checkmate3001 Linux - Desktop 3 08-05-2008 10:00 AM
konsole acts as "Root Konsole" ab44045 Linux - General 11 06-11-2007 05:18 PM
odd recursion: calling "by hand" vs calling by cronscript... prx Programming 4 02-12-2005 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:09 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