/srv/irclogs.ubuntu.com/2006/08/12/#ubuntu-server.txt

=== zenrox [n=zenrox@pool-71-120-239-162.spknwa.dsl-w.verizon.net] has joined #ubuntu-server
=== ag[1] [n=ag@71.194.133.215] has joined #ubuntu-server
ag[1] hi06:01
ag[1] can i get help?06:01
ag[1] i'm trying to make hostname and hostname -f to be the same, so i edit /etc/hosts   (line 1) 127.0.0.1 localhost.localdomain localhost (line 2) 192.168.2.110 ahazg.pc                  but it doesnt work when i type hostname i get ahazg and for hostname -f i get ahazg.pc    i want both to be ahazg.pc06:02
infinityYou don't want that.06:06
infinityhostname is MEANT to be only the first part of the FQDN.06:06
infinity(base)adconrad@cthulhu:~$ hostname06:06
infinitycthulhu06:06
infinity(base)adconrad@cthulhu:~$ hostname -f06:06
infinitycthulhu.0c3.net06:06
ag[1] ok thanks06:11
=== ag[1] [n=ag@71.194.133.215] has joined #ubuntu-server
ag[1] infinity,  y wouldnt it be good06:13
infinityag[1] : Let me reverse the question -- Why do you want it to violate spec and the expectation of every piece of UNIX software ever written?06:14
ag[1] sorry, i am kind of new to the world of unix06:15
infinityAnyhow, if you're insistent on breaking it, you can set a FQDN in /etc/hostname, which will set your hostname on boot to be what you want.06:16
infinityBut I highly recommend looking at WHY you want it to do that, and figuring out how to avoid it. :)06:16
ag[1] im basically following this guide 06:17
ag[1] http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p306:17
ag[1] Now run06:17
ag[1] hostname06:17
ag[1] hostname -f06:17
ag[1] Both should show server1.example.com. 06:17
ag[1] thats from the site06:17
infinityRight, whoever wrote that shouldn't have. :)06:18
infinityThey shouldn't have written most of it, to be honest.06:18
infinityEncouraging people to enable to root account isn't helpful either.06:18
infinityOr encouraging them to install random software they don't need.06:19
infinityThis HOWTO's just filled with uselessness.06:19
ag[1] then how would you be able to perform commands like apt-get without root06:19
infinityIt's more like this guy's notes on how HE likes to setup HIS machine, but it seems useless to post it publically for others to follow.06:19
infinity"sudo apt-get install foo"06:20
infinityOr if you want to become root for an extended period "sudo su -"06:20
ag[1] i just use "su"06:20
ag[1] is that the same thing06:20
infinityYes, I know.  I read the HOWTO. :P06:21
ag[1] ok06:21
infinityUsing "su" means that you've set a root password.06:21
ag[1] i shouldn't have done that?06:21
infinityWhich means you now get to deal with making sure daemons don't allow root authentication and other such, making it easier for people to brute-force root.06:21
infinityIt also means that you're far more likely to keep open a root shell and do silly things with it.06:22
infinityWhile doing "sudo random-command" every time you want to run something is a subtle reminder that you might be breaking the world.06:22
ag[1] any way to undo what i did06:23
infinityBut, *shrug*... It's up to you.  We don't stop you from enabling root.  I just wish 3rd party documentation wouldn't TELL people to enable it as if you absolutely must do it.  Certainly not without first discussing the pros/cons.06:23
ag[1] i c ur point, its a security threat06:24
infinity"sudo passwd -d root" would delete root's password again.06:24
infinityThough that doesn't seem to return the shadow record to factory fresh.06:24
infinitySeems to do the trick anyway.06:25
ag[1] so r u implying that it would be better to do a reinstall of unbuntu server06:25
infinityNah.  Though, if you're just learning and breaking things anyway, you'll probably end up taking some notes, and reinstalling again in a day or two to make sure you understand what you've learned. :)06:26
infinityI don't think there's a single OS I've ever installed "just once" the first time I did it.06:26
ag[1] that was what i was going to do06:27
infinityAlso, word of advice.  If you don't want to drive people on technical IRC channels completely insane, try to avoid AOL/TXTisms like "i c ur point" and "r u implying"...06:28
infinityIt doesn't take much longer to type the whole word out, and we will be less likely to want to gouge our eyes out.06:28
ag[1] ok06:30
ag[1] ok now instead of using su i would use sudo [command]  right06:32
infinityRight.06:32
infinityhttps://help.ubuntu.com/community/RootSudo <-- Might be a good read.06:33
ag[1] Sudo is no different than gksu, right?06:35
infinitygksudo, even. :)06:35
infinity(gksu and gksudo are in the same package, mind you, but one behaves like su -- asking for the root password -- the other behaves like sudo, asking for your password and obeying /etc/sudoers)06:35
ag[1] I always use "gksu apt-get [command] " in Debain06:38
ag[1] linux is very hard06:41
=== ag[1] [n=ag@71.194.133.215] has left #ubuntu-server []
=== lbm [n=lbm@82.192.173.92] has joined #ubuntu-server
=== Baltazar^2 [n=WhyBothe@BSN-61-78-153.dsl.siol.net] has joined #ubuntu-server
=== Baltazar^2 [n=WhyBothe@BSN-61-78-153.dsl.siol.net] has left #ubuntu-server []
=== ivoks [n=ivoks@ubuntu/member/ivoks] has joined #ubuntu-server
=== Ries [n=Ries@200.63.220.5] has joined #ubuntu-server
=== tmarble [n=tmarble@user-0cdvpct.cable.mindspring.com] has joined #ubuntu-server
=== Ries [n=Ries@200.63.220.5] has joined #ubuntu-server
=== zenrox [n=zenrox@pool-71-120-239-162.spknwa.dsl-w.verizon.net] has joined #ubuntu-server
=== allee [n=ach@dialin-212-144-132-079.pools.arcor-ip.net] has joined #ubuntu-server
=== Valery [n=valery@217.196.165.225] has joined #ubuntu-server
=== Ries [n=Ries@200.63.220.5] has left #ubuntu-server []
=== Ries [n=Ries@200.63.220.5] has joined #ubuntu-server

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!