/srv/irclogs.ubuntu.com/2008/03/24/#ubuntu-server.txt

wantE17stylehello00:37
aetaricwantE17style: just ask them00:46
slideWhat is getty? Im trying to remove any un needed programs on my server and i have this running "/sbin/getty 38400 tty1"02:53
nawtyslide: http://www.google.co.uk/search?q=what+is+getty&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a02:57
nawtyslide: also, what version of ubuntu server are you running?02:57
slidei think the newest, my host just reinstalled for me so im not sure what they used02:58
slidegutsy02:58
slideaccording to apt sources heh02:59
nawtyslide: what does /etc/issue say?02:59
slideUbuntu 7.1002:59
nawtyslide: and you'll have to bear with me for a moment here, it's 3am, and my brain's slow :P03:00
slidehehe yea, brains slow here too.. family has been over alll day03:00
nawtyslide: dpkg -S /sbin/init03:00
nawtyslide: what does that return?03:01
nawtyslide: do you know what getty does yet?03:01
slidesysvinit: /sbin/init03:01
nawtyok, that's running the old (pre-upstart) init system.03:02
slideyea its something for termals dunno03:02
nawtyslide: so getty controls the login prompts you see on your ubuntu servers03:02
nawtyslide: alt-f1, alt-f2... etc...03:02
nawtytty0 is the first one, and tty1... etc... you get the idea no doubt.03:02
slideyea03:03
slideI guess thats the remove console that my host offers03:03
nawtyi'm assuming because this is a server you would like to have only the first terminal available, and remove the extras ?03:03
slideremove/remote03:03
nawtyslide: <editor-of-choice-here> /etc/inittab03:03
nawtygo down to the lines that have tty..etc...03:04
slide1:2345:respawn:/sbin/getty 38400 tty103:04
slidethats the only 103:04
nawtyare you sure?03:04
slideyea03:04
nawtyso in theory, you should have lines that look like this:03:05
nawty#2:23:respawn:/sbin/getty 38400 tty203:05
nawty#3:23:respawn:/sbin/getty 38400 tty303:05
nawty#4:23:respawn:/sbin/getty 38400 tty403:05
nawty#5:23:respawn:/sbin/getty 38400 tty503:05
nawty#6:23:respawn:/sbin/getty 38400 tty603:05
slideexactly03:05
nawtywell, without the #'s.03:05
slideno, with the #'s03:05
nawtywell, do you have lines that resemble that at all? and if so, do they have the #'s?03:06
slidei have exactly, the line i pasted and then the lines you pasted03:07
nawtyand, then when you do a ps afx you have only the one line ? or do you have all of the lines? (more than the tty1 line)03:07
slideonly the 1 line03:08
nawtyah, you could remove the tty0, but i would really suggest against it!03:08
slidei think the tty1 may be how my zen host has 'remote console' that i can see the system boot up with03:09
slidehrm03:09
slidemaybe not03:09
nawtybah, i'm an idiot, i mean to be talking about tty1, not tty003:10
slideyea i figured heh03:10
nawtyhehehe, yeah, you're right, tty1 is your 'console'03:10
nawtyI'm pretty sure you could remove such an evil process :P03:10
nawtybut i'd suggest against it.03:10
slideyea03:11
slideim not gonna ;)03:11
slidedo you know of any guides or anything to help me really secure my server?03:11
nawtyand on that bomb shell, i'm going to put my ass to bed.03:12
slidei got hacked recently and DONT want it to happen again03:12
nawtyslide: give me a second, i'll see if i can find you something03:12
slidethanks! :)03:12
nawtyslide: ah, so there's a few things you can do off the bat.03:12
nawtyslide: ssh no root logins, iptables unused incoming ports03:12
nawtyslide: daemons listening on localhost03:12
nawtyslide: do you run php of any flavour?03:12
slideyes03:12
nawtyslide: running hardened php03:13
nawtyslide: do you run it as the apache user?03:13
nawtyslide: if so, you should investigate running it as a su-php configuration03:14
slideapache runs as www03:14
nawtywww-data03:14
nawtythat's flavour dependant unfortunately03:14
slideno heh03:14
slidei changed it to www03:14
nawtywhich ever and all, no doubt you do mass virtual hosting of some sort or another ?03:15
slideyea03:16
nawtyslide: suphp + hardenedphp03:16
nawtyslide: and try get your users to have non-generic uid's03:17
nawtyslide: and, then that of course runs straight out the box from apt03:17
slidei have no real users03:17
nawtyslide: make sure your /tmp is mounted with noexec03:17
nawtyslide: i was more thinking create some at least semi-non-generic uid groups03:18
nawtyso for client x, all his sites get a uid, and then client y, all her sites get a uid03:18
nawtymore to avoid one clients bad code to be able to affect another users.03:18
nawtyif you're paranoid you can look at something like portsentry03:18
nawty8.04 is going to include apparmour03:19
slidecool cool :)03:19
nawtyslide: unfortunately, i can't be of much help right this second.03:21
slidethats cool03:21
slidego to sleep03:21
slidehehe03:21
nawtyslide: heheh, remind me in about 12 hours and i'll give you a run down of exactly what i've done to some of my mass virtual hosting boxen to avoid them getting hacked03:22
slidesweet!03:22
slidethanks :)03:22
nawtyslide: i've had a total of 3 compromised servers in about 8 years, and over 7500 websites at one point :)03:22
slidedang03:22
slidehow do you handle them when they get compromised?03:22
nawty2 of said servers were not actually running anything :P but stupid ass me forgot they were on the network.03:23
nawtyslide: pull ethernet, work back through logs and such, and once i can verify that the data isn't dodgy, use that data, else use backup restored data to restore post reinstall.03:23
slideyea im having a hard time figuring out how they got in03:24
nawtyslide: i doubt anyone i know would be comfortable with a compromised server even after cleanup, over a clean new install.03:24
slidei got my host to backup server and reinstal and let me view the backup03:24
nawtyslide: error log not have anything at all?03:24
nawtyslide: and, did you check /tmp ?03:24
slidenawty, well not that I could see03:24
slidebut im no expert so03:24
slidenawty, nothing at all in there03:25
nawtyslide: if you could find something in /tmp, or some shared place tha they'd have placed their uploaded files03:25
nawtyslide: ah, but it's been rebooted :903:25
nawty:(03:25
slidenawty, i did get a report about some phising pages on one of the sites03:25
slideand my host deleted those files though03:25
nawtyslide: could be a result of the hack.03:25
slideright03:25
slideand i think they were sending spam03:26
nawtyslide: also, could've been 2 separate hacks, one for spam, one for phishing.03:26
slidewhich is why i took it down without really letting my users know03:26
slideb/c didnt want to get their emails blacklisted03:26
nawtyslide: eeek. good idea, but in future try organise a kvm and pull the network03:26
slidekvm?03:26
nawtyslide: from there you can work your way back without rebooting the box and loosing iformation03:26
nawtyslide: access to the keyboard and mouse.03:26
slideah03:26
nawtyslide: and video, but over the network03:27
nawtywell, to be technically correct, it'd be an IPKVM, or IP Based Management Console03:27
nawtyslide: running processes, memory filesystems, and logs should all be kept as pristine as possible to work your way back.03:28
slideyea03:28
nawtyslide: cissp has a bit on how to forensically analyze a server, see if you can find some information on that.03:28
slidek03:28
nawtyslide: but it's been years since i last looked at the cissp course material.03:28
nawtyslide: anyway, goin to get some sleep, nite nite :)03:29
nawty*wave*03:29
slidenite03:29
slidethanks03:29
slidettyl03:29
=== freeflyi1g is now known as freeflying
J-_When using ddclient, it says, "Enter the interface which is used for using dynamic DNS service. Interface used for dynamic DNS service:" do I put my dynamic IP in there, or router's static IP?06:52
kgoetz*interface*06:52
kgoetzusually means device, like eth0, ppp0, etc06:53
J-_!httpd07:16
ubotuSorry, I don't know anything about httpd - try searching on http://ubotu.ubuntu-nl.org/factoids.cgi07:16
J-_I'm trying to make a Virtual host to point to http://directory.site.dyndns.org on my http://site.dyndns.org website pointing to my server. My IP always changes, how can I define the IP since I have to define the IP:80(ie. NameVirtualHost ip.address:port) in /etc/apache2/apache2.conf?07:38
Kamping_Kaiseri doubt you'll be able to do subdomains on a dyndns account07:38
J-_I can07:39
Kamping_Kaiserreally?07:39
J-_I can do wildcards07:40
J-_http://www.dyndns.com/services/dns/dyndns/howto.html07:40
J-_shows how to set up the ddclient, but says something about wildcards.07:40
Kamping_KaiserJ-_, http://k-k.homelinux.net:81/~kgoetz/apache2-vhost-template.txt07:41
J-_If I can't get my server to come up with 127.0.0.1 does it mean it's not set up corrently, or is something not defined?08:22
fromportJ- you're error description doesn't make sense: cannot computer08:25
fromportcompute08:25
J-_Do I need to make a virtual hosting for my /var/www/ too now that I've made one for /var/www/about/?10:08
J-_virtual host*10:09
J-_It's weird. Since I made the /var/www/about/ virtual host, I go to my /var/www/ and it shows the same page.10:10
* J-_ asks in apache.10:11
aetaricis it possible to port forward ssh?12:15
faulkes-yes12:15
aetaricthen why won't i let me12:16
aetaric*it12:16
faulkes-there are any number of possible reasons why it won't let you do it12:16
faulkes-for instance, trying to port forward a port under <1024 as non-root12:17
faulkes-configuration options set in ssh_config, sshd_config etc..12:17
faulkes-or possible user error12:17
aetarici don't have iptables or any firewall..and im using the default ssh configs12:18
aetariccan you help me resolve this problem?12:20
AlexC_hey,14:10
AlexC_I'm trying to setup Bind9 so that `example.com` runs on one IP, and `foobar.example.com` runs on another, this seems to work (pinging them shows the correct IP) however, I am unable to connect to it via a webbrowser14:11
Kamping_Kaisersounds like apache is misconfigured14:12
Kamping_Kaiserbtw. what guide did you follow for bind?14:12
AlexC_I haven't followed a guide, really14:13
AlexC_right, example.com should serve as a normal Apache virtual host, however foobar.example.com should connect to port 882 and it runs webmin14:13
AlexC_no, wait. https://foobar.example.com:882 runs Webmin (so seperate from Apache) *however* https://foobar.example.com runs as a virtual host14:14
AlexC_nevermind, I have it working =)14:18
nxvlmathiaz: hi!15:09
zulhey mathiaz15:10
nxvlnijaba: did you take a look at Bug #162167 ?16:30
ubotuLaunchpad bug 162167 in mysql-dfsg-5.0 "mySQL password asks only once" [Wishlist,Confirmed] https://launchpad.net/bugs/16216716:30
=== benny_lava is now known as dantalizing
nxvldendrobates: did you take a look at Bug #196778 ?17:28
ubotuLaunchpad bug 196778 in likewise-open "Provide likewise-open-gui and likewise-open binaries rather than domainjoin-gui and domainjoin-cli" [Low,Confirmed] https://launchpad.net/bugs/19677817:28
dendrobatesnxvl: I have merged your debdiff and some other changes and am testing now.17:30
nxvldendrobates: :D17:30
nxvlbtw17:34
nxvldendrobates: did you check about the student program we talk about some days ago?17:34
dendrobatesnxvl: not yet.17:34
nxvlok17:34
nxvlif you know smoething please let me know17:34
Sylphidcomming from a red hat background would ubuntu or debian be more up my ally for a server install?19:19
sommerSylphid: I'd vote for Ubuntu19:20
kirklandSylphid: do you have a preference between, say RHEL and Fedora?19:22
Sylphidi was actually using fedora19:23
kirklandSylphid: If you prefer the speed at which Fedora tracks mainline, you'd like Ubuntu.19:23
Sylphidbut it was compromised19:23
kirklandSylphid: if you want long term or even commercial support, look at Ubuntu's LTS releases19:24
Sylphiddebian does not have a kernel compiled for server optimization out of box correct?19:25
Sylphiddoes ubuntu default to enabling SELinux19:27
sommerSylphid: it defaults to using AppArmor, but you can easily install SELinux19:29
Sylphidhmm never used AppArmor .... less annoying that SELinux? =D19:30
sommerI've found it easier to configure19:35
Sylphidty sommer and kirkland for ur time... ill give ubuntu server a shot :)19:38
kirklandSylphid: have fun19:39
Sylphidalways19:39
w0nderanyone recommend a particular irc server for my small office?19:49
JaxxMaxx_Anyone here have experience with FreeRadius, and more specifically, the webadmin module  dialup_admin  for that RADIUS server?  Its documentation mentions making sure PHP4 modules are loaded into apache, but I read recently that version 4 isn't in 7.10   Would the php5 work?20:06
ScottKJaxxMaxx_: I'm not familiar with that module, but at a guess I'd say almost certainly not.20:17
timboyi'm running apache. what owner should I make my var/www/* ?20:23
sommertimboy: www-data20:34
timboysommer, thx!20:36
sommertimboy: you're welcome20:40
timboyI have a stock apache setup on gutsy server and I wanted to get ssl working. What's the best way to do so? I already have ssl working for my email server I just want the webmail logins to be encrypted...21:24
sommertimboy: the gutsy serverguide should help: https://help.ubuntu.com/7.10/server/C/httpd.html21:27
timboythx again sommer21:29
sommernp21:29
=== googlah|1leepy is now known as googlah
lamont`ScottK: you around?23:43
lamont`debian 311812323:43
lamont`debian 31181223:43
ubotuDebian bug 311812 in postfix "postfix: syslog reconnection" [Grave,Open] http://bugs.debian.org/31181223:43

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