/srv/irclogs.ubuntu.com/2013/03/17/#ubuntu-server.txt

Nine_9seriously, it seems there's no opensource webmail that can manage multiple accounts at once.01:53
Nine_9it's a pity I'd be forced to go closed-source :(01:54
baymontCan anyone provide some help with the Squid proxy05:52
NginUSHow do I see what I have set as an environment variable? And how do I reset it to what I want it to be?07:36
NginUSHow do I set the SERVICE_TOKEN environment variable to match that of a value in a config file?07:53
savrhi07:56
savrwhy is all the java software in ubuntu really out of date07:56
savrlike solr/tomcat even eclipse07:56
savrthey're still out of date for 13.0407:57
savrI know java software doesn't really need to be installed from apt but it is nice to get all the system scripts07:57
savris there a ppa somewhere that I haven't found?07:57
histosavr: How "out of date" are they?12:09
savreclipse is years old12:09
histosavr: perhaps no one is maintaining the package anymore.12:11
savrtomcat is like half a year old12:11
savrsolr is still on 3.612:12
histo!info eclipse12:12
ubottueclipse (source: eclipse): Extensible Tool Platform and Java IDE. In component universe, is optional. Version 3.8.0~rc4-1ubuntu1 (quantal), package size 16 kB, installed size 121 kB12:12
savr4.2 has already been released12:12
histo!info tomcat12:12
ubottuPackage tomcat does not exist in quantal12:12
savr!info tomcat712:12
ubottutomcat7 (source: tomcat7): Servlet and JSP engine. In component main, is optional. Version 7.0.30-0ubuntu1.1 (quantal), package size 37 kB, installed size 353 kB12:12
savroh one sec12:14
histosavr: which repo is eclipse in?12:14
histosavr: that's why12:15
savrtomcat 7.0.35 has recently been pulled in from debian experimental to 13.0412:15
histoIt's maintained by the community12:15
histotomcat is in main so it will get updated12:15
savryeah they seem to be pulled in from debian12:15
histoIf no one updates eclipse it will not be ever updated.12:15
savrthe latest release of tomcat is .3712:15
savrso it is two released behind12:16
histoIf it's something you use quite a bit you may want to package it.12:16
savrhmm12:16
histosavr: linux != windows if you are looking for bleeding edge system that breaks frequently you may want a different distro.12:16
savrsolr is the one really bothering me12:16
savrI'm not... just hope the security fixes are ported back12:17
histosavr: no one is stopping you from building the package from source. If you do I would recommend checkinstall It will build a deb for your for easy removal.12:17
savrif the security fixes aren't being handled I'm better off installing it myself12:17
histosavr: that's why we have the security team12:17
savrI like leaving my ubuntu boxes to auto update it's what makes ubuntu so great12:18
savrso I prefer to use the apt packages as much as I can12:18
savrhisto: is it safe to rely that security fixes are being back ported to software like tomcat or should I be managing the latest version on my boxes myself?12:19
yeatssavr: security fixes are applied, yes.  If you're paranoid and have the time, you can manage it manually12:20
savrI don't have time :)12:20
savrthanks security team :D12:20
yeatssavr: I would be careful with auto update - sometimes you want to review what's being installed before applying it12:20
yeatsespecially if you're managing manual builds12:21
savryeah12:21
=== histo1 is now known as histo
=== railsraider_ is now known as railsraider
__dan__hi there guys14:58
__dan__having some kernel panic related fun with megaraid14:59
__dan__using an LSI megaraid sata 300-8x card pci-x card14:59
__dan__can anyone help or drum up some ideas etc?15:00
__dan__compiled latest kernel (3.8.3) overnight and tested just now, still getting lockups :/15:01
__dan__same card has worked without fault for years on win2003 server15:02
=== loffa is now known as loffa|away
__dan__cmon 361 ppl someone must be alive :P15:07
=== three18t- is now known as three18ti
RoyK__dan__: got a dump of that panic?15:31
__dan__no mate sorry it never dumps :/ or at least i dont think it does15:32
__dan__it just hangs15:32
__dan__sometimes it flashes the caps and scroll lock lights15:32
__dan__http://bugs.centos.org/view.php?id=538315:32
__dan__this looks promising but im not sure whether that patch has made it into any kernel i've tried yet15:32
__dan__and im loathed to install centos although i am comfortable with it15:33
__dan__was just looking at the kernel source to see if that patch has made it into 3.8.3 but im way out of my depth tbh15:34
__dan__seems like at least some of that patch made it into upstream15:39
__dan__although it has been twiddled15:39
__dan__so it seems to me anyway15:39
__dan__been all up and down the internet and tbh other than install centos just to see if it works im out of ideas now15:43
__dan__i know its an old raid card but it's all i got and was working under win2003 server for years15:44
histo!enter | __dan__16:14
ubottu__dan__: Please try to keep your questions/responses on one line. Don't use the "Enter" key as punctuation!16:14
Monotokohey guys, after today... is there anything I can do that would stop certain commands actually being executed on servers? One of our clients demanded sudo access to a server, and accidentally ran ... a bad command I'm not sure I'm allowed to put here16:14
histoWhy would you give a client sudo access16:15
histothey have the keys to the kingdom then.16:15
histoFirst you should ask what they need sudo access for in the first place.16:15
Monotokohisto, he was a Linux tech himself, I wasn't there when my boss authorized it, I personally wouldn't have given them the access16:16
histoMonotoko:You would need to ask why they need the access for what particular file or command?  Then just provide them access to that and not the whole system.16:17
Monotokosadly he's my boss and I can't seem to convince him that he really shouldn't hand this access out to clients....and now he's asking about this... and I can't find anything on the web about it - I'm planning to tell him when I next see him "this is the way to do what you wanted, however these things are wrong, and this would be a better way to do it"16:18
Monotokothen if he wants to impliemnt the blacklist of sorts, it's on his head next time someone screws up16:19
histoMonotoko: Your plan is correct. You can't give them sudo and then restrict certain things. They will find away around it especially since they can just sudo -i  or su -  to get root. The proper way would be to just give them access to what they need. Or do it the bosses way and not have any access control at all.16:20
qman__sudoers has functionality to grant access for specific commands16:20
qman__however, it's whitelist-style, not blacklist16:20
__dan__lxc is the way ahead :)16:21
histoMonotoko: qman__ has it right as i've been saying you have to give them access to the commands they need whitelisting16:21
qman__for example, I use it for the backuppc user to back up my system16:21
qman__backuppc  ALL=NOPASSWD: /usr/bin/rsync --server --sender *16:22
Monotokoqman__, could you whitelist everything, then blacklist certain things in the sudoers file? (I know this isn't the way to do it, and I have suggested he should only give them what they need already - I'm just going to give him the solution he's asked for if possible, then tell him for one last time that the better ways would be to only give them commands they need, not give them access16:22
Monotokoetc etc)16:22
qman__that line allows only that user to run only that command as root16:22
sw_hi is it possible to keep apache VirtualHosts in one single file, instead of seperate sites in /etc/apache2/sites-available?16:22
qman__Monotoko, no, that is not possible16:23
qman__it does not have a blacklist function16:23
Monotokoqman__, okay cheers, I will have a google around to see if I can find anything with a blacklist function, but if not I will just tell him what he wants isn't feasible16:23
qman__as mentioned, such a thing is pointless, because the user could write their own script or program and work around it, if not abuse the shell16:23
qman__a whitelist is the only way to actually secure things16:24
qman__you won't find one, but even if you do, it won't work16:24
qman__it's not possible to secure a system that way16:24
Monotokoqman__, I know... but work is work, and when your boss isn't being logical it's difficult to convince him... hopefully if I find something, and it breaks, he will understand16:24
Monotokopersonally I'm hoping a user does break it so he sees sense16:25
qman__it's your job to demonstrate this without doing that16:25
qman__show him a list of fork bombs, or a list of ways to delete files, make it visible that there's an infinite number of possible ways to actually achieve it16:26
Monotokoqman__, I have tried... I've shown him the hex bomb, and told him there could be many many others created that this blacklist thing he wants wouldn't pick up16:26
qman__then, in my opinion, it's time to dust off the resume16:27
Monotokotrust me, this has turned into a bit of a heated arguement at work today... with him pointing fingers at me and me pointing fingers at him16:27
MonotokoI explicitly told him not to give users root access to servers because that's what we are paid to manage16:27
Monotokoand he went and did it anyway16:28
qman__I won't be held responsible for systems that incompetents have root access on16:30
qman__and that's exactly the position you're in16:30
MonotokoI'd rather him call me at 2am to sort a problem16:30
Monotokothan give the bloody user root access16:31
Monotoko>.>16:31
sw_hi is it possible to keep apache VirtualHosts in one single file, instead of seperate sites in /etc/apache2/sites-available?16:31
qman__sw_, yes, but that's not the debian way16:31
__dan__just write a script that runs for him instead of sudo16:31
__dan__and says "Bad command or file name"16:31
__dan__or sommet16:31
__dan__eheh16:31
histolol16:31
sw_qman__: it still works though?16:31
qman__yes16:31
histoYou could make a fake sudo lmao16:32
qman__as a matter of fact, the stock apache configuration is a single file16:32
qman__debian splits it up to make it more manageable16:32
sw_qman__: how would we do that if we wanted them all in a single file? like where should it be stored etc.?16:32
Monotokohisto, that's so insane... it sounds like exactly what he'd go for16:32
__dan__sometimes u gotta fight moron with moron :)16:32
qman__sw_, it can go in any of the files16:33
__dan__or do what i said before and play with lxc16:33
qman__sw_, there isn't a right one to do that in, because that's not the right way to do it16:33
__dan__make him a little sandbox you can blow away and reinstate in 30 seconds :)16:33
sw_qman__: how isn't it the right way? the Debian way is the right way?16:34
Monotoko"here is the new username and password for this server, whatever you do, do not ever give it to the user *hint* *cough*"16:34
qman__sw_, ubuntu is debian based and uses the debian way, therefore the right way to do things on ubuntu is the debian way16:34
Monotokoknowing him, il set that up, and he'll bloody not do it again16:34
qman__that's the supported way, the way the system is designed to be used16:34
qman__you can do whatever you like, of course16:34
Monotokohmmm, on an unrelated topic16:38
Monotokowhere is service located? I thought it was /sbin/service16:38
sw_qman__: is there a reason why Debian does it this way?16:38
__dan__still got this megaraid problem if anyone fancies taking that on16:38
qman__sw_, as mentioned, it's for manageablility, if each site has its own file, it's easy to turn them on and off with the a2ensite/a2dissite commands, for both troubleshooting and general management purposes16:39
__dan__although i compiled latest from kernel.org and disabled pcie aspm and so far badblocks hasnt made it puke :)16:39
__dan__also does anyone know how to force text mode on bootup?16:44
__dan__i did it once but i forget - this machine tries setting 1280x1024 and my screen doesnt display that properly16:45
qman__nomodeset16:46
qman__if you mean disabling KMS16:46
qman__and you can configure in grub to use a different resolution at boot time16:47
__dan__kind of - i just want standard text mode16:49
qman__as opposed to?16:49
qman__are you using X or a high resolution console?16:50
__dan__no it's text only, doesnt boot a gui16:50
__dan__but it sets the mode to 1280x102416:50
__dan__i just want it to leave things alone and use whatever it gets when it boots16:50
qman__ok, then if you append nomodeset to the kernel line, it will boot to an old 80x25 console instead of a high resolution framebuffer16:50
=== loffa|away is now known as loffa
__dan__cool yeah thats exactly what i want, will try next time it dies :) thx16:50
qman__KMS is really good in general, that's why it's default16:52
qman__works on widescreen and everything16:52
qman__but some monitors report resolutions that they don't work well or at all with16:52
__dan__ah this is an old ati rage onboard, its a server16:53
__dan__doubt it would know what to do with kms16:53
__dan__and since i installed 3.8 kernel it doesnt display at all - on 3.5 ubuntu standard kernel it cut off the left hand side16:54
=== loffa is now known as loffa|away
=== tmclaugh[work] is now known as tmclaugh-
=== tmclaugh- is now known as tmclaugh[cafe]
=== loffa|away is now known as loffa
sliddjurHow do I block an IP to connect to my server? I see somebody has tried to login via ssh over 9000 (!) times20:07
pmatulissliddjur: just make sure you're using keys for authentication20:20
sliddjurpmatulis: i want to block an ip20:20
pmatulissliddjur: not much sense in doing that as IPs tend to change a lot.  but use iptables20:21
pmatulissliddjur: if not familiar with iptables (linux firewall) use ufw, it's a frontend that is more user-friendly20:21
pmatulis!info ufw20:21
ubottuufw (source: ufw): program for managing a Netfilter firewall. In component main, is standard. Version 0.33-0ubuntu2.1 (quantal), package size 156 kB, installed size 714 kB20:21
sliddjuri have ufw20:21
sliddjurbut it doesnt seem to work20:22
sliddjur"ufw deny proto tcp from 59.6.39.170"20:22
sliddjurstill get tries from that ip20:22
sliddjurI also did iptables -A INPUT -s 59.6.39.170 -j DROP20:23
pmatulissliddjur: i don't have the syntax memorized.  you're prolly missing something20:26
pmatulissliddjur: a quick search show 'sudo ufw deny from 192.168.0.1 to any port 22'20:27
pmatulissliddjur: also, you need to look at all the rules.  an earlier allow rule may be triggering (first-match-wins)20:30
shaunoI'd look into something like fail2ban so they never reach 900020:30
sw_sliddjur: pastebin your $ iptables --list, might be best to $ iptables --flush and start over though, as pmatulis said you might have an earlier ALLOW rule that's overriding it20:43
metap0dHi everyone, I've just set up Ubuntu Server 12.10 on my home computer but I'm having issues setting a static IP. I followed some documentation I found online but I end up having no internet access. My googling tells me this is an issue related to DNS so I tried to add "nameserver 192.168.0.1" to use my router but that didn't fix it. Any ideas?21:34
metap0dFor the time being I've installed SSH server on the machine and set the network back to dhcp21:35
Monotokohey guys, I have a bit of a weird problem... my server is set up with BIND9, and the domain itself works22:24
Monotokobut I can't query it: http://pastebin.com/r9v5LDbR22:24
Monotokohere is the contents of the /var/lib/bind entry: http://pastebin.com/c0CZqHX022:26
Monotoko(very basic I know - maybe that's the problem here?)22:27

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