Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
04-03-2020, 02:09 PM
|
#31
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
What is the exact error message from running the following manually?
Code:
/usr/bin/sudo -i /bin/sh
|
|
|
04-23-2020, 12:19 PM
|
#32
|
Member
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796
Original Poster
Rep: 
|
Quote:
Originally Posted by Turbocapitalist
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
|
|
|
04-23-2020, 01:12 PM
|
#33
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
Quote:
Originally Posted by TBotNik
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.
|
|
|
04-24-2020, 05:42 PM
|
#34
|
Member
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796
Original Poster
Rep: 
|
Quote:
Originally Posted by Turbocapitalist
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
|
|
|
04-25-2020, 02:26 AM
|
#35
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
Quote:
Originally Posted by TBotNik
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.
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.
|
|
|
04-27-2020, 10:13 PM
|
#36
|
Member
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796
Original Poster
Rep: 
|
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
|
|
|
04-28-2020, 12:23 AM
|
#37
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
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.
|
|
|
05-03-2020, 11:52 AM
|
#38
|
Member
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 12:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|