LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2008, 08:58 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
unable to resolve hostname


for some reason I am unable to do anything that requires sudo, as my computer is unable to resolve my host name. one thread said to change hostname to localhost, but that requires sudo, which does not work...

any idea what to do?
 
Old 04-30-2008, 10:17 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
As I understand Ubuntu's way of allowing sudo, a user must have 'administrative rights' for sudo to work.

I don't know who set the system up, but you may need to talk to an administrator to get the privileges. If you installed it yourself, then you have several choices.

It is possible to enable the root login in Ubuntu. It is not recommended on their web site however. If you are the only user of the system, then that may not be a bad idea.

You can create a new account with Admin privilges, and then use sudo.

Here is a link to help you out.

https://help.ubuntu.com/community/RootSudo
 
Old 04-30-2008, 10:58 AM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
I installed the system, and should thus have the right permissions, being the only user configured.

the problem is that sudo itself does not work, I do not get a message telling me that I lack permissions. if I could just get root permissions once, I could reset the hostname, and hopefully fix the problem.

Last edited by edgjerp; 04-30-2008 at 10:59 AM.
 
Old 04-30-2008, 11:18 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Select "Rescue mode" AKA "Single user mode" from the grub boot menu.
You will be logged into a terminal as root.
Edit your hosthame.
Reboot with:
shutdown -r now
 
Old 04-30-2008, 11:42 AM   #5
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
thanks, that worked
 
Old 04-30-2008, 05:28 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
thanks, that worked
Excellent.
And thanks for the follow-up.
 
  


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
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
Unable to resolve hostname / IP assigned by DHCP server. rmvinodh123 Linux - Networking 1 10-15-2007 07:00 AM
Resolve hostname from IP cornish Linux - Networking 10 10-10-2007 10:21 AM
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 02:08 AM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 PM.

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