LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,828

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
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
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration