billy@wickedpuppy:/boot$ hostname --long<br>
localhost.localdomain<br>
<br>
thats the result of my hostname --long ... :P<br>
<br>
regards<br>
billy<br><br><div><span class="gmail_quote">On 9/9/05, <b class="gmail_sendername">Alexander Botero</b> <<a href="mailto:alex.botero@gmail.com">alex.botero@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div><span class="e" id="q_10637ac41bd964c6_1"><br>
<br>
A possible diagnostic on the 'sudo' problem.<br>
<br>
The Debian's (and Ubuntu's) version of 'sudo' terminates straight after
it has checked and failed to retrieve this machine's *long*
hostname (long hostname is also also called FQDN (Fully
Qualified Domain or Host Name)). <br>
<br>
NOTE: YOU MUST ENABLE ROOT PASSWORD BEFORE TRYING THESE TESTS.<br>
Make a test:<br>
<br>
a) Get current hostname of this PC (it's a short hostname)<br>
$ hostname <br>
084202074190 <br>
<br>
The name "084202074190" is OK. It is retrieved and set by dhcp
(dhclient) via /etc/resolv.conf and other normal network settings (what
I know). And sudo (sudo.c) gets it by gethostname(....) call.<br>
------------------------------
<div><br>
b) Get current long hostname of this PC (also called FQDN)<br>
$ hostname --fqdn<br>
hostname: Unknown host <-------------- Oops, It failed!<br>
<br>
(You can also say: "hostname --long")<br>
<br>
The Ubuntus version of sudo just prints an error message and terminates after it has failed on this check !<br>
It should'n be so rigid.<br>
---------------------------------<br>
<br>
How to fix it??<br>
<br>
Set a proper (long) hostname manually. Like this <br>
$ su -c "hostname <a href="http://my.own.hostname.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">my.own.hostname.com</a>"<br>
<br>
( or: sudo hostname <a href="http://my.own.hostname.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">my.own.hostname.com</a> )<br>
<br>
Check it:<br>
$ hostname --long<br>
<a href="http://my.own.hostname.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">my.own.hostname.com</a><br>
<br>
The original sudo command in Ubuntu Colony 4.<br>
$ sudo <br>
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]<br>
{ -e file [...] | -i | -s | <command> }<br>
<br>
IT WORKS NOW.<br>
---------------------------------------------------------------------<br>
<br>
But do not try <br>
$ su -c "hostname <a href="http://my.own.hostname.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">my.own.hostname.org</a>"<br>
<br>
Ubuntu's sudo command SUCKS a lot !!<br></div>
<br>
<br><br></span></div><div><div><span class="e" id="q_10637ac41bd964c6_3"><span class="gmail_quote">On 9/8/05, <b class="gmail_sendername">billy am</b> <<a href="mailto:wickedpuppy@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
wickedpuppy@gmail.com</a>> wrote:</span></span></div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi ... my md5 sum of sudo matches yours yet it works .... know why?<br>
<br>
regards<br>
billy<br></blockquote></span></div><br>
<br>--<br>ubuntu-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel" target="_blank">
http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Deep down , everyone wants to be loved.<br> Annon
<br>Let him who would move the world, first move himself <br> Socrates<br><a href="http://Linuxasia.org">Linuxasia.org</a> - Latest Linux News From Around The Region.
<br><br>To remain as I am is impossible , I must die or be better. <br> Abraham
Lincoln
<br>