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

=== marlinc is now known as marlinc|away
=== marlinc|away is now known as marlinc
brad100does anyone here use thunderbird with postfix-dovecot? for some reason thunderbird cant verify my account and i cant figure out why02:33
Patrickdkwell, only one of two problems02:36
Patrickdksetup thunderbird wrong02:36
Patrickdksetup dovecot wrong02:36
Patrickdkyou do have logs right?02:36
brad100yeah02:37
brad100how would i show them to you? xD im a complete noob im sorry02:38
Patrickdk!pastebin02:38
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.02:38
brad100which logs do i show you02:39
brad100it would have to be dovecot02:39
brad100@patrickdk02:43
chaz68http://imagebin.org/261604 - Anybody got some ideas here.  I'm running out of ideas...02:51
chaz68Using Apache02:52
brad100@Patrickdk02:53
brad100anyone?03:09
=== brad100_ is now known as brad100
=== brad100_ is now known as brad100
TimRedoes anybody know how I can setup domain.com/~username just for webpages and be able have my users just login into there directory an noting else?03:47
qman__TimRe, apache mod_userdir03:51
AustnealHello!04:00
AustnealI'm trying to set up postfix / dovecot to use virtual users / multiple domains... would anyone like to help me? :S04:00
Austnealhave looked at tons of guides and tutorials, but none of them seem to turn out for me04:02
AustnealI mean, I can get postfix / dovecot installed and working with system accounts... but when I try to do anything with virtual users / domains is where I have a ton of trouble04:03
qman__Austneal, https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto04:07
Austnealqman__ if that works, Ill love you :P04:11
=== thumper is now known as thumper-afk
AustnealNope, already not working04:15
Austnealits telling me to remove a line that doesnt exist04:15
Austneal"Comment the line  mailbox_command = procmail -a "$EXTENSION". It will not be used."04:17
Austnealthat line isnt in the file04:17
Austnealcontinued on.... now I've hit another dead end04:42
Austnealsigh... should have stuck with windows server04:43
Austnealtelling me to go to /home/vmail/domain.com/04:44
Austnealdoesnt exist....04:44
qman__create it04:55
qman__it's not meant to be taken verbatim, you have to substitute your actual setup for it04:56
Austnealthat kind of defeats the purpose of setting this up, doesnt it?04:56
Austnealalright though... I'll try it04:57
Austnealnope, still failed04:58
qman__that directory must be writable by postfix04:59
Austneal_that was strange05:01
=== Austneal_ is now known as Austneal
Austnealhow would I see if its writable by postfix?05:04
qman__postfix run as the user postfix05:04
qman__that user needs write permission, so you either need to chown it or chmod it appropriately05:04
Austnealuh...05:04
qman__postfix can't deliver mail there if it can't write to it05:04
Austnealtutorial made me chown it for a different user05:05
Austnealer05:05
Austnealit set that as the home directory to a user I created05:05
qman__oh, didn't see that05:06
qman__it has you create a user dedicated to this05:06
qman__ok05:06
qman__so what failed05:07
Austnealit didnt make the mailbox folder05:07
Austnealwhen I sent it mail, it said the delivery permanently failed05:07
qman__and /home/vmail existed, and was owned by the vmail user?05:07
Austnealcorrect05:08
Austnealactually... wait05:08
Austnealhow would I see who owns that directory?05:08
qman__ls -l05:08
qman__also, it doesn't automatically create the domain directories, the user add script does05:09
Austneal drwxr-xr-x  3 vmail  vmail  4096 Jun 17 04:57 vmail05:09
qman__the script under "Create Dovecot Users"05:09
AustnealOk... what but I manually created them like you said to earlier :/05:09
Austneallet me restart service and try again05:09
qman__did you follow through that part with that script?05:10
Austnealnot yet05:10
Austnealit told me to test it with the mail command first05:10
Austnealwhich also didnt work05:10
qman__ok05:11
Austnealshould I try to create the script first?05:11
qman__looks like an oversight in the guide05:11
qman__while the domain.com may or may not be auto generated, and the users' directories are auto generated, /home/vmail is not necessarily auto generated05:12
Austnealhas been there anyway05:13
Austneal....05:13
Austnealmessage didnt go through05:13
Austneal"/home/vmail" is there05:13
qman__show me the exact error line05:13
qman__tail /var/log/mail.err05:13
Austnealscreen just flooded with lines....05:14
qman__should have only grabbed the last 505:14
Austnealwhich one would you like? :/05:14
Austnealthis looks relevant:05:14
qman__just pastebin it all05:14
AustnealJun 17 01:45:51 domU-12-31-39-0E-16-55 postfix/postmap[18340]: fatal: open /etc/postfix/transport: No such file or directory05:14
Austnealok05:15
Austnealone sec05:15
qman__ah, that's definitely important05:15
qman__was that from some other guide? it's not in this one05:15
Austnealum... Im not sure05:16
Austnealhttp://pastebin.com/SLdEEseB05:16
AustnealIt very well could be >.<05:16
qman__ok, what I think you need to do is start fresh05:16
qman__and by that I mean, apt-get purge all the mail packages05:16
qman__and reinstall, getting fresh, stock config files to work with05:17
AustnealI did apt-get purge05:17
Austnealand autoremove05:17
Austnealthere was no /etc/postfix directory when it was done :/05:17
qman__did you use --purge when you did autoremove?05:17
Austnealapt-get autoremove --purge05:18
Austneal?05:18
qman__yes05:18
Austnealugh05:18
Austnealso... I need to remove postfix and dovecot, yeah?05:18
qman__yeah, purge those packages, then apt-get autoremove --purge05:19
Austnealdovecot didnt remove05:19
qman__that will blow away all the config and data relating to those packages so you can start fresh05:19
qman__might be dovecot-common05:19
Austnealit didnt05:20
Austnealall of the dovecot config files are still there05:20
Austnealno again :/05:20
qman__ok05:22
qman__try also dovecot-imapd and dovecot-pop3d05:22
qman__and then, do dpkg -l | grep dovecot05:22
qman__if any are still installed, purge them05:22
qman__and, after that, if the directory still exists, remove it05:23
Austnealthis is strange05:23
qman__same with postfix05:23
Austnealah, ok05:23
Austneal4 packages left05:24
qman__the thing is, the default modes are intentionally non-destructive, they will keep your old config and databases in case you wanted to recover it05:24
qman__but in this case we want to blow it away and start fresh05:25
qman__you won't have to remove and re-add the vmail user though05:25
qman__a user is a user05:25
Austnealalright, all done05:25
Austnealnow... start over on the guide? >.<05:25
qman__yes05:25
qman__this time you should have a stock default config to work with and you should get a working mail server out of it05:26
Austnealalrighty... here goes05:26
qman__if not, pastebin the errors and your postfix configs05:26
Austnealrgr05:27
Austneal...still missing that first step05:28
Austnealit says to comment out a line that doesnt exist... that shouldnt be a problem though, should it?05:28
qman__no05:29
qman__it's telling you to remove it, so if it's not there, you're already set05:29
AustnealOk, im to the part of sending a test email05:36
Austnealfailed again...05:37
Austnealhttp://pastebin.com/LDFFTSUP05:38
Austnealqman__, theres the log... its still giving that same error05:39
qman__ok05:40
qman__do service postfix restart05:40
Austnealdone05:40
qman__in that log, it's showing that postfix was called with no options, and then it was attempted to start while running05:40
qman__try the mail again and post again05:40
Austnealrgr, one sec05:40
Austnealmessage failed again05:41
qman__same errors?05:42
qman__try to find any references to that file, /etc/postfix/transport, in the postfix config05:42
qman__just grep for it05:42
Austnealnothing in the main.cf05:43
Austnealand Im not seeing anything in master.cf05:44
qman__ok05:45
* Austneal is stumped05:46
qman__just as a test05:47
qman__touch /etc/postfix/transport; postmap; service postfix restart05:47
Austneal_Sorry, webchat froze up on me05:53
Austneal_what about that error? :/05:53
qman__<qman__> touch /etc/postfix/transport; postmap; service postfix restart05:53
qman__then try the mail again05:53
Austneal_fatal: usage: postmap [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file...05:53
qman__oh, postmap transport05:53
qman__sorry05:53
Austneal_kk05:53
Austneal_...transport?05:54
Austneal_or vmaps?05:54
qman__actually I don't think that's right, hold on05:54
qman__postmap /etc/aliases; postmap /etc/postfix/vmaps05:55
Austneal_run that?05:55
qman__yes05:55
qman__then restart postfix, then mail again05:56
Austneal_ postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?05:56
qman__ok, what about vmaps05:56
Austneal_failed again05:57
Austneal_um... idk, thats all it gave me05:57
qman__ok, so vmaps worked05:57
qman__post the new log05:57
Austneal_looks like it05:57
Austneal_http://pastebin.com/BYyPmrnp05:58
qman__ok, so the only new line is that error05:59
qman__what about mail.log, anything in there?05:59
Austneal_there is...06:01
Austneal_http://pastebin.com/kYwENYxu06:01
qman__there we go, now we have something06:01
qman__user unknown06:02
qman__is that email address in vmaps?06:03
Austneal_it is06:03
Austneal_vmaps looks like this:06:03
qman__oh, I know what's up06:03
qman__see that earlier line about mydestination06:03
Austneal_test@domain.com      domain.com/test06:03
Austneal_aaah06:03
Austneal_I forgot the trailing slash06:04
qman__mydestination should be a local domain name, not your internet domain06:04
qman__it's conflicting with the virtual domain06:04
Austneal_?06:05
qman__in main.cf06:05
qman__for example, mine is "mydestination = hilltopsrv.home.hilltop.local"06:05
Austneal_so I should remove my domain name from it?06:06
qman__because yours is set to your actual domain name, postfix sees that first and tries to deliver to a local user that doesn't exist06:06
qman__set it to a local, internal-only name06:06
Austneal_"localhost"06:06
Austneal_?06:06
qman__no06:07
qman__localhost has special meaning06:07
qman__it should be your servers' hostname .something06:07
Austneal_.something? :/06:08
qman__you would follow whatever convention you're already using on your network06:08
qman__mine is hilltop.local06:08
Austneal_...this is the only server on the network06:08
Austneal_im not following >.<06:09
qman__then you need to start one, do you have a workgroup or something?06:09
Austneal_no....06:09
Austneal_this is an aws server06:09
qman__ok, then I would do it like this06:09
qman__hostname.aws.yourdomain.com06:10
qman__you don't actually have to make it resolve beyond your own server06:10
qman__it's also a good idea to add that to the hosts file so that it points at itself06:10
Austneal_that sounds like a good idea >.<06:12
Austneal_ok... I think I got it06:13
Austneal_added that name to the hosts file, and pointed it to localhost... yeah?06:14
qman__well, point it to your IP, but yeah06:14
qman__not a big deal as it will only affect locally-bound mail06:14
Austneal_I think it worked >.>06:15
Austneal_...it didnt work06:15
Austneal_the mail sent, but its not showing06:15
Austneal_oh...06:16
Austneal_one sec06:16
Austneal_bleh06:16
Austneal_still now showing up06:16
qman__ok, what's mail.log say now?06:17
Austneal_...wheres the log at again?06:18
qman__ /var/log/mail.log06:18
Austneal_http://pastebin.com/wad00TL006:18
qman__ok, this is the relevant error: maildir delivery failed: create maildir file /home/vmail/arachtis.com/test/tmp/1371449797.P12689.arachtis.com: Not a directory06:19
qman__so, I would do this: rm -rf /home/vmail/arachtis.com06:21
qman__and see if it recreates it06:21
Austneal_ok, resend the mail?06:21
qman__if it doesn't, I would do: mkdir -p /home/vmail/arachtis.com/test; chown vmail.vmail -R /home/vmail06:22
qman__don't need to resend, it should keep trying06:22
qman__you can send more if you like06:22
Austneal_it made a bunch of directories06:23
qman__ok, did the mail get delivered now?06:24
Austneal_i think so...06:25
Austneal_there are 3 files in the "new" folder06:25
qman__ok, then it did06:25
qman__postfix is working06:25
Austneal_\o/06:26
Austneal_now on to the dovecot mess xD06:26
qman__pretty sure the myhostname was the root cause of the problem and the rest was caused by poking at it06:26
Austneal_cd /06:26
Austneal_...that was supposed to go into the terminal >.<06:26
Austneal_lol06:26
Austneal_...will a self signed cert work well with dovecot?06:29
qman__it will work06:31
qman__you have to accept it at the client06:31
qman__if you want peoples' mail clients to 'just work' without giving them a warning, though, you will need to buy one06:31
qman__there's also startssl which offers a free, trusted SSL cert06:32
Austneal_I bought an SSL cert06:36
Austneal_Guess I just need to set it up with dovecot06:36
qman__dovecot takes it in pem format out of the box06:36
qman__just swap it in place of the existing snakeoil pem06:36
Austneal_it works with apache at least :/06:36
austnealirc froze again...06:40
=== austneal is now known as Austneal
AustnealIm a bit confused...06:43
Austnealat the bottom where its making the script... it says to add this code segment06:43
Austneal...add it to what and where at? >.<06:43
Austnealderp, nevermind06:45
Austnealqman__ which config file was it that set the SSL cert?06:54
qman__both the postfix and dovecot config files point at one06:55
qman__just search for SSL06:55
Austnealemail is a nightmare....07:04
Austnealgetting an error "cant connect to server" when I use SSL07:04
Austneal#$&@YT#YU07:12
Austnealdovecot is broke07:12
Austnealjesus christ07:12
Austnealqman__ you still there?07:13
=== smb` is now known as smb
=== mp3 is now known as madprops
=== thumper-afk is now known as thumper
hackeronhey, how would I detect and automatically mount a plugged in hard drive? - It used to be dbus/hal but I believe it changed in the last few years?11:38
halvorsHi! I have following mailbox_command in my main.cf configuration file for Postfix: mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"11:54
halvorsBut Procmail needs to be set in the mailbox_command in my main.cf file? How do i do that?11:54
mardraumvi main.cf ?11:55
halvorsNo i mean, what should my new mailbox_command look like?11:56
mardraumhttp://www.postfix.org/postconf.5.html#mailbox_command11:57
mardraumthere is this sweet new thing out there, it's called google11:58
mardraumit saves you from asking basic and well documented question on irc11:58
halvorsSeriously, do you think i'd be asking here if i'd found anything that helps me on google? :P12:00
halvorsSo why not shut down the irc channel since google exists then?12:00
mardraumyou couldn't even find the postfix documentation?12:01
greppyhalvors: you would be amazed at the number of people that ask very well documented questions here.12:01
mardraumand halvors, yes, I think you would ask here, because I think you are probably lazy and don't reallt want to understand things, just make something work, or think it's working until it breaks and you are back at square one.12:02
halvorsWell, since i'm using the mail-stack-delivery package, i don't know how tat works with procmail...12:02
mardraum1. install procmail 2. configure postfix12:02
halvorsI'm asking here since i simply don't find anything useful on google for that issue. If you know the answer please help me instead of bugging me about google :)12:03
halvorsmardraum: No shit!12:03
halvorsCould i add 2 mailbox_command lines?12:06
halvorsOr merge both into one?12:06
zuljamespage/yolanda: https://code.launchpad.net/~zulcss/nova/nova-ftbfs-jun17/+merge/16977012:13
=== shanemeyers_ is now known as shanemeyers
yolandazul, why my changelog entries are appearing in the diff?12:29
TimRedoes anybody know how I can setup domain.com/~username just for webpages and be able have my users just login into there directory an noting else?12:33
zulyolanda:  because i merged them12:34
yolandamm, wasn't it already merged?12:34
yolandaanyway, it looks good12:34
pmatulis_TimRe: research mod_userdir12:35
TimReok12:35
TimReanything else I need there pmatulis_12:36
pmatulis_TimRe: no, just enable the mod and do a little configuring of apache, it's not much12:38
TimRealright thx for your help12:38
pmatulis_TimRe: not quite sure what you mean by 'login there directory and nothing else'.  you probably want chroot ftp access, if so, that would be a separate thing, investigate 'vsftpd chroot'12:39
TimRealright12:39
TimRethx again for that info12:40
thyranthi guys, I need to remove some malicious code from my ubuntu server 10.04.12:46
thyrantsudo rm -R /dev/12:46
thyrantrm: cannot remove directory `/dev/shm': Device or resource busy12:46
thyrantrm: cannot remove `/dev/pts/2': Operation not permitted12:46
thyrantrm: cannot remove `/dev/pts/0': Operation not permitted12:46
thyrantrm: cannot remove `/dev/pts/1': Operation not permitted12:46
thyrantrm: cannot remove `/dev/pts/ptmx': Operation not permitted12:46
thyranthow do I stop it from running?12:46
hallynsmb: hey, you mentioned a libvirt bug with 1.0.6 in saucy?  can you give some more details for zul and I?12:48
hallynthyrant: what is malicious - the thing pinning/dev/pts/2, or the thing trying to rm -rf /dev?12:49
hallynthyrant: lsof /dev/pts/0 will show you who is pinning that file12:49
smbhallyn, sure... I was wondering whether I actually should better open a lp bug report so it is simpler to track12:49
hallynsmb: sounds good, thanks12:49
thyrantI am the one trying to RM the folder, it won't let me as something there is running12:49
thyrantno respons from lsof /dev/pts/012:50
thyrantalso it has closed my ssh .. ssh_exchange_identification: Connection closed by remote host12:51
thyrantbut I still have a ssh window open12:51
smbhallyn, zul bug 119178212:55
uvirtbotLaunchpad bug 1191782 in libvirt "Timeout connecting 12.04 virt-manager to libvirt 1.0.6-0ubuntu1 in Saucy" [Undecided,New] https://launchpad.net/bugs/119178212:55
hallynsmb: thanks12:56
thyrantI am running a ssh session in nautilus which is currently deleting as much as possible of the dir12:57
Picithyrant: what makes you think that there is 'malicious code' in /dev/ ?13:06
thyrantwell, many of my sites where hacked this friday and when I searched for recently changed files I found a php.ini hidden in the joomla 1.5 filesystem. This joomla install was from way back three years ago and grabbed from a shady site.13:09
thyrantso nautilus managed to remove the directory without any errors13:12
thyrantI need to make ssh working again, I currently cannot connect13:31
thyrantthe ssh session i currently have says slots@warcamp:/sites$ cd /13:32
thyrant-bash: /dev/null: Permission denied13:32
thyrant-bash: /dev/null: Permission denied13:32
thyrant-bash: /dev/null: Permission denied13:32
thyrant-bash: /dev/null: Permission denied13:32
thyrant-bash: /dev/null: Permission denied13:32
thyrantslots@warcamp:/$13:32
airtonix!pastebin13:38
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.13:38
thyrantsorry..13:39
greppythyrant: I have a feeling the permissions on /dev/null got hosed.13:39
greppywhich will break all kinds of things.13:39
thyrantoh so it's not because of the malicious code?13:40
=== wedgwood_away is now known as wedgwood
jpdsthyrant: Compare "ls -l /dev/null" on a working system and yours.13:43
thyrantls -l /dev/null13:44
thyrant-rw-r--r-- 1 root root 0 2013-06-17 16:39 /dev/null13:44
jpdsthyrant: Well, something changed that.13:45
thyrantit's supposed to say crw-rw-rw- 1 root root 1, 3 Jun 17 09:06 /dev/null13:46
thyrantanything I can so except for reinstall my OS?13:54
rbasakRestore from backup?14:03
thyrantwhich program should I use for this?14:04
pmatulis_thyrant: regain confidence in your system by re-installing it.  how big a problem is that for you?14:06
thyrantit's something I planned with my hosting guy last Friday when the problems began. I have it booked tomorrow. Backing up my stuff, just wanted to know of my options14:08
thyrantfor future reference how often to you guys do complete backups of webhosting servers? twice a year? and which program do you use?14:10
psivaahallyn: out of lxc and ceph test hangs that you were investigating, we now have only ceph test hangs. The lxc tests appear to complete fine starting from the images of yesterday14:15
psivaahallyn: i've reported a bug for the ceph test hangs, bug 119180014:16
uvirtbotLaunchpad bug 1191800 in ubuntu-test-cases "ceph  smoke tests fail to complete with saucy server installations" [High,New] https://launchpad.net/bugs/119180014:16
hallynpsivaa: can you re-run the lxc tests once again?  half expect them to fail again...14:17
hallynpsivaa: when the tests fail, does the utah vm then stay up?14:18
hallynI ran the tests twice on my own box - using utah to setup and start a vm - and it exited both times though with some weird log msgs14:18
psivaahallyn: ok, when the tests hang, then utah vms would be active since utah does not timeout for some reason and destroy the machine.14:19
psivaahallyn: but when the tests complete (even with failure) the vm usually gets destroyed, but we could add a flag -n to keep the vm after the tests14:19
hallynpsivaa: you mean utah supports -n now, or you mean that's something that could be added to utah?14:20
psivaahallyn: yes, that support was there from the beginning but we do not use it by default in order not to clutter our servers in the lab14:22
hallynok, thanks14:28
hallyn(right now the box is doing other things :)14:28
geniiI'm just curious if anyone knows why for mailutils, has to be set in PAM and theres no conf file like /etc/mailutils.conf ... was pissing me off because i have everything else set for that (Dovecot/Exim4/Prayer setup)14:50
patdk-wkhas to be set in pam?14:51
geniipatdk-wk: Yes, to use Maildir instead of /var/mail14:52
geniieg: So the webmail works but when you ssh/console login, always said "No Mail". Finally got it sorted but finding the info on how to set it took some time, not well documented.14:54
zuljamespage/yolanda/roaksoax: https://code.launchpad.net/~zulcss/ceilometer/ceilometer-fbfs-jun17/+merge/16982014:56
jamespagezul, ack14:56
jamespagezul, I could do with your help on a quantum ftbfs I'm seeing14:56
jamespageI had a stab at fixing up the udev issues we see in PPA's14:57
zuljamespage:  thats next14:57
jamespagebut I hit some other weird problems14:57
zulopenvswitch?14:57
jamespagezul, bah - OK - I'll leave it with you then14:57
zuljamespage:  i was just going to skip the test if it raises and exception14:57
jamespagezul, for udev?14:58
zuljamespage:  for the udev race in the test14:58
jamespagezul, I don't see a udev race14:58
jamespageudev is not supported in the PPA's right?14:58
jamespagewe already have a skip for one of the tests - I just added it to the two new ones in the same test file14:58
psivaahallyn: a failed lxc vm that's in our server is utah-10304-saucy-server-amd64, if you'd like to have a look14:59
zuljamespage:  dont think so14:59
zuljamespage:  are you seeing something different?14:59
zuljamespage:  EnvironmentError: Could not create udev monitor14:59
zulhttps://launchpadlibrarian.net/142655662/buildlog_ubuntu-saucy-i386.quantum_1%3A2013.2%2Bgit201306170931~saucy-0ubuntu1_FAILEDTOBUILD.txt.gz15:00
jamespagezul, yeah - its not a race, its just not accessible in the PPA15:00
hallynpsivaa: i just wanted to know that it would fail again.  sounds very sporadic.15:00
jamespagezul, but I hit some other issues after that one15:00
zuljamespage:  okies ill take a look15:00
patdk-wkgenii, mailutils does have it's own config file, it's right in the manual15:00
zuljamespage:  like what?15:00
patdk-wkhttp://mailutils.org/manual/html_node/configuration.html15:00
geniipatdk-wk: Deprecated15:00
hallynjamespage: the ceph utah testcases, do they use lxc at all?  (psivaa is getting failures in both ceph and lxc test cases, but sporadic)15:00
patdk-wkheh? I tested it, it works on my system15:00
jamespagehallyn, nope15:01
geniiThe mailituls.rc doesn't get parsed15:01
patdk-wkgenii, it does on ubuntu 12.0415:01
hallynjamespage: would you mind taking a look at the ceph failures to see if you can see a root cause?15:01
patdk-wkbut mailituls.rc won't be, mailutils.rc will be15:01
hallynreally I'm thinking it must be environmental...  bad proxy or something15:01
geniipatdk-wk: Hm, odd. I readt that documentation first and tried setting it that way. I'm using 13.04, maybe it's changed15:01
geniiTypos aside ;)15:02
patdk-wkI have never used mailutils till now :)15:02
jamespagepsivaa, I thought we got that test disabled as it was not reliable?15:03
jamespagehallyn, ^^15:04
hallynhuh15:04
hallyn:)15:04
psivaajamespage: yea, i think we disabled one of the ceph tests (i386 or amd64 which i could not remember) during the raring cycle but since saucy they were somehow re-enabled15:06
jamespagepsivaa, just disable them again please15:06
psivaajamespage: both ceph tests?15:06
jamespagepsivaa, yes please15:07
hallynjamespage: well then thanks for nothing :)15:08
hallynj/k15:08
hallynpsivaa: all right i'll look at this after some sru stuff is done15:08
jamespagehallyn, we test ceph in a different way now15:08
hallynjamespage: yeah, i was just hoping you'd find a root cause that explained the lxc failures too :)15:10
psivaajamespage: ok will do. it would be better to remove them from the branch. because if they stay there the automatic jenkins smoke test creation script runs it will re-enable the ceph tests again.15:10
jamespagepsivaa, OK - I'll remove them then15:10
psivaajamespage: hallyn: thank you :)15:10
jamespagepsivaa, next question - where is the branch?15:10
psivaajamespage: https://code.launchpad.net/ubuntu-test-cases15:11
progre55Hi guys. When I run "grep -a <pattern> /dev/sda" I get lots of matches, but now I need to find where those files are located. Tried recursive grep on root, as in "grep -a <pattern> -r --exclude-dir=dev --exclude-dir=proc --exclude-dir=sys /" but didn't get any matches. Any suggestions, please?15:35
Austnealhi qman__ :P15:44
alibamahi all - i want to set it up so that when users are added to the system their new home directory is /some-path/another-path/email@address15:44
alibamawhere do I configure this?15:44
alibamaoh yeah, all user names are email@address.edu15:44
alibamaso it's really just /some/path/username15:45
Austnealuseradd -b /some/path/username email@address.edu15:45
AustnealI think....15:45
patdk-wkprogre55, why do you assume matches on /dev/sda == matches in files?15:45
patdk-wkthat would only be true if you where at 100% full filesystem15:46
PryMar56useradd -D15:46
alibamais there some way to make this a default?15:46
Austnealwhat PryMar56 said15:46
Austneal:P15:46
geniialibama: DHOME= in /etc/adduser.conf15:46
alibamagenii: thank you!15:47
progre55patdk-wk: well okay, I have split up my /dev/sda and set up lvm. And /dev/mapper/vg-root is mounted to /. When I grep /dev/mapper/vg-root, I get matches, but not when I grep /15:47
geniialibama: You're welcome15:47
geniialibama: It will automatically make a directory with their username underneath whatever directories you specify in there.15:48
patdk-wkprogre55, same answer15:48
alibamagenii: this is perfect - thanks!15:49
progre55patdk-wk: thanks :)15:49
alibamahey folks - have fixed where the home directory is (thanks genii ) now need to allow the period and @ symbol in the regex16:57
alibamabasically user names need to be email addresses and so I'm working on editing name_regex16:58
alibama"^[a-z][-a-z0-9]*\$" is what I started with - i've tried "^[a-z][-a-z0-9\.\@]*\$" "^[a-z][-a-z0-9.@]*\$" and some other variations, but i'm not getting it right16:58
sarnoldalibama: no need to backslash-escape . in a [] character class, no need to escape @ at all..16:59
alibamasarnold: thanks - let me test - do i need to restart any services?17:00
alibamaNAME_REGEX="^[a-z][-a-z0-9.@]*\$" is what I've got and it's throwing errors17:00
sarnoldalibama: depends on the service and where you're setting it...17:01
alibamasarnold: it's the adduser command?17:01
sarnoldalibama: probably don't escape the $ either17:01
alibamasarnold: Thanks!17:02
alibamathat fixed it :)17:02
sarnoldalibama: nice :)17:02
sarnoldalibama: oh, maybe change the * to + -- you want at least one character in the username :)17:02
alibama;)17:02
alibamawhere do most folks put their .key and .pem files?17:19
Coreyalibama: For what, exactly?17:19
alibamawell just for safe keeping?17:19
alibamai just didn't know if there were some best practice or common place to put them17:20
xslhello all ... can anyone help with a bridge configuration and LXC? i need to give a container an external ip from my server17:20
Coreyalibama: No, I mean which .key and which .pem files?17:20
alibamaCorey: doh :)  these are just some openssl self signed files17:20
Coreyalibama: You're still not answering the question. I *get* that they're parts of an OpenSSL keypair, what are they *for*?17:21
Coreyalibama: Web server? Jabber OTR creds? Mail server? Something else?17:22
alibamaCorey: sorry man -- they are for sftp access to the server17:22
sarnoldsftp with x509 certs? o_O17:22
alibamai'm going through this process here https://help.ubuntu.com/12.04/serverguide/ftp-server.html17:22
CoreyYeah, that's a little nutty, generally one uses SSH keys for that.17:22
sarnoldah, FTPS. :)17:23
alibamaso i guess /etc/ssl/certs is my answer17:23
CoreyFTPS is the term you're looking for.17:23
alibamayeah - sorry for the newb17:23
sarnoldalibama: actually, can you use sftp instead of ftps? ftp is an old and cranky protocol.17:23
alibamasarnold: i think i probably should17:24
Coreyalibama: But I either stash them in /etc/ssl or /etc/pki; but *watch* your permissions, you don't want those world readable.17:25
alibamaCorey: cool - i think i have made this vastly more complex than need be17:25
alibamaso sftp would run over ssh and i don't really need to set up an ftps server at all....17:26
alibamathat makes pretty good sense, i was confused about sftp vs ftps17:26
alibamai think with this in mind I"m going to follow http://kpdirection.com/technology/setting-up-sftp-on-ubuntu/17:28
Corey!tutorial17:30
ubottudocumentation is to be found at http://help.ubuntu.com and http://wiki.ubuntu.com - General linux documentation: http://www.tldp.org - http://rute.2038bug.com17:30
Coreyalibama: What's the actual use case you're trying to get done?17:30
alibamasome folks uploading a bunch of ginormous files to their home directory for use in a bioinformatics app - they're the only ones that need to see their files, and no one else will ever see them17:31
Coreyalibama: sftp is your friend.17:31
sarnoldalibama: hrm. That tutorial would allow the web server to write to any user's files. I also don't see any way for users to actually add their own files to those directories. it looks odd.17:32
Corey(It also supports things like scp and rsync)17:32
sarnoldalibama: skip that tutorial.17:32
CoreyYeah, that tutorial is nutty.17:32
alibamaCorey: thanks :)  I think this is going to be much better - they'll have limited shell access with this too?17:32
Coreyalibama: If you install scponly and set that to their shell, yes.17:37
alibamaperfect17:37
brad100does anyone here use dovecot with thunderbird? i set up dovecot and thunderbird cant verify my account and i dont know why17:40
mgwWhat is the d-i option for setting an alternative ntp server?17:48
JanCbrad100: check that you configure SSL or TLS correctly if you use that17:54
JanC(I hope you use that :p )17:54
adam_g_Daviey, any chance you can wave  openstack 2013.1.2 thru the raring upload queue? the original keystone got trumped by security, so there is a new one there (0ubuntu2) to include fixes18:40
Davieyadam_g_: I'll review after i've eaten, deal?18:44
adam_g_Daviey, sure. but don't forget to eat your vegetables18:45
DavieyYes sir!18:46
six_stormhello everyone.  can anyone assist me on a BIND9 setup?18:48
=== marlinc is now known as marlinc|away
Davieyadam_g_: why are there 2 of everything? https://launchpad.net/ubuntu/raring/+queue?queue_state=119:14
adam_g_Daviey, uh i dont see duplicates, with the exception of keystone19:15
adam_g_but one supercedes the other19:15
=== brad100_ is now known as brad100
=== brad100_ is now known as brad100
zulSpamapS:  is anything happening with MariaDB?19:18
SpamapSzul: It has been packaged for Debian and is awaiting somebody to look at the packages.19:22
zulSpamapS:  like an archive admin?19:22
SpamapSno19:23
SpamapSlike, a DD19:23
SpamapSFor some reason I'm the only DD who actually gives a rats ass about MySQL and its demonspawn.19:24
zulSpamapS:  hah ok19:24
Davieyadam_g_: Ah, i thought it was simply a rebase for an already inflight SRU.  As it's a fresh one, i'd rather look again in the morning now.  Sorry.19:25
adam_g_ok19:25
=== marlinc|away is now known as marlinc
=== marlinc is now known as Marlinc
Coreymgw: "d-i option?" Multiple "server" lines in ntp.conf isn't working for your use case?19:43
=== gary_poster is now known as gary_poster|away
=== gary_poster|away is now known as gary_poster
=== glebihan__ is now known as glebihan
=== brad100_ is now known as brad100
=== marlinc is now known as marlinc|away
=== marlinc|away is now known as marlinc
kobrienahoy. everytime I log into my server with encrypted home I have to run "ecryptfs-mount-private". Any idea how I can have it automatically unlock at login?22:05
tyhickskobrien: does the file /home/.ecryptfs/kobrien/.ecryptfs/auto-mount exist?22:07
kobrienno. if I touch it, will that sort it?22:08
tyhickskobrien: yes, it should22:08
kobrienthanks, I'll try that22:08
sarnoldtyhicks: is Dustin's answer here no longer The Best Answer? http://askubuntu.com/a/116198/3381222:10
tyhickssarnold: his answer is the Best Answer for that specific question (How do I get an automatic password prompt if I use SSH key authentication?)22:12
tyhickssarnold: kobrien didn't mention anything about using SSH key authentication and the file that indicates that an auto-mount should occur doesn't exist, so I think that creating the auto-mount file should work for kobrien22:13
sarnoldtyhicks: aha, thanks :)22:15
tyhicksnp :)22:15
sh_they folks. I'm trying to create a package with checkinstall that I can use on a few identical debian/ubuntu servers. I've added a few extra lines into my Makefile/install area to create some directories in addition to some similar commands already there (mkdir -p). When I checkinstall on the server that I'm creating the package on (in the source tree) everything in my Makefile is done22:19
sh_tcorrectly. When I copy the package to another server, only some of these commands are actually ran. I've tried --fstrans=no to no avail. any ideas what might cause this?22:19
mgw1so, I have this in my preseed — d-i     mirror/http/proxy string http://x.x.x.x:8000/22:23
mgw1But tcpdump on host x.x.x.x does not show any traffic on port 800022:23
mgw1On the machine where the installer is running, I can jump to another console and wget via that proxy, but the installer itself is not using the proxy.22:24
mgw1Any ideas?22:24
Coreymgw1: To my understanding the syntax that kickstart at least is looking for is http_proxy22:30
Coreymgw1: Not familiar with "d-i" as you're using it, can you expand it for me?22:30
sarnoldCorey: iirc, that'd be for the http_proxy environment variable; I don't think apt-get respects that, preferring its own http proxy configuration. iirc. :)22:30
mgw1Corey, sarnold: the d-i I believe are debian specific installer options in the preseed22:31
Coreysarnold: Right, but that's not during preseed generally. Once the box is up that belongs in etc/apt/apt.conf.d/00proxy22:31
sarnoldeverything I know about it (little) comes from section b.4.4 here: http://www.debian.org/releases/stable/amd64/apbs04.html.en22:32
mgw1the mirror/http/proxy string …. in the kickstart is along with "d-i mirror/http/hostname string archive.ubuntu.com"22:32
mgw1that part is working fine22:33
mgw1B.4.4. Mirror settings22:33
Coreymgw1: And your goal here is to get the proxy used for packages, or something else?22:38
mgw1Corey: yes, during a pxe install22:40
Coreymgw1: Okay. There was a bug around this back in ~2010 that resulted in that string being applied to all connections (curl, wget, etc) mentioned in the preseed config.22:40
mgw1yeah, i saw that  bug22:41
mgw1but this is the opposite22:41
Coreymgw1: Dumb question, can the node resolve x.x.x.x (assuming hostname and not IP) and route to it?22:42
mgw1It's an ip22:42
mgw1and yes, it can route to it22:42
mgw1I ran the exact same wget mentioned in syslog, but with http_proxy set, and it ran22:42
Coreymgw1: This is kinda ridiculous, but... after d-i, is that a space or a tab?22:43
* Corey distrusts whitespace variances22:44
mgw1spaces, same as the other lines22:46
Corey(Unfortunately I don't have a convenient environment in which I can play with preseed at the moment)22:47
Coreymgw1: Can you redact and paste your preseed.cfg in its entirity?22:50
=== wo0f is now known as teat
=== teat is now known as wo0f
mgw1Corey: https://gist.github.com/mgwilliams/744119549a195edd3bdc22:54
Coreymgw1: Sweet, checking.22:54
mgw1I just tried changing it to 'manual' — checking now if it works22:54
mgw1It's ignoring the directive. 'manual' does nothing either.22:55
mgw1actually it does seem to make a difference, in an odd way22:56
mgw1syslog complains about no route to the public ip when I changed it to 'manual'22:57
mgw1Whereas with it there it just complains that the archive is broken22:57
Coreymgw1: Debian wiki states: Be aware there is only one space in preseed files between subkey and value on "owner key/subkey value" lines.22:58
CoreyNot sure if that's a hard and fast rule or not; if so I'd expect you to see more failures?22:58
mgw1yeah, the preseed was based on one from elsewhere, and it arranged everything into columns22:59
mgw1Everything else (up to that point) is working.22:59
BAMbandadoes ubuntu-server essentially offer the full ubuntu terminal eith the only exception of no gui?23:00
=== brad100__ is now known as brad100
=== brad100_ is now known as brad100
jcastroyes23:03
Coreymgw1: Sorry about that, the bat-phone rang. :-)23:12
Coreymgw1: In all of the examples I see that use the proxy setting, it gets set after the rest of the apt/http config options are passed.23:13
mgw1Corey: I tried it both ways23:14
mgw1As I saw it both ways23:14
Coreymgw1: So I wonder if what's happening here is that your mirror/http/hostname is overriding mirror/http/proxy23:14
Corey(Isn't blind troubleshooting fun?)23:14
mgw1yes23:14
CoreyThis seems particularly poorly documented (the entire preseed functionality)...23:14
mgw1for the pxe part the right solution might be to use an apt-mirror anyway23:15
CoreyYeah, I'm a big fan of using a proxy for apt-mirror. What's the goal here, not to redownload the same thing over and over?23:15
Coreymgw1: Perhaps blow out that stanza and crib from https://help.ubuntu.com/lts/installation-guide/i386/preseed-contents.html23:16
Corey(I still haven't ruled out weird whitespace issue!)23:17
mgw1Corey: #1 goal — get access to packages from behind a firewall (no public ip)23:19
sarnoldmgw1: flailing-blindly idea: drop the "http://" from the front of the address.23:19
mgw1#2 goal — don't re-download everything for every install23:19
Coreysarnold: Yeah, except everything I've seen uses the http:// string for the proxy.23:19
sarnoldCorey: d'oh. there's no string at all at https://help.ubuntu.com/lts/installation-guide/i386/preseed-contents.html  so I got to wondering...23:20
Coreysarnold: Right, it's like they want that there even in the event that you're not using a proxy, which is odd to me.23:20
=== wedgwood is now known as wedgwood_away
CoreyIt's definitely a strange problem, that's for sure.23:21
CoreyNot having much success in trawling the codebase to see what it's actually doing programmatically.23:22
Coreymgw1: Oh jeez.23:25
Coreymgw1: This is a really, really, really stupid idea. But.. what happens if you specify the proxy via hostname?23:25
mgw1instead of ip?23:29
Coreymgw1: Yes.23:29
mgw1Corey: give me a few minutes and I'll test that23:30
Corey(bonus points if it actually lives in DNS...)23:30
CoreyI'm also admitting defeat and asking Kyle. :-)23:30
=== niemeyer__ is now known as niemeyer
kobrienI have an encrypted home. I deleted the wrapped-passphrase in ~/.ecryptfs/. How can I restore this file?23:44
qman__from your backup system23:44
Coreykobrien: It's a good thing you've got a robust backup policy in place and can restore from backups though!  A lot of people with insufficient experience and bad administrative habits would not be in such a good position.23:44
kobrienwhen I try to run "ecryptfs-mount-private", it says Signature not found in user keyring23:44
Coreymgw1: <kyle> Corey: hmm off the top of my head I don't know23:45
Coreymgw1: Okay, we've got an actually interesting problem here. :-)23:45
Coreymgw1: (Kyle wrote "The Official Ubuntu Server Book")23:45
kobrienWell the problem is, that having restored this file using ecryptfs-wrap-passphrase, this error persists.23:47
mgw1Corey: I think maybe the preseed is not getting used at all, after making some more changes to it. Maybe the wrong boot option.23:50
mgw1trying some other options now, like "preseed/url" instead of "ks"23:50
=== lotia is now known as lotia-away

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