/srv/irclogs.ubuntu.com/2009/08/15/#ubuntu-server.txt

uvirtbotNew bug: #407379 in bind9 (main) "After an update the vpnc is not able to pick up dns information" [Undecided,Invalid] https://launchpad.net/bugs/40737900:01
=== funkyHat is now known as funkyCat
=== funkyCat is now known as funkyHat
=== lamont` is now known as lamont
shadow98just trying to find the best option here for failover...i have one server currently and a 2nd server that i am setting up now to do a failover...02:49
shadow98i was planning to rysnc the directories and replicate mysql02:49
shadow98is that the best option...02:50
shadow98this is for my website and sql server02:50
shadow98i was going to replicate /var/www02:50
shadow98sorry rsync02:50
shadow98hello03:05
qman__shadow98, that sounds like a good plan to me03:24
shadow98awesome04:13
uvirtbotNew bug: #393792 in lighttpd (main) "lighttpd reload executes restart (bad on logrotate!)" [Medium,Fix released] https://launchpad.net/bugs/39379204:21
psi-jackOkay, so if X has a problem finding the 'fixed' font, what package would I need to reinstall to fix it?05:29
ScottKOne that's not related to Ubuntu Server05:33
TimReichharthi guys i am having problems compiling a drivers for my 56k modem on my server and here what I am getting http://pastebin.com/pastebin.php?dl=m76fb116d05:41
psi-jackDo people actually still use modems? o.O05:42
jmarsdenFAXes are still fairly common in the business world, so yes, they do use modems for FAX transmission and reception.05:43
TimReichhartthat is correct jmarsden05:44
jmarsdenThe more pertinent question here is why one would build a FAX server and use an unsupported internal modem rather than one known to work with the appropriate FAX server software...05:44
psi-jackOkay.. So, I have a gigabit switch and gigabit NIC, but my switch is showing only 100mbit connection, not 1000mbit. Is there something I need to be doing to get it to go up to 1000?05:45
ScottKHow far apart are they?05:45
psi-jackThe computer and the switch?05:45
TimReichhartjmarsden: its on a research that I am doing on and please I wanted to know how to build a fax server on linux05:45
psi-jackScottK: About... 2 inches.. Cable's a 6 inch.05:46
jmarsdenTimReichhart: Step one is choose appropriate hardware :)  I'll take a look, but...05:46
psi-jackErr, well, not 6 inch, but like, 2 foot.05:46
ScottKOK. so much for that idea05:46
psi-jackAnd it's cat5e :)05:46
TimReichhartjmarsden: but what05:47
jmarsdenTimReichhart: But you make life difficult when you choose to ignore that step!  I have built multiport FAX servers for clients... see http://www.hylafax.org/content/Hardware_Compatibility_List05:48
TimReichhartjmarsden: yes I do have a external modem but I dont have a null cable for it so that is why I am trying to get this intel/internal card to work and I know the modem is working bc I can hear a dial tone and I can call out but I just cant get it to send out any faxes.....05:49
jmarsdenAre you sure the driver for it supports FAXing?  What Class is is supposed to handle?  2.0 ?05:50
TimReichhartfrom what I was told this driver is supported for faxing and I dont know what classs its handling on05:51
jmarsdenSo... ask it... use minicom or whatever terminal emulatir you are using for debugging and try the AT+FCLASS=2.0 command, etc... what have you tried exactly?05:53
TimReichhartI havent really tried anything except for trying to get this driver to work05:54
jmarsdenDefine "work"?  You got it to give you dial tone and dial out... how did you do that?  What did you use to make the outgoing calls?05:54
TimReichhartI dont remember how I got the modem to make a outgoing call05:55
TimReichhartmodem to make it to work to make the outgoing call*05:55
jmarsdenA research you are doing... but you made no notes as you did the research?  Lesson #1: Take good notes.05:56
jmarsdenLooks like the thing you are trying to compile is a kernel module, is that correct?05:56
TimReichhartthat is what I have been told to do05:57
TimReichhartbut when I tried to search for the modem there isnt anything showing for the modem05:57
jmarsdenBeen told?  This is a research project, you should be the one deciding what to do.  Following what other people tell you do to is not research.  Do you have the kernel sources installed?05:57
TimReichharthow do I know if I got the kernal sources installed?05:58
jmarsdenBecause you installed them as part of your work on this research project? :)05:58
TimReichharti dont think I installed them but how can I make sure I got them installed05:59
jmarsdenSame way you tell if you have any other package installed... dpkg -l PACKAGENAME -- in this case the PACKAGENAME is probably linux-generic06:00
psi-jackHmmmm06:01
TimReichhartsee I tried the linux-generic it was telling me to re-install the server part of it when I did the updates06:02
jmarsdenBe specific... you used what command and got what exact error message back from it?06:02
TimReichhartwhen I did the sudo apt-get update06:03
TimReichhartI dont have the linux-generic anymore I got the server part of re-installed06:03
psi-jackBleh. Still no 1gbit.06:03
jmarsdenTimReichhart: So try installing linux-generic now and then try compiling your kernel module again.06:04
artillerytxIf i wanted to add a subdomain pointing at a url in bind wouldn't that be a server alias06:09
artillerytxor i mean an alias record06:09
psi-jackOkay, so it's an on-board 3c940 10/100/1000 NIC that's not going 1000 mbit mode.. On another system, I have it with a nForce 2 10/100/1000 and Linksys 10/100/1000, the Linksys will go 1000 no problem, but neither on-board 1000-capable NIC is going 1000.06:15
jmarsdenartillerytx: DNS records can only point to an IP address, not to a URL.06:30
artillerytxso i would create a new virtual host06:30
artillerytxwith that subdomain06:30
jmarsdenSure, you could do that.06:31
artillerytxand then point the dns record to the same ip06:31
jmarsdenYes.06:31
artillerytxdoes this work for you http://invoice.longhornpcrepair.com06:31
nick125Doesn't look like it06:31
jmarsdenNope, that is not in the DNS here.06:31
artillerytxalright oh well no big deal06:31
artillerytxi will figure it out later06:31
qman__psi-jack, it is possible that your cable is too short06:37
qman__the specification requires 3' minimum length06:37
qman__shorter ones usually work but not always06:39
psi-jackqman__: Oh no, it's not too short.06:42
psi-jackThe Linksys 10/100/1000 connected to my switch at 1000, but neither the nForce2 or 3c940 on-board NIC's of two computers will do it at 1000.06:44
qman__nforce 2?06:44
psi-jackThe Linksys one is PCI card.06:44
psi-jackqman__: Yeah.06:44
qman__those aren't gigabit06:44
qman__so there's your problem06:44
psi-jackYes, actually, it is.06:44
qman__nforce 4 is gigabit06:45
psi-jackHey, the mobo manual says the NIC is 10/100/1000, so I'm trusting the manufacturer here. ;)06:45
qman__must be a pretty unusual setup then06:45
qman__nforce 2 is pretty old, before gigabit was common or cheap enough for most people06:46
psi-jackThe new NVIDIA nForce2 Gigabit MCP delivers industry-leading Gigabit Ethernet performance/06:46
psi-jackNot uncommon at all, nVidia even says it.06:47
psi-jackAnd the nforce2 was well after gigabit was out.06:48
psi-jackBut the 3c940 is also having the same problem, it won't go 1000mbit.06:48
qman__if the cable is tested good, then that's pretty strange06:49
psi-jackSo far, the only one I've managed to actually go 1000mbit, is the bloody Linksys off-board one.06:49
jmarsdenpsi-jack: Trying a longer and different cable would be worth it at this point, IMO.06:49
psi-jackYep. Same cable that went to the nforce2 that wouldn't go 1000, is hooked into the linksys, and connecting at 100006:49
psi-jackjmarsden: I tried that too.06:50
jmarsdenMaybe the Linksys is more tolerant of the too-short out of spec cable than the others?06:50
jmarsdenOK.06:50
qman__that type of thing is generally handled by the NIC itself, with hooks for the drivers to interfere if needed06:50
psi-jackI switched out cables for brand new freshly made cables. heh06:50
jmarsdenWhich were over 3 feet, right?06:51
psi-jackCorrect.06:51
qman__if the switch is behaving correctly, and the cables are working, the next logical step is hardware failure, but two NICs at the same time is unlikely06:51
jmarsdenSeems odd indeed.  Can you test with a different switch at some point?06:51
psi-jackYeah. Both the on-board NIC's won't do 1000, but are capable of it.06:52
qman__what happens if you connect the NICs to each other?06:52
psi-jackjmarsden: Only have the one gigabit switch.06:52
jmarsdenBorrow one from a friend, move PC to friends house, etc etc... ?06:52
psi-jackjmarsden: Heh, I literally just bought the switch from a friend. :p06:52
qman__gigabit is automagic, so you can connect anything to anything06:53
qman__while connecting two NICs in one machine to each other isn't very practical, it should at least get you a gigabit link light06:54
psi-jackqman__: That's a negative.06:54
psi-jackGigabit did not go.06:54
qman__do they link at 100, or not at all06:54
psi-jack100, yes. 1000, no.06:55
psi-jackAnd both nic's I see are using the sk98lin driver for them.06:55
qman__so far that's the only thing in common06:56
qman__one way to verify would be, if they have lights for gigabit, to reboot the machine and see if they go gigabit before the OS loads06:57
qman__though that'd be very inconvenient and somewhat inconclusive06:57
jmarsdenBoot from a *BSD LiveCD and see if its drivers do any better??06:58
psi-jackqman__: I believe when I first booted back up my system it was 1000, initially.06:58
psi-jackjmarsden: That's also a thought. I'll prolly try that. ;)06:58
psi-jackOnce my backups finish.06:59
qman__that wou;d confirm it as being the driver06:59
qman__funny how that works06:59
qman__the driver removes functionality06:59
psi-jackHeh.07:00
psi-jackWell, both these systems are the last two still actually running opensuse, but that's very soon to be changing to ubuntu-server and ubuntu-desktop within the next few hours, hence the backup. ;)07:00
psi-jackHmm, now, the 3c940 apparently can use the skge driver as well? the sk98lin was actually in the modules.d blacklist. heh07:02
drurew!img307:19
ubottuSorry, I don't know anything about img307:19
jmarsdendrurew: See http://theiphonewiki.com/wiki/index.php?title=IMG3_File_Format07:20
drurewheh, im looking at already...07:21
drurewtx tho07:21
jmarsdenNo problem :)07:22
drurewdoes anyone know of any "succesful" attempts at iphonelinux ?07:30
* drurew waits for a bunch of trouts to fly his way 07:30
drurewlet me rephrase...*successfully documented (including all sources) attempts07:32
jmarsdenUnless Ubuntu server was ported to it, that's off topic here... maybe ask at irc://irc.osx86.hu/iphonelinux instead?07:34
drurewyeah your probly right...just the only way to install it is with ubuntu 8.10....so07:38
drurewk07:38
drurewlaterz07:38
jtxx0001is it sensible to configure dovecot/postfix to use passwords which are different from the system passwords, particularly for users with root access?08:57
andoljtxx0001: Could be, yes. Especially if there is also a webmail, which those users use from wherever.09:04
jtxx0001andol: would the best way to go about this be to use dovecot's authentication with a passwd file?09:07
andoljtxx0001: No idea what the best way is for your needs. The easiest is probably to simply to configure dovecot to use another auth source, and have postfix auth by using dovecot.09:09
andoljtxx0001: Then of course, there is always PAM.09:10
andoljtxx0001: By the way, this is really not my expertiece. I know enough to figure out what I need to do myself, but not really to give other people (good) advice.09:11
jtxx0001andol: i'll look into PAM, but i think i've managed to get it working now.  thanks for the help!09:12
acalvoHi09:28
acalvoI'm trying to configure a DNS and DHCP server09:28
acalvoDHCP is working09:28
acalvoDNS seems to be working09:28
acalvobut I cannot access anything from outside this lan09:28
acalvoI can't even ping my gateway, but I can ping and resolve any other machines in the lan09:29
uvirtbotNew bug: #413985 in dhcp3 (main) "dhcp3-server fails to install on ubuntu 9.04" [Undecided,New] https://launchpad.net/bugs/41398512:01
Rich-NewbieHi all, got a question about post fix. I have a simple email server setup, and can send and recive. I have setup masquerading_domain, with this I am able to send to outside email addresses, relaying through my isp. When the email arrives it showes name@server.mydomain.com, would I need to setup aliases to show it as name@mydomain.com.12:27
jdivehello folks, i have an issue with a soft raid 5 array, ext4 .. userspace application get's cut from data read on the storage, this last for less than a sec, then goes again12:56
jdiveif someone could help on how to dig this out,i would appreciate it12:56
=== |sunny| is now known as dzzz
uvirtbot`New bug: #412501 in php5 (main) "php5 crashed with SIGSEGV in _Unwind_ForcedUnwind()" [Medium,New] https://launchpad.net/bugs/41250113:25
=== Nightlurs is now known as Nightlurker
uvirtbot`New bug: #403599 in php5 (main) "Installing PHP5 performs a reload to apache instead of a restart" [Low,Confirmed] https://launchpad.net/bugs/40359914:02
=== ^grim76^ is now known as Grim76
Malekohmm this chan is as good as dead14:22
ewookno, idle is not dead.14:22
giovaniMaleko: it's a Saturday morning in the US ... clearly most people won't be around14:22
Malekooh..14:23
ewookand brunch/ early dinner in Sweden14:23
Malekoweve just had dinner here and are now slowly approaching saturday's midnight in next couple of hours14:24
Malekobtw any idea how i could start X through ssh?14:25
giovaniMaleko: x14:25
giovanixorg isn't supported in #ubuntu-server14:25
ewookX11-forwarding is a good suggestion.14:25
ewookgiovani: nah, but perhaps settings in sshd.conf server-side is? :)14:26
Malekoi have some apps on my ubuntu server that need to run under wine but its being picky and refuse to launch without window manager. so i then installed both wine and window manager on the os14:26
Malekonow i need to start the X.. tried startx but that doesnt work14:27
giovaniewook: not when they relate to running xorg on the server14:27
ewookgiovani: I get your point.14:28
giovaniMaleko: what applications are you referring to?14:28
Malekogameserver daemon apps that run in windows cmd prompt mode14:29
giovaniMaleko: sound like applications suited for windows then14:30
Malekomaybe but they should be able to run fine under wine with X support on the os14:35
giovaniMaleko: except that wine and x aren't appropriate on a server setup unless you really know what you're doing14:36
BoohbahMaleko: maybe you need to get a windows server14:50
RoyKBoohbah: shame on you and your foul language14:59
uvirtbot`New bug: #414017 in samba (main) "Reloading /etc/samba/smb.conf smbd only" [Undecided,New] https://launchpad.net/bugs/41401715:50
uvirtbot`New bug: #414109 in samba (main) "package samba 2:3.3.2-1ubuntu3.1 failed to install/upgrade: il sottoprocesso post-installation script ha restituito un codice di errore 127" [Undecided,New] https://launchpad.net/bugs/41410917:01
BlueFaceMonsterHi - I have a question. Trying to set up my first email sever (emix/dovecot). I can connect to the IMAP no worries, and test emails genereted at the server get delievered to my client fine, but I'm not reciving email from external addresses. Any ideas?17:09
BlueFaceMonster(and obviously by emix I mean exim 8o\ )17:14
BlueFaceMonsterOK, update, so I can "telnet localhost 25" but can't telnet remotely - connection refused. How do I change this?17:25
Grim76__BlueFaceMonster: Sounds like a Firewall/Port Forwarding issue.  Also could be an ISP block on port 25 if you are doing this on residential Internet access.17:33
BlueFaceMonsterHi, Grim76__. Not residential, but firewall/forwarding sounds about right. Is there a default firewall for ubuntu-server? I thought it might be AppArmor but that's not installed.17:34
Grim76__BlueFaceMonster: I don't recall there being one by default on the last installation that I did.  There might be a firewall at the perimeter of your network that needs to be configured to point traffic to the server.17:36
BlueFaceMonsterNoted, will look into it. Thank you!#17:36
Grim76__BlueFaceMonster: Really quick.  Can you telnet to port 25 from another machine on the same network?17:37
BlueFaceMonsterNot sure how to check that, it a hostes VPS17:37
Grim76__BlueFaceMonster: OK.  I know some VPS providers have a firewall that you can self configure.  Also you might try an sudo iptables -L to see if there are any rules in place based on their build.17:39
BlueFaceMonsterTo be honest, Grim76__, I've got no idea what I'm looking at. Could you check it for me if you have a chance? http://www.pastie.org/58505517:42
jmarsdenBlueFaceMonster: Before digging into iptables rules, are you sure exim is listening on the external IP address as well as on localhost?  Try   netstat -ntl | grep :25    to find out17:44
BlueFaceMonstertcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN17:44
BlueFaceMonsterIt's not!17:45
jmarsdenSo configure it to do so and life will be better :)17:45
BlueFaceMonsteryou make it sound so easy! :)17:45
BlueFaceMonsterYou know what's coming next, don't you...17:45
Grim76__Thanks jmarsden...Forgot to check for that.17:45
BlueFaceMonster...how do I do that then?17:46
jmarsdenYou;ve never configured exim in your life and have no idea how... right?17:46
BlueFaceMonsterGenius17:46
jmarsdenWait a sec... I use postfix more than exim these days... let me check...17:46
BlueFaceMonsterThank you!17:46
* BlueFaceMonster is slowly getting used to being a newb17:47
Grim76__BlueFaceMonster: We all have to learn sometime.17:47
BlueFaceMonsterI only recently discovered ubuntu IRC, and so far I've configured a webserver, made a Python/Pylons webpage from scratch and now this... all in a week. It's great! Hopefully get to "pay it forward" someday and help other17:49
jmarsdenBlueFaceMonster: Let's try    sudo dpkg-reconfigure exim4-config17:51
Grim76__BlueFaceMonster: Look at your configuration and look for dc_local_interfaces according to what I am reading that is where you specify what interfaces to listen.17:51
jmarsdenGrim76__: Probably better to use the "friendly" config tools rather than manual file editing, don't you think?17:52
subIt depends who you ask :-)17:53
subhehe17:53
Grim76__Good point.17:53
BlueFaceMonsternah, I'm an expert at "sudo nano /etc/foo.conf" now17:54
Grim76__BlueFaceMonster: Follow jmarsden and ignore me on that one.  I am used to editing the config files directly.17:54
jmarsdensub: It depends who you are and your level of experience, IMO.  I'd hack it, but I've been doing Unix system and network admin for 15+ years...17:54
BlueFaceMonsterI'm happy with that, just can find exim.conf! Friendly tools it is...17:54
BlueFaceMonster* can't17:55
jmarsdenHmmm.  When you installed exim what did you do regarding configuring it?  Didn't you get the debconf dialogs about it then?17:55
subjmarsden: Yes, very true, I agree. I've been doing *nix admin for about 5 total (though I have been using Linux for 10!)17:56
subBlueFaceMonster: The friendly config tool is can be launched via: sudo dpkg-reconfigure exim4-config17:57
subs/is//17:57
BlueFaceMonsterI did, jmarsden, but I just forgot to add the external IP address. I have now, it was very easy and I am composing a suitable test email to myself... fingers crossed...17:57
subAh sorry, misunderstood :)17:57
jmarsdenGood.  Looks like all is well, I'll go eat my breakfast... have fun with exim :)17:58
ivantisDoes anyone here run ubuntu server with mysql installed?17:58
BlueFaceMonsterTadaa! Worked like a charm! My thanKs to you all!17:59
jdstrandBlueFaceMonster: re firewall in Ubuntu> the default firewall tool is 'ufw'. It is not enabled be default. see 'man ufw' and https://wiki.ubuntu.com/UbuntuFirewall for details18:00
BlueFaceMonsterwill do, thanks.18:01
jmarsdenivantis: Ask you real question and find out who can help answer it...18:01
Grim76__BlueFaceMonster: Out of curiosity where did you get your VPS?18:02
BlueFaceMonstertagadab.com - can't fault them, service so far has been impeccible and cheap and chips, too18:02
Grim76__BlueFaceMonster: Ok thanks for the information.18:02
=== JanC_ is now known as JanC
vecyhey guys i have purchased a Dedicated Server - first time with multiple IP's i have a IP range - 72.232.190.90 to 72.232.190.94 - but when i try to ssh into it using lets say 72.232.190.91 - i never am connecting, do i need to activate these IPs somewhere before i can use them ? if so how ?19:35
vecyi am connecting fine using *.*.*.9019:36
vecybut not connecting at all using  *.*.*.91-9419:36
jmarsdenvecy: Do you have interfaces (or interface aliases) that actually are set to those IP addresses?  If not, your sever will not respond to traffic send to those IPs.19:37
vecyi honestly dont know, i am logged in as root and i have not set anything besides installed LAMP (apache ..)19:38
jmarsdenDo you *need* to use the other IPs for something in particular?  If so, what?19:38
vecywhen i type 'ifconfig' i see only the *.90 set19:38
jmarsdenThen you are only listening on .9019:38
vecywell i want to setup my Apache for 5 websites if ip: 72.232.190.91 go to /home/user1/www   if 72.232.190.92 go to /home/user2/www ... and perhaps some other stuff just incase19:39
vecydo you know the commands how to set those ips up ?19:39
Davieyvecy: Do you know how to do virtualhosts?  It's similar19:40
vecyohh true vhosts i totally forgot about them, yes i can use those and bind to domain name even better... :)19:41
Davieythar you go :)19:41
jmarsdenvecy: if you decide you do need the other IPs, man interfaces   and also    less /usr/share/doc/ifupdown/examples/network-interfaces.gz    will probably get you on your way to configuring interface aliases for the other addresses.19:42
vecythx :) reading on it now.. seems simple lets try rebooting now for changes to take affect.. a reboot is required right ?19:45
jmarsdenNo, just restart networking or probably just ifup the newly defined interface aliases19:46
jmarsdenBut I'd only add them if you need to use them; otherwise, keep it simple.19:46
vecyah i rebooted before ive seen your msg and its been 5minutes19:49
vecyserver still not up hmm could it get stuck anywhere ?19:49
jmarsdenThat's a long reboot... well, it could if you broke things and misconfigured the network interfaces...19:49
jmarsdenMaybe you need to see whether your provider offers you remote console access of some kind?19:50
vecywell the /etc/.../interfaces  file had  if i recall   eth0 auto... then eth0 ... static  my ip .. subnet.. gateway19:51
vecyand i just copy pasted that  from  eth0 static .. 3 times changed ip only19:51
jmarsdenThat's unlikely to work, you need separate interface aliases for each IP, I *think*... like eth0:0, eth0:1 ... which were in the examples.19:51
vecyiface eth0 inet static; address 192.168.1.5; netmask 255.255.255.0; gateway 192.168.1.25419:52
jmarsdenGet yourself remote console access and see what is going on.19:52
vecyit had this line19:52
vecyi just copy pasted and changed ip19:52
vecythats just an example ok19:52
vecyill give them a call to see if they can give me remote console access19:52
subtry the last IP you configured19:52
subbecause jmarsden is correct about the interface aliases19:53
subalso the gateway only needs to be configured once19:54
vecyim such a noob lol first try locked myself out ... waiting for support to reply19:58
subYou've gotta learn somehow :P20:00
vecyis anyone here with LayeredTech by the way - just wondering where does one find the 'Automatic OS reloads' button which they advertise but not found within the Customer Portal20:01
vecyso you guys are saying i should be doing20:22
vecyiface eth0 inet static; address 192.168.1.5; netmask 255.255.255.0; gateway 192.168.1.25420:22
vecyfor ip #120:22
vecyiface eth1 inet static; address 192.168.1.5; netmask 255.255.255.0; gateway 192.168.1.25420:22
vecyfor ip #220:22
vecy?20:22
vecyand etc eth2, eth3..20:22
jmarsdenNo... use eth0, eth0:0 and eth0:1 since you only have one physical network interface, eth0.  eth0:X are the aliases20:24
jmarsdenI'm out of here... on my way to attend a wedding...20:24
vecycool thx20:25
vecyshould20:44
vecyauto eth0 eth0:1 eth0:2 eth0:320:44
vecycause any problems ?20:44
vecyi added it and not again! it looks like i broke my server again, cant connect to it anymore20:45
giovanivecy: you should never be editing core networking config files without an alternate means of accessing the server21:01
giovaniyou WILL break something if you're not very careful and experienced with how the files work21:02
giovanihowever, to answer your question, yes you can auto multiple interfaces on one line, that's fine21:02
giovaniyou probably had a typo elsewhere in the config21:02
HellMindWhen should I chroot?21:03
giovaniwhen you have a need for it ...21:03
giovaniwhen the process is self-contained within a specific directory structure, or can be easily adapted to21:03
HellMindfor security is useful?21:04
giovaniit can be21:04
HellMindI want to run a ventrilo server21:04
HellMindI dont know if doing that is necesary21:04
giovaninecessary? definitely not21:04
HellMindbut its a lot secure or its the same :(21:05
HellMinddoing that what Im preventing?21:06
giovanithere's no way for me to give you a simple answer21:06
giovanithe security advantages are, if the ventrilo software is compromised, they only have access to files that were placed in the chroot21:06
giovaniand they won't be able to access other files on your server, unless there's a bug or vulnerability in the kernel21:07
HellMindbut if the attacker gain root?21:07
HellMindoh21:07
giovaniwell it's unlikely that they'd gain root through a chrooted server21:07
infinityThey shouldn't, if Ventrilo isn't running as root, and if there are no root escalation vulnerabilities in your kernel.21:07
giovanihowever, if someone gains root on a server ... it's game over21:07
HellMindand there are many levels of chroot, because I saw you can chroot ftp21:07
giovanithere are not many "levels" of chroot21:08
giovanichroot is a concept, it's either in use or not21:08
giovanichrooting users to their home directory is a common step where users on a system aren't trusted21:08
giovani(the ftp server is an example of where that might be used)21:08
HellMindfor every user I must creat an enviroment?21:09
giovaniif you wanted to chroot your users, yes21:09
giovanibut that's separate from chrooting a particular server binary21:09
HellMindand what is the bad about it?,21:10
HellMindwasting hd space21:11
giovanichrooting is a pain to set up, it sometimes required a lot of work, and if you don't do it properly, you'll spend hours troubleshooting missing binaries, etc21:11
giovanis/required/requires/21:11
HellMindI tried and I failed21:11
giovanimy point exactly21:11
HellMindI wonder which files are required to create the environment21:12
giovanildd, and google usually help with that21:12
HellMindI can remove all thats unnecesary21:12
HellMindI got a guide21:15
HellMindbut not for ubuntu21:15
giovanivery little (if any) of this is ubuntu-specific21:15
giovaniso that's not a problem21:15
vecyhey guys i am changing the motd.. are there any variable aliases i can use like  Hello %username% welcome! << example ?21:16
vecyi havent touched linux much so unsure21:16
giovanivecy: /etc/motd is a static file21:16
giovani/etc/issue on the other hand allows text substitution along the lines of what you'd like21:17
giovanito my knowedge, you can't print the username though -- you could write a wrapper script to handle this21:18
vecyok one more thing lets say i have a program i want to start it everytime i reboot automatically21:21
vecyhow do i do such thing ?21:21
vecyits web server.. but i need to run it manually all the time (xampp)21:21
giovaniwhat is xampp?21:22
vecyits a combination of  apache,mysql,ftp... all in one21:22
giovanimost server applications installed in ubuntu-server are automatically placed in /etc/rcX.d/ so that they start on bootup21:22
vecybut i need to type  ./lampp everytime to run it21:22
giovanithat doesn't sound like something built properly for ubuntu21:22
giovaniI'd recommend installing packages from ubuntu which will work well together, and properly integrate into the system21:23
HellMindroot@arctica:/opt/chrooted/ventrilo# su ventrilo21:23
HellMindroot@arctica:/opt/chrooted/ventrilo#21:23
HellMindwhy I cant su :(21:23
giovaniHellMind: "su - ventrilo"21:23
HellMindits the same21:24
HellMindit returns #21:24
giovanithen you didn't set up the user properly21:24
HellMindit says I must set it /bin/false21:24
HellMindthe shell21:24
giovaniif you set the shell to /bin/false ... then you can't log in as the user like you're trying to21:24
giovaniyou can do one or the other, but not both21:25
HellMindbut I can run the server right21:25
giovaniyes ...21:25
giovanibut su is going to start the shell21:25
giovaniwhich you've disabled21:25
giovaniso clearly it won't work21:25
infinitysu -s /bin/sh - ventrilo21:26
infinityThat will log in as the ventrilo user.  Not sure why you'd want to, but there you go.21:26
giovaniuh21:26
giovanilet's not provide workarounds like that21:26
giovanithat serves no purpose21:26
infinityIt's not a "workaround".21:26
infinityIf you need to test something as a user with a false shell, that's how you do it.21:27
giovaniit absolutely is -- either the user has a shell or not21:27
HellMindgiovani he is a pro21:27
HellMindinfinity you rock21:27
HellMindi dont understand, if I can do that21:28
giovaniyou shouldn't be doing that21:28
HellMindand I see am not chrooted,21:28
giovanithat's the point21:28
HellMindhow can I see the chrooted environment21:28
HellMindHow can I see it working21:28
vecyi asked this question on another linux channel without response.. lets try here21:28
vecyhi guys is there a way to make aliases to commands .. lets say i have  /opt/lampp/lampp (a webserver) can i make a global alias so i could just type  startwebserver and it would automatically go to /opt/lampp/lampp21:28
giovanivecy: yep, you're probably looking to set bash aliases21:29
giovanithis can be done in the .bashrc file in each user's home directory21:29
vecynice21:30
HellMindHow do I know my user is being chrooted21:30
infinityUsers aren't chrooted, processes are.21:31
HellMindthats why I asked the lvl of chroot,21:31
HellMindif I execute the sever using your tip, the process will be chrooted?21:32
infinityIs /opt/chrooted/ventrilo a chroot containing what will be run?21:32
HellMindyes21:32
infinityIf so, "chroot /opt/chrooted/ventrilo" would get you "in that environment".21:32
HellMindbut how should I start the process to chroot it then ?21:33
infinityBut, you probably want a nice init script or something that will start your vent server in the chroot.21:33
HellMind"chroot /opt/chrooted/ventrilo" will spawn the shell chrooted21:33
HellMindi got a .c script but it doesnt do chroot21:33
giovanivecy: if you want to make aliases for every user on the system, best to place them in /etc/profile21:33
HellMindit only does setgid( and setgroups(21:34
HellMindSo I should chroot lets say in the /etc/init.d script?21:37
infinityAssuming the application doesn't chroot itself (and I'm pretty sure vent doesn't/can't), then doing it in the init script is the cleanest place, yeah.21:38
infinityWith a nice init script, you can also do some clever things like make sure the chroot is always fresh (copy over libc6, etc) before you start your application.21:39
infinityI tend to do sketchy things like mount a tmpfs, copy the libraries that my application depends on, copy in the application itself, then start it.  Then you get a nice, fresh chroot every time you restart.21:39
infinity(Which means that package updates will stay in sync with the chroot)21:40
HellMindif you do a sym link for that21:40
HellMindyou are unchrooting?21:40
infinityYou can't symlink out of a chroot..21:41
HellMindthats right :D21:41
HellMindso all the symlink on the chroot will be unavailable21:42
HellMindif you chroot?21:42
HellMindit will show broken link21:42
HellMindor something?21:42
infinityWell, if they're absolute symlinks using full filesystem paths, yeah.21:42
infinityAny symlinks that are internally consistent IN the chroot would be fine.21:42
HellMindnice21:43
infinityA symlink is literally just a text string.  There's nothing fancy about it.21:43
infinitySo, if "foo" points to "/unf/whatever", if the latter exists in the chroot, the symlink works.21:43
infinityIf not, it doesn't.21:43
infinityThe file doesn't need to exist when you create the symlink, just when you want to resolve it. :P21:44
HellMindwhat happen if you do a cycling linking21:46
HellMindlike a => b => c => a21:46
infinityDon't? :)21:46
HellMinddont know?21:46
infinityDepends on your application.21:46
infinityIt won't hurt the system in any way.  They're just files on the disk.21:47
infinityBut an application reading "a" could get itself caught in an infinite loop if it's written by people unprepared for such siliness.21:47
HellMindbut isnt about the app, is about the filesystem, the app doesnt resolve a symlink -_-21:49
infinityThe filesystem just hands back a pointer to the real inode.21:50
infinityWhich libc then hands off to the application as the new file handle.21:50
infinityIf the application then opens that, finds another symlink, and loops... And doesn't notice it's in a loop.21:51
infinity*shrug*21:51
infinityIt's somewhat academic.  The answer is "don't do that, then".21:51
subln -s a b; ln -s b a; cat a gives me "cat: a: Too many levels of symbolic links22:19
sub:-)22:19
r3rman_Hey gais - http://my.brandeis.edu/bboard/q-and-a-fetch-msg?msg_id=0000Dn << how does that translate into ubuntu land?23:15
r3rman_I want ot tweak my /proc/sys/fs/file-max, inode-max (didn't find this one!) and perhaps something on ulimit23:16
r3rman_I am getting Too many files open exception23:16
giovanir3rman_: it has nothing to do with ubuntu23:17
giovanir3rman_: those are linux kernel settings ... feel free to modify them in ubuntu, it's no different than elsewhere23:17
r3rman_giovani, I don't see the inode-max on my install tho'23:17
giovanihowever, those posts are from years ago23:18
r3rman_yeah :s23:18
giovanir3rman_: those are from 2.223:19
giovanilong ago, things have changed heavily in 2.623:19
giovaniadjust file-max instead23:19
r3rman_aaah, pkill -9 actually works, whereas killall -p 9 fails and stops when it matches one process you don't own23:20
r3rman_giovani, where is file-max?23:20
giovani... same place as you thought inode-max was23:20
r3rman_w00t23:20
giovanigoogling clearly identifies all of this23:20
giovaniyou should know that these settings don't stay after a reboot23:20
r3rman_yeah, so I'll emacs that file, set it high, like 65535, and I can put a init.d to reconf it though right? or just even ~.bashrc ? (or ~/.profile?) - does it take effect immediately though?23:21
giovaniyou can either place the settings in /etc/sysctl.conf, or in /etc/sysctl.d/ -- read the README in that dir23:21
r3rman_thanks23:22
giovanir3rman_: no no no23:22
giovanir3rman_: sysctls don't belong in any of the places you mentioned23:22
infinityErr.23:22
infinityr3rman_: If you're getting "too many open files", it's probably not a kernel setting you're after, but a session limit.23:22
infinityr3rman_: See /etc/security/limits.conf23:22
r3rman_aah, right, I bumped into that one before I fell asleep earlier, cheers infinity23:23
infinity(See ulimit(1))23:23
infinityDefault for open files is 1024.23:23
r3rman_infinity, you think 65535 is the max?23:24
accolhey guys random question, if i get the 'host key verification failed' error when trying to connect to a server, what am i doing wrong (this is before i even get a chance to enter a password/username)23:24
infinityr3rman_: I think that if you have a process using 65535 open handles, you have a very broken application.23:24
r3rman_infinity, or a very awesome one23:24
infinityr3rman_: Raising ulimits is usuall a troubleshooting step, not a fix. :P23:25
r3rman_it isn't broke, it is just slamming two 8 cores like bitches, and ripping up lots of files, across two machines with 200Tb of storage. and doing crazy stuff. I've finally written something to organise my porn23:25
infinityNot seeing how 8 threads translates to 65 thousand open handles at once, but sure.23:26
infinityYou'll be heavily I/O limited if you don't serialise that a bit.23:27
r3rman_infinity, yeah, you are right, I was thinking to dump it all into a berkley db, maybe I will23:27
r3rman_but, I have zillions of threads raeping the nets and when they complete they touch a file and impregnate it with awesome23:28
r3rman_that front end is well tuned, and gets the highest throughput right nao, but as I cranked it up past 11 it didn't like it23:29
r3rman_* soft nofile 65535  < infinity do I need to restart session now?23:29
infinityr3rman_: Logging out and logging in should be enough to make it happy.23:30
infinity(Or whatever starts a new session for your process... su, sudo, etc)23:30
infinityr3rman_: You can verify you got it right with "ulimit -a" and check the values.23:30
r3rman_open files is still 102423:31
r3rman_aah need to log in / out23:31
r3rman_I could also run run a ulimit command to set it in memory now?23:31
infinityr3rman_: Yeah.  Limits are set by PAM, so you need a fresh session.23:31
r3rman_oh ok... I am accessing via vnc... perhaps I can logoff and on graphically... who knows, never tried23:31
infinityr3rman_: ulimit will only let you change user limits up to the hard limit, since root controls those.23:32
infinityr3rman_: But that would be lost on the next session start, hence why setting the default(s) for the user(s) makes a bit more sense.23:32
r3rman_ok. I've fusked my vnc now, I loaded gnome-session to see if I could logout that way, but that brough about the asdf abfh bug23:33
r3rman_lol23:33
r3rman_ulimit -n still gives 1024.... reshoe tiem23:37
uvirtbot`New bug: #414232 in munin (universe) "munin-node tries to "autoconf" /usr/share/munin/plugins/postgres_space_" [Undecided,New] https://launchpad.net/bugs/41423223:48
andolBy the way, if someone feels like confirming that one23:49
andol...feel free to do so :)23:49
psi-jackOkay.. Since my on-board NIC's capable of doing Gigabit isn't working as I'd hoped they would...23:52
psi-jackI'm looking for options of PCI-based NIC's that can do it and are well supported by Linux.23:52
psi-jackIntel and or Netgear brands would be preferred.23:52
psi-jackAnyone with suggestions of hardware and model numbers?23:58
giovaniany of the intel pro stuff is good23:58
giovaninot cheap though23:58
psi-jackI don't mind spending about $100/card23:59
psi-jackAs long as they're worth it.23:59

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