/srv/irclogs.ubuntu.com/2010/08/02/#ubuntu-server.txt

kinygosok...i finally found the answer to my keyboard layout problem...00:14
kinygossimply run sudo dpkg-reconfigure console-setup and make the appropriate selections00:14
kinygosthanks for the help :)00:15
EvilPhoenixanyone know of any cli tools that can show you active ports things are bound to as well as the number of packets being received/sent on those ports?00:15
EvilPhoenixsimilar to top peraps?00:15
uvirtbotNew bug: #612380 in php5 (main) "mysqli_ssl_set should not expect MYSQLI_STATUS_INITIALIZED" [Undecided,New] https://launchpad.net/bugs/61238000:46
progre55hi guys. I want to add a script in /etc/init.d/ to startup, but only after networking is up. so how do I update-rc.d it?02:07
progre55anyone? I'm starting a deamon using "start-stop-daemon --start --quiet --pidfile $SCRIPT_PID --startas $DAEMON -- $DAEMON_OPTS", but it doesnt record the pid in the specified file, so the "stop" option doesnt work. Any suggestions, please?02:29
rdw200169EvilPhoenix: netstat -pln --inet03:22
rdw200169EvilPhoenix: the only way, that i know of, to get the packet count on ports is by doing some iptables packet counting per port03:23
rdw200169EvilPhoenix: or, you could use something like ntop, but that's more of a web-gui type thing03:23
EvilPhoenixthanks03:31
rdw200169did it work the way you wanted?03:34
EvilPhoenixrdw200169:  havent checked, the server's offline for system updates tonight03:35
EvilPhoenix;)03:35
EvilPhoenixi can tell you tomorrow if it worked :)03:35
=== rmk_ is now known as rmk
MTecknologyzul: Hey Chuck... You happen to be around now? I want to thoroughly irritate you. :)04:56
_SnarkQ - can i softraid across multiple (sata) controllers, or do all raid member disks need to be on the same controller?05:08
sirninjaHow do I run a dummy xserver?06:00
uvirtbotNew bug: #612428 in dhcp3 (main) "package dhcp3-server 3.1.2-1ubuntu7.1 failed to install/upgrade: ErrorMessage: pacote dhcp3-server já está instalado e configurado" [Undecided,New] https://launchpad.net/bugs/61242806:26
Yosi123hi all, new to UB-server...   if I want to change the hostname of a system, can I just edit the hosts and the hostname file in /etc, or it it like windows and i have to change 10000 files?07:26
Yosi123new to linux07:26
Jeeves_Yosi123: Those files will do indeed. But there are some programs which base stuff in their configfile on the hostname07:42
Jeeves_so the best thing to do is:07:42
Jeeves_sudo grep -r <your old hostname> /etc07:42
Jeeves_that will show all the files that contain your old hostname07:43
Yosi123awesome07:43
Yosi123thanks07:43
Yosi123see the problem i'm running into is when i setup the server, i just maid it the domain of my first domain but now i'm holding tons of virtual apache setups07:43
Yosi123note sure how dangerous it is to change the domain name of the machine07:44
Jeeves_it itsn't07:44
Yosi123see now i would liek to gibve it a more generic name...07:45
Yosi123but does the system domain have to be a real world domain?  does it have to match something?07:45
Jeeves_No07:46
Yosi123thats what i thought...07:47
Yosi123i did the grep u mentioned07:47
Yosi123and it only came back in the hosts file and the network files07:47
Yosi123so it looks pretty clean07:47
Yosi123what si the point of giving the machine a domain to begin with?07:48
Yosi123does anyone know, does ubuntu-server support phpmyAdmin?08:01
joschiYosi123: yes08:02
\shapt-get install phpmyadmin08:04
Yosi123joschi> is it worth to install it...    i need to restore a .sql file..   someone told me its easy with that tool...  is there an easier way without it?08:04
joschiYosi123: you could just use `mysql`08:04
\shYosi123: restoring an sql file is more easy with the client08:04
Yosi123sh - which client?  the gui?08:04
\shmysql -u root -p database_name < filename.sql08:05
\shYosi123: mysql client08:05
Yosi123yeah, they told me its very standard...  so maybe i'll just use that command instead of in stall phpmyadmin just to restore the one file08:05
\shor the much better way: mysql -u root -p \n <login> use <database name> \n set FOREIGN_KEY_CHECKS=0; \n source <filename.sql>; \n set FOREIGN_KEY_CHECKS=0;08:05
\shdone08:05
Yosi123awesome, thanks...08:06
\shaeh the last set FOREIGN_KEY_CHECKS needs to be =1 ;)08:06
Yosi123k08:06
Yosi123sh - is there any way to execute the sql from the MySQL Query Tool?  I copy and pasted the file into it, but when I hit the execute button it says "No SQL command"08:11
Yosi123sql file*08:11
\shYosi123: I don't know the mysql query tool....08:17
twb\sh: why do you need to disable foreign key checks?  Is the dump you're restoring out-of-order?08:17
Jeeves_Yosi123: Why not just use 'mysql08:17
Jeeves_'08:17
Jeeves_.\ dumpfile08:18
\shtwb: we had some problems before, yes :(08:18
* twb blames mysql08:18
\shtwb: no I blame broken software :) magento is one of them (especially08:19
\shwhen you are using a mysqldump backup of magento dbs... :()08:19
twb\sh: what, the dump was created by something other than the database?08:19
\shtwb: no but magento is creating new tables during runtime, and adding some foreign keys to other tables...:(08:19
twbSurely if myqsl creates a dump, it SHOULD be coherent, regardless of what app(s) use the database08:20
twbOh, I see08:20
\shtwb: and sometimes, if not most of the time, the rollback of an mysqldump gives you problems...08:20
\shregarding magento08:20
twbIs the lucid partner repo mirrored anywhere?08:39
\shtwb: I'm mirroring it locally ;)08:39
twbI'm getting 50kiB/s trying to mirror it directly from archive.canonical.com08:40
twb\sh: I mean are public mirrors allowed, and if so, where is a list of them08:40
jpdstwb: It's not designed to be mirrored.08:40
\shtwb: dunno...ask one of the canonical sysadmins08:40
twbjpds: that's what I figured; I wanted confirmation08:40
\shsince the move of sun-java* packages to partner it should be mirrored somewhere publically08:41
twbIndeed; I'm pissed because I found that epiphany Just Doesn't Work with icedtea, so I need to do this dance to get $customer's token java applet to work again :-/08:41
=== _ng is now known as _NG
YankDownUnderAnyone have any luck with a Canon LBP-1120 under 10.04?09:38
PirosB3hi all, i have ubuntu server 10.04, have external hd connected that ftab mounts on boot, but if it'snot there... i't won't even start!! anyone??10:08
PirosB3UUID=......... /home/external/ vfat ro 0 010:08
PirosB3no hd, no boot :(10:08
joschiPirosB3: hdd defect? usb port defect?10:09
PirosB3not at all,10:09
joschiPirosB3: does it work with another OS?10:09
PirosB3as soon as i attach drive it boots correctly10:09
PirosB3yes, everything works fine10:10
PirosB3i'm afraid it's something to do with fstab10:10
joschiPirosB3: check the output of `dmesg`. there should be some entries when you plug the hdd in10:10
PirosB3[    6.046500] sd 0:0:0:0: Attached scsi generic sg2 type 010:11
PirosB3[    6.047292] sd 0:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)10:11
PirosB3[    6.048528] sd 0:0:0:0: [sdb] Write Protect is off10:11
PirosB3[    6.048532] sd 0:0:0:0: [sdb] Mode Sense: 21 00 00 0010:11
PirosB3[    6.048535] sd 0:0:0:0: [sdb] Assuming drive cache: write through10:11
PirosB3[    6.053044] sd 0:0:0:0: [sdb] Assuming drive cache: write through10:11
PirosB3[    6.053073]  sdb: sdb110:11
PirosB3[    6.056795] sd 0:0:0:0: [sdb] Assuming drive cache: write through10:11
PirosB3[    6.056825] sd 0:0:0:0: [sdb] Attached SCSI disk10:11
PirosB3[    6.476964] usb-storage: device scan complete10:11
PirosB3ops, sorry10:11
joschiPirosB3: `sudo blkid /dev/sdb1` will show you the correct UUID which you can use in your fstab10:16
PirosB3joschi: i have the correct uuid10:17
joschiPirosB3:  what does `mount /home/external` tell you then?10:17
joschiPirosB3: because the partition has been correctly detected by your system (see `dmesg`)10:18
PirosB3mount: secondo mtab, /dev/sdb1 è già montato su /home/external10:18
PirosB3mount non riuscito10:18
PirosB3lol10:18
PirosB3for mtab, it is already mounted10:18
PirosB3mount failed10:18
joschiPirosB3: please use LANG=C ;)10:18
joschiah, ok10:18
PirosB3translate ;)10:19
joschiPirosB3: I hope you have run the mount command with sudo and not as your normal user. maybe you have a stale /etc/mtab file10:19
PirosB3lol10:19
PirosB3....maybe :)10:20
PirosB3ok10:20
PirosB3it says mounted10:20
PirosB3but it's fstab for me10:20
joschiPirosB3: no. fstab is the file you edit, mtab is the file your system generates for it to remember which devices are mounted10:21
PirosB3yes, i'm saying my fstab line maybe needs some sort of option10:21
PirosB3UUID=......... /home/external/ vfat ro 0 010:21
joschilooks good to me. you *could* add "defaults" to the options ("ro") but the rest is ok10:22
PirosB3what does defaults do?10:25
joschiadd rw, suid, dev, exec, auto, nouser, and async10:25
joschiand rw is overridden by your ro10:26
PirosB3nono, i need only write10:26
joschi-> `man mount` by the way ;)10:26
PirosB3:D10:26
PirosB3ok 1 sec10:26
PirosB3nope :(10:29
uvirtbotNew bug: #612463 in clamav (main) "Cannot update klamav virus signature" [Undecided,Invalid] https://launchpad.net/bugs/61246310:29
PirosB3adding defaults dosen't do it :( sob10:29
PirosB3not even with auto!!!10:31
PirosB3going nuts10:31
PirosB3how can this be so stupid10:31
bigbrovarHi guys I am looking for a system which I could use for centrally administering desktops systems at work. something which would allow me centrally deploy updates and install packages when needed. is there anything which is free (as in beer and speech) which can do this.11:03
bigbrovarsomeone told me about puppet has anyone used it before?11:04
Jeeves_bigbrovar: Maybe landscape?11:05
Jeeves_Otherwise, cfengine or puppet11:05
Jeeves_(i prefer cfengine)11:06
bigbrovarJeeves_: its not free beer.11:06
Jeeves_bigbrovar: ?11:06
uvirtbotNew bug: #612480 in antlr3 (main) "Sync antlr3 3.2-4 (main) from Debian unstable (main)" [Wishlist,Confirmed] https://launchpad.net/bugs/61248011:06
bigbrovaris it possible to configure cfengine or puppet to use as a central update system or mass installation of packages across systems11:06
bigbrovarJeeves_: its not free as in price11:07
Jeeves_bigbrovar: cfengine is.11:07
Jeeves_puppet is. Only landscape isn't11:07
bigbrovarJeeves_: yeah I know I was asking if if cfengine could be used for updating/updating many systems at once11:08
Jeeves_bigbrovar: cfengine has a client-server setup11:08
Jeeves_So the client periodically downloads scripts from the server and executes them11:08
bigbrovarJeeves_: oh ok11:09
bigbrovarhmm not exactly what I wanted but I would give it a try11:09
bigbrovarJeeves_: might also checkout spicewalk I heard there was plans to make a debian port would see how far that got.11:10
bigbrovarJeeves_: thanks :)11:10
Jeeves_ yw11:12
=== _NG is now known as _ng
Zee5hanis it possible to install ubuntu using a virtual drive?11:16
joschiZee5han: define "virtual drive"11:18
Zee5hanto install ubuntu you need to boot with the CD11:18
Zee5hannow lets say i dont have a CD and I mount the ISO with PowerISO11:19
joschiZee5han: not necessarily11:19
joschiyou could install ubuntu over network11:19
Zee5hanwill I still be able to boot and install?11:19
joschior you just use something like wubi11:20
YankDownUnderWhat's wrong with a USB install...?11:20
joschiZee5han: if you have a usb stick and the computer supports booting from usb you could also install ubuntu using unetbootin11:20
Zee5hanI have tried wubi but when it is downloading the ISO it says itll take around 150hrs11:21
joschiZee5han: so now you have several alternatives: install over network, install over windows, install over usb11:21
Zee5hancan I also try it out... like Live CD... LIve USB11:22
joschiyes11:23
Zee5hanThanks11:23
joschiZee5han: unetbootin will just copy the contents of the live cd on a usb drive11:23
YankDownUnderZee5han, The liveUSB is basically the same as the LiveCD - except that you can actually keep changes made to the USB...handy that.11:23
Zee5hanSo I cant make changes on a LiveCD11:24
Zee5hanlets day my CD is RW11:24
YankDownUnderZee5han, Um...CD's being read-only...11:24
YankDownUnderZee5han, Doesn't matter if your drive is R/W or the CD itself is R/W, doesn't happen like that. However, with the USB, you can make changes...and keep them. Handy for installing clamav and using it for workstations...11:25
joschiZee5han: you can of course remaster a live cd. but on the usb stick you could do changes on the fly11:25
Zee5hanThanks11:26
YankDownUnderAnyone tried setting up a Canon LBP-1120 on 10.04 server?11:29
pthsWorkHi all. I need some help here. I've set up a two node cluster with pacemaker/corosync. Here I'm running DRBD, Samba, Winbind and LDAP (for sid-uid mapping). This works great. Both nodes are member in the AD domain (2008r2) with a virtual IP. The problem is: If I add a user in AD getent passwd wont get the new user (sometimes it does). If I then kill winbindd and change active node it works and the new user is listed. Any ideas11:58
pthsWorkon what might be going on?11:58
Roxyhart0 somebody know how i can capture data with tcpdum in intervales of 5 minutes each 5 min?12:06
YankDownUnderRoxyhart0, Couldn't you create a script to do so and use cron to handle the job?12:08
Roxyhart0maybe, but i am not sure if i want to add the data to the same file ...how to do that12:09
YankDownUnderRoxyhart0, Probably append the date or time or something to the file - so that you're creating a file for that particular time? Just a thought...12:10
Roxyhart0yes, i cant use >>12:11
Roxyhart0as i tried and the file is not in the format that i want12:11
YankDownUnderRoxyhart0, Not sure I understand what you mean by "the file is not in the format that I want" => in what, content? In name?12:12
Roxyhart0format as i will read with wireshark...i tried to append with >> but after that wireshark doesn accept the format12:13
YankDownUnderAppend with >> ? Hmm...not sure I grok this - however, something you might find useful: http://www.cyberciti.biz/tips/shell-scripting-creating-reportlog-file-names-with-date-in-filename.html12:14
=== _ng is now known as _NG
pthsWorkIf I simplify my issue: If I add/delete users in Active Directory, getent passwd gets the updates after a few seconds. But for some reason this stops working after some time, so I have to restart windbindd to make it work again.12:19
TuxSaxbig woe!13:03
uvirtbotNew bug: #612513 in mysql-dfsg-5.1 (main) "package libmysqlclient16 5.1.41-3ubuntu12.6 failed to install/upgrade: erreur lors de l'écriture de « <sortie standard> »: Succès" [Undecided,New] https://launchpad.net/bugs/61251313:26
TuxSaxuvirtbot: !fr13:34
uvirtbotTuxSax: Error: "!fr" is not a valid command.13:34
TuxSax!fr > uvirtbot13:34
ubottuuvirtbot, please see my private message13:34
uvirtbotubottu: Error: "please" is not a valid command.13:34
ubottuError: I am only a bot, please don't think I'm intelligent :)13:34
TuxSaxLOL13:35
pmatulishaving fun?13:35
TuxSaxyeah13:35
TuxSaxit has been 10 years since I've left the IRC stuff, I'm back now to find a lot of things evolved in the bots...13:35
cloakableheh13:36
pmatulisartiifical intelligence has improved somewhat13:36
TuxSaxstill have a lot to find out...13:36
TuxSaxon how to use those bots...13:36
pmatulis*artificial13:36
pmatulisTuxSax: you can converse with the bot in private13:37
cloakable!botabuse13:38
ubottuPlease investigate with me only with "/msg ubottu Bot" or in #ubuntu-bots.  Search for factoids with "/msg ubottu !search factoid".13:38
Pici!usage13:38
ubottuHi! I'm #ubuntu-server's favorite infobot, you can search my brain yourself at http://ubottu.com/factoids.cgi - Usage info: http://wiki.ubuntu.com/IRC/Bots13:38
uvirtbotNew bug: #612525 in openldap (main) "apparmor profile is not good for first backend creation" [Undecided,New] https://launchpad.net/bugs/61252513:56
blinkizHi there. I would like to edit a line in /etc/ufw/before6.rules. DROP router-advertisement. Should I edit in that file or should I put my own lines somewhere else?13:57
blinkizPut in my own lines.. I mean.. put in some other file?13:58
simmelHow do I restore the original /etc/init/mysql.conf from mysql-server-5.1 that I accidently removed?14:10
klaassimmel just download the package and unzip :)14:16
simmelklaas: I'd rather have apt-get/dpkg fix things since it's somewhere in that database. But sure, I've thought about it.14:18
simmelI've seen a solution for this before but I can't remember what I searched for then.14:18
klaasyou can run reinstall14:19
klaasor reconfigure14:19
simmelaptitude reinstall mysql-server-5.1 ?14:21
simmelBecause that doesn't solve it.14:21
ttxEveryone: You have a few more hours to submit your last papercuts candidates, bugs nomination for the last subcycle is tomorrow !14:46
sommermorning :-)14:55
hggdhDaviey: good morning, how's eucalyptus doing?14:56
Davieyhggdh, Hey!  Not too bad..  Been trying to work with Eucalyptus to get some of our patches merged upstream and raise some kitten killer bugs,14:57
* hggdh likes kitten killers14:58
hggdhor even kitchen, for that matter14:59
hggdhDaviey: any expectations (great or otherwise) re. timeframe?15:00
ttxhggdh: about milestoning to alpha-3 (bug 610987): if you really mean it, you should also "Target to release" to maverick... and assign someone (be it Canonical Server team if you don't know what to put there)15:02
uvirtbotLaunchpad bug 610987 in eucalyptus "euca-describe-availability-zones verbose incorrect output" [High,New] https://launchpad.net/bugs/61098715:02
ttxotherwise it's just lost15:02
ttxI just targeted to maverick15:03
ttxand tentatively assigning to Dave (feel free to reassign in UECland)15:03
DavieyI've asked Eucalyptus to look into that once.15:04
hggdhttx: thanks. My view right now is that there is nothing to test is these bugs don't get fixed15:04
DavieyI'm not entirely convinced it's there issue, it could be one of the patches we are carrying.. but they seemed willing to help debug15:04
DavieyI'm scheduling a call with Euca today, i think - to follow up15:04
hggdhttx: I thought that milestoning would be enough, sorry15:05
Davieysmoser, free for a quick call?15:05
smosercan i have 5 minutes ?15:05
ttxDaviey: we should plan to have a "plain" build to reproduce against15:05
ttx(even if it's more painful to install)15:05
ttxThis "must be in the patch you carry" was raised a few times already and was mostly debunked as false in the end15:06
Davieyttx, Yes.. I did for the last Alpha make it only have essential patches in a PPA.. but i don't think that added too much value15:06
DavieyOnly confirmation, really.15:06
Davieyttx, Actually, euca made no reference to it being our patch - I raised it that out of the patches, this one I wasn't convinced was totally upstreams issue15:07
DavieyBut they are taking a look regardless.15:07
ttxhggdh: for alpha3 IMHO we should concentrate on fixing the basic functionality, like registration and running a single instance.15:07
ttxhggdh: there is no way everything will get fixed in the next day15:07
hggdhttx: so just basic functionality tests?15:08
DavieyYes! That is good ttx, i agree...15:08
hggdhthis is doable, of course. And easy :-)15:08
ttxhggdh: well, if that fails, there is no point in fixing how it behaves under load15:08
hggdhttx: ack15:08
DavieyThe ones that are concerning me at the moment, are "Auto registraion issue" and to a slightly lower priority "instance poor success rate"15:08
ttxI think we are spreading thin by trying to fix every regression15:09
* hggdh will be able to complete tests in about one day \o/15:09
ttxand I fear that we won't solve anything if we go that route15:09
ttxconcentrating on the basic ISO test for alpha3... then fixing everything else after15:09
Davieyttx / hggdh: Euca are quite pleased to get access to the QA machines for this... elmo said it's ok, and i'll file a RT now.15:09
ttxat least we'd have something installable15:10
DavieyThis makes it easy for hggdh to find an issue, ping them - and demostrate via screen etc.15:10
hggdhDaviey: GREAT! I think this is an extremely good move15:10
DavieyNo more faffing with trying to communicate an issue.15:10
smoserDaviey, ping15:10
Davieysmoser, o/15:10
ttxDaviey: could you sum up the key bugs preventing the basic ISO test from succeeding ?15:10
smosermumble15:11
Davieywin!15:11
ttxDaviey: bug 610987 is clearly *not* one of them15:11
uvirtbotLaunchpad bug 610987 in eucalyptus "euca-describe-availability-zones verbose incorrect output" [High,New] https://launchpad.net/bugs/61098715:11
ttxI want to keep in the A3 radar only those "basic functionality" issues15:11
SpamapSttx: https://launchpad.net/server-papercuts/+milestone/maverick-beta ... 1 bug targeted? Did I put mine in the wrong place?15:12
ttxso remilestoning to beta everything that is a regression under load15:12
hggdhttx: this bug only affects (it seems) when running 'euca-run-instances -n <number>15:12
ttxSpamapS: the milestone nomination will occur tomorrow15:12
ttxSpamapS: your proposlas should be undecided/New15:12
SpamapSttx: oh.. ok, well I jumped the gun a bit, oops. ;)15:12
ttxSpamapS: you just overstpped your authority :)15:13
SpamapSremoved. :-P15:13
* SpamapS imagines ttx in Cartman's mirrored glasses.. ...... respect mah authoritah15:13
ttxSpamapS: though if you want to handle papercuts from now on, just let me know :P15:13
* SpamapS dives back into spam can15:14
ttxDaviey: so, preventing the "basic tset" from succeeding, we have:15:14
ttxbug 60911215:14
uvirtbotLaunchpad bug 609112 in eucalyptus "euca_conf --discover-nodes fails to register nodes" [High,Confirmed] https://launchpad.net/bugs/60911215:14
Davieyttx, 2 mins.... on call with smoser15:14
hggdhttx: I eould add bug 610259 -- it may be a special case of 60911215:15
uvirtbotLaunchpad bug 610259 in eucalyptus "inconsistent output euca_conf and euca-describe-availability-zones" [High,Confirmed] https://launchpad.net/bugs/61025915:15
ttxhggdh: that doesn't prevent the basic test from succeeding, right ?15:16
hggdhexpect for the fact that you have no clue of what NCs are in, no15:16
hggdhttX ^15:16
ttxhggdh: I think it's the same issue15:17
hggdhttx: I think it can, also. I opened separate because there was a chance it was unrelated15:17
hggdhs/it can/it is/15:18
ttxthe key bug is that euca_conf doesn't register nodes anymore15:18
hggdhack15:18
smoserttx, thta isn't correct15:19
smoserit doesn't say it did15:19
hggdhsmoser: when I tested it, I only got the NCs in via 'euca_conf --register-nodes', never via --discover-nodes'15:19
smoserok.15:20
smoserso manybe im' wrong then/15:20
smosermy experience is that register-nodes works, but --list-nodes shows no nodes15:20
hggdhnot sure -- I only tested on topo1 (all-in-one, plus 5 NCs)15:20
smoserbut things run fine, and euca-describe-availability-zones output is correct.15:20
ttxDaviey: if you agree that the node registration issue is the key bug, that's something we can investigate on our side15:20
ttxDaviey: I'm sure you welcome external help on this one ?15:21
hggdhsmoser: hum. I will try again, with a current ISO/UEC images15:21
smoserwell, as of friday, --list-nodes was broken for me15:21
hggdhyes, same (from Thurday, and earlier, no changes in euca-2.0)15:22
MTecknologyHow can I put a user inside a chroot when they log in? Moreso, so they're only dropped into it if they're above uid 1000 (if possible)15:22
Davieyttx, The more help the better :)15:25
ttxDaviey: ok, I'll try setting up a system to reproduce that15:25
Davieyttx, Awesome!15:26
* ttx wonders if he could start from an A2 system15:26
Davieyttx, Hmm.. i'm not sure how the libjibx is handled for upgrade.. need to test that15:28
ttxDaviey: I'll figure it out15:28
* ttx pauses while the ISO loads15:29
hggdhsmoser: I am reloading the whole shebang. This is actually not bad, since I will be able to test the apparmour issue15:34
=== ogra_ is now known as ogra
poisonborzHola... could someone help me? I've installed ubuntu server with gnome and gdm to log in, but when I run gdmsetup, I get these errors... http://pastebin.com/SGDgqs6k15:36
Davieyttx, If i want to get a new upload of euca into A2, guess it needs to be published before Tues early morning?15:37
kirklandDaviey: A3?15:38
ttxinto A3, you mean ? Given the current state of the ISO...15:38
Davieyerr yeah15:38
ttxI'd say that a late Tuesday upload will make it15:38
Davieyttx, Does that mean Wednesday is likely to be the A3 iso?15:38
hggdhpoisonborz: it seems you are missing some Gnome packages15:38
ttxDaviey: I hope so.15:39
Davieyok, super15:39
ttxthe current ISo is borken, says no kernel, some apt-cdrom failure apparenbtly15:39
ttxgiven that the release team is... fragmented... it should take some time to fix that.15:40
poisonborzhggdh: it would be great if that is all whats wrong... could you tell me what those packages are?15:40
hggdhpoisonborz: unfortunately, no... perhaps you can try the #ubuntu channel?15:42
=== dendrobates is now known as dendro-afk
=== mathiaz_ is now known as mathiaz
MTecknologyHow hard is it to write a custom pam module that handles crap when you log in over ssh?16:08
MTecknologyI want to perform a certain set of commands and then drop the user in a certain chroot16:08
ttxDaviey: so I targeted the other bugs to -beta, let's focus on the node registration issue16:12
DavieyMTecknology, I'm not sure pam is the best way to achieve that... I would suggest a custom shell, perhaps16:12
Davieyttx, Agreed.. if i can whack out a fix for registration - i'll start tackling the others16:13
DavieyI would like to land design refresh for A3.. but not sure that is likely now..16:13
ttxthis might just snowball-fix the others16:13
Davieysnowball-break  the other features:)16:13
MTecknologyDaviey: What I'm looking for is user| ssh user@host.com -> sshd| cp -r /etc/chroot-skel /tmp/[mktemp]; ln /home/user /tmp/[mktemp]/home/user; mount [stuff]; chroot /tmp/[mktemp] /bin/bash; logount| rm -r /tmp/[mktemp]16:16
MTecknologyDaviey: unless there's some better option16:17
DavieyMTecknology, A throwaway chroot on every login?16:17
RoyKMTecknology: erm - is it possible to hardlink directories these days?16:18
MTecknologyRoyK: ln -s16:19
MTecknologyDaviey: ya16:19
RoyKMTecknology: looked more like you were trying to hardlink it16:19
MTecknologyRoyK: those were far from complete commands. Sorry about leaving out the -s :)16:20
MTecknologyDaviey: any ideas if somebody did the hard part of that already?16:22
AndyGraybealhow do i set global umask in multi-user setting, we'll be using ubuntu server with LTSP and Gnome.  is it /etc/profile ?16:22
MTecknologyAndyGraybeal: yuppers16:23
AndyGraybealthank you MTecknology16:23
MTecknologyAndyGraybeal: after you change that, you need a reboot iirc16:24
pmatulisis /etc/profile read for all shells?16:25
AndyGraybealis it possible to have usernames of andy.graybeal in ubuntu?16:26
DavieyMTecknology, The cleanest solution may well be PAM.. There is a PAM module for creating a home dir if it doesn't exist16:26
DavieyYou could adapt that i suppose, but don't expect it to be too trivial16:26
AndyGraybealDaviey: are you talking to me?16:27
DavieyAndyGraybeal, no16:27
AndyGraybealDaviey:  :) k16:27
Daviey:)16:27
DavieyAndyGraybeal, you can have dots in usernames... and it works.. but useradd will complain :)16:28
MTecknologyDaviey: any ideas for a better solution? My original goal was to just build a whitelist of what apps the user can launch - I'm somewhat considering chmod o-x on everything I don't want them running..16:28
MTecknologyAndyGraybeal: if you want to avoid headaches.. make sure the first/last character is a letter.. some apps like to complain otherwise. I use dots all the time though.16:29
MTecknologysome of my user accounts :P -> JF81F5D.s SEF5644E4.s S5A76C029.s SAB0FFB17.s16:29
DavieyMTecknology, Not at the moment.. i'm sorry i can't give you more focus atm.. Have lots to do :(16:29
MTecknologyDaviey: ok, thanks. So far all I've found is libpam-chroot which seems to have no docs.16:31
pmatulisMTecknology: why not just create ssh chroots for the users?16:34
MTecknologypmatulis: how do I do that?16:35
MTecknologypmatulis: I some some docs on it but they weren't very helpful16:35
pmatulisMTecknology: there is quite a lot of hits for that.  what didn't work?16:36
MTecknologypmatulis: it seemed to be almost all for removing ability to access cli and required making the users home directory owned by root:root16:37
pmatulisMTecknology: not sure about that but what specifically is wrong with those solutions?16:39
ttxDaviey: arh, I downloaded the wrong A2 ISO.16:40
Davieyoh dear16:40
ttxlooks like I won't have time to try it out today, and I don't work tomorrow morning16:40
ttx:/16:41
ttxDaviey: we can have a discussion now on how to debug it, like how it's supposed to work, if you need any of that info ?16:41
MTecknologypmatulis: I can't have everything owned by root, and they need to have cli access16:42
pmatulisMTecknology: ownership changes are top level directories, that should be ok since by nature folks are trapped in the chroot16:43
pmatulisMTecknology: re cli access, i don't get it, of course they have cli, can you explain?16:44
MTecknologypmatulis: I'm only trying to control what the user can do when logged in. I'll initiate processes as the user than I don't want them to be able to do16:44
Davieyttx, Hmm.. i remember following the initial design of how it should work..  I am a little unsure, so it would help.16:44
ttxok, mumble16:44
* Daviey enages16:45
pmatulisMTecknology: oh ok, not a chroot at all then16:45
MTecknologypmatulis: That's just the solution I kept getting pointed at16:45
pmatulisMTecknology: and it's not like you know what they will be running, just what you don't want them to run?16:46
MTecknologypmatulis: If I can restrict them to a whitelist set of apps, that would be ideal16:46
pmatulisMTecknology: apps are cli-based?16:47
MTecknologypmatulis: ya16:47
MTecknologypmatulis: this is on a server16:47
pmatulisMTecknology: so just use ssh remote commands via a forced-command checking script  :)16:48
pmatulisMTecknology: are the apps interactive?16:48
MTecknologypmatulis: vim is16:48
=== _NG is now known as _ng
MTecknologypmatulis: You mean like make them run ssh -e for every single command?16:49
pmatulisMTecknology: yeah16:51
pmatulisMTecknology: but not sure about interactive stuff16:51
MTecknologyit'll almost all be interactive16:51
MTecknologyThey need to use thigns like vim, ssh, pu, pcd, prush, ls, cat, mv, rm, cd, wget, tar <- which covers probably almost all of it16:52
Doonzhey guys im using sshfs to mount a remote directory on my local server. Is there a way to make this mount a constant connection because sometimes it disconnnects and then i have to manually remout it17:04
papertigersjoin #ubuntu-community17:04
papertigersopps lol17:05
rdw200169Doonz: its probably more of a ssh configuration than a sshfs config... i'm guessing a longer ssh connection timeout or something, check the OpenSSH manual17:05
=== dendro-afk is now known as dendrobates
Doonzwhy would it time out tho17:05
Doonzbox boxes are running and there hasnt been a disconnect for the internet17:06
rdw200169Doonz: lots of reasons.  sometimes the network bogs down, for whatever reason, and the host/guest connection doesn't see any packets for a while17:06
rdw200169Doonz: and then the timeout is satisfied, and the connection is closed17:06
rdw200169Doonz: you could also look into enabling the keepalive, so that inactivity doesn't shut your ssh connection17:07
Doonzuh17:07
* Doonz is a noob17:07
rdw200169Doonz: you're gonna have the best luck reading the man page for ssh_config.  you're looking for 'TCPKeepAlive'17:08
Doonzsshfs user@remotehost:/home/user/scripts/ /home/user/scripts/17:08
Doonzthats the command i run17:08
rdw200169yeah, thats fine, but, on the inside of that command, a 'normal' ssh session is being created, which means your default ssh configuration still applies17:09
Doonzk17:09
Doonzgoind to check it out now17:09
rdw200169thus, whatever is causing your ssh connection to be closed, would also affect a normal ssh session17:09
Doonzbut my normal ssh session never closes17:09
Doonz:/17:09
rdw200169which is likely due to the fact that, when you have a 'normal' ssh connection, you never stay idle for very long17:10
ttxStill downloading, will setup tomorrow.17:11
rdw200169keep in mind that, for an sshfs mount, just because the drive is mounted, that your computer isn't necessarily communicating over that connection (unless you're accessing the mount or something)17:12
Doonzrdw200169: ok i looked in my ssh_config file and it didnt have TCPKeepAlive so i added it and set it to yes17:12
Doonzdo i have to do anything now to it?17:13
rdw200169you could probably do well to also add it to /etc/ssh/sshd_config on your server too.17:13
rdw200169on the server, you could also add ClientAliveInterval 60 to that file as well17:13
papertigersI want to buy a new box for ubuntu server..but hmm what to use it for17:15
Doonzrdw200169: i cant find clientaliveinterval in the ssh_config man17:17
hggdhDoonz: it is actually ServerAliveInterval17:23
Doonzwell its actuall in the sshd_config17:24
Doonzlol17:24
Doonzso i set that17:24
hggdhand ServerAliveInterval in the client.17:25
Doonznot tcpkeepalive?17:26
AndyGraybealMTecknology: hey, about this dots in the name thing, i was reading that the command "chown" doesn;t like it when you need to assign both a username and a groupname like: chown andy.user /srv/userdata17:27
AndyGraybealhow would i get around that if i have dots in my name?17:28
AndyGraybeali guess chown gets confused17:30
AndyGraybealaah i guess it's as easy as using a colon to delineate the username from the groupname. peice of cake17:31
hggdhDoonz: tcpKeepAlive is, but default, on17:32
hggdhs/but/by/17:32
Doonzhggdh: it wasnt in my config file tho17:34
AndyGraybealhow comfortable do you guys feel about  'automatic security  updates'?17:36
hggdhAndyGraybeal: very17:39
AndyGraybealk, thank you.17:39
hggdhAndyGraybeal: truth be said, I still prefer to manually apply them. I trust them to be correct, but updates are only applied when *I* decide17:43
=== dendrobates is now known as dendro-afk
AndyGraybeali know that microsoft has made many security updates that mess things up, so the rule in my old job was never automatically update, ever.  wait until you read about the update and only apply it on testing machines, then apply to live boxes and only if you need to or some such.17:45
hggdhthere you go. I do not believe in witches, but that they exist, they do. Better safe than sorry, and all that17:46
thesheff17AndyGraybeal: what I do is create a local ubuntu mirror and update it on the 1st of the month....roll all those patches to the test env.  If anything breaks it doesn't bring down prod.  If the updates don't affect thing for 30 days I update production and repeat.17:54
MTecknologyAndyGraybeal: yay :)17:58
MTecknologyI still wish I could figure out how to make a specific set of commands/apps available to users..18:02
thesheff17Mtecknology: have you looked at chroot?18:02
MTecknologythesheff17: lol... indeed. The available tools for a chroot option seem to not be possible for what I need though. They seem to all require that the files in the chroot need to be root:root and usually don't offer cli.18:03
MTecknologythesheff17: unless you know a lot about it - then maybe you could coax a novice through it?18:04
thesheff17it is pretty easy...basically you make a chroot jail and only link the commands you want them to use inside there jail18:05
thesheff17MTecknology it also has seperate passwd files if you want so only certain people have access to that chroot...I have created ftp & ssh inside chroot jail before18:05
maekcan anyone explain to me how to use a local mirror of archive.ubuntu.com for an install source from a preseed file? I tried copying the dvd but it said packages.gz was corrupt. now that I point it at my local mirror of archive it says faild to download a file. here is my preseed mirror section and a tree from my local mirror. http://gist.github.com/504960 - thanks!18:06
MTecknologythesheff17: I want to make it so /home/user/* is still user:user - then like you said, they only have a few commands available. My thought process was something kinda like this - user| ssh user@host.com -> sshd| cp -r /etc/chroot-skel /tmp/[mktemp]; ln /home/user /tmp/[mktemp]/home/user; mount [stuff]; chroot /tmp/[mktemp] /bin/bash; logount| rm -r /tmp/[mktemp]18:07
thesheff17maek https://www.digisoftinc.org/wiki/index.php/Ubuntu_preseed.cfg_installs_off_PXE_Boot I need to renew my ssl cert18:07
PiciMTecknology: Why not give them rbash as their shell?18:07
maekthesheff17: thanks18:08
maekthesheff17: haha, your preseed is what I have copied :)18:09
MTecknology!search rbash18:09
ubottuFound:18:09
MTecknologyoh..18:10
thesheff17maek: I will pastebin my mirror.list that I use18:10
PiciMTecknology: Its part of bash.18:10
MTecknologyPici: .... this thing is pretty spiffy :D18:10
thesheff17maek: cool ;) I'm glad someone can use it18:10
maekthesheff17: thanks, I think im just have a bit flipped someplace.18:11
maekthesheff17: yeah, Its been very helpful, thank you.18:11
MTecknologyPici: what about this? http://ubuntuforums.org/showpost.php?p=6301166&postcount=218:11
thesheff17maek: http://pastebin.com/c5DdavDq18:12
maekthesheff17: do you then install from that apt-mirror created repo?18:14
PiciMTecknology: It depends on what commands you are allowed to use within the shell.18:14
PiciMTecknology: See http://pentestmonkey.net/blog/rbash-scp/18:14
thesheff17maek: like how do I update the mirror?18:14
thesheff17maek: pxeboot file points at my local ubuntu mirror http://192.168.1.4/ubuntu18:15
maekthesheff17: no how would you install a single client. in your preseed config you are using archive.ubuntu.org not your local mirror - as far as I can tell18:15
MTecknologyPici: Is there any way I can configure what the user can do in it? I'm not seeing any configs for it in the places I assumed it would be, like cd - cd is probably one that shouldn't be allowed that will definitely be needed18:16
maekthesheff17: in your pxelinux.cfg/default file you point to the install source? I only point to the preseed file18:16
MTecknologyPici: aside from that it looks like the defaults are pretty awesome18:17
PiciMTecknology: Then maybe it doesn't fit what you need to do.18:17
thesheff17maek: oh this is before I had a local ubuntu mirror on the same as the pxeboot laptop18:18
thesheff17maek: just change this d-i mirror/http/hostname string archive.ubuntu.com to d-i mirror/http/hostname string 10.1.1.118:18
maekthesheff17: ok, thats what I have pretty much. it keeps saying bad archive. But I see in your mirror list the debian-installer stuff. let me add that and re mirror. thanks18:19
thesheff17maek: yea that drove me nuts for a long time :)18:19
maekthesheff17: so thats the key to install from your archive local mirror?18:19
thesheff17maek: yea the whole install will be off your pxeboot server18:20
thesheff17maek: before I was using iptables to forward traffic to that 10.1.1.1 but it was slow and I was doing so many installs it was worth finding out how to get a local mirror working18:20
MTecknologyPici: that's the one and only thing I'm seeing not available that I would need. Everything else is to the very dot exactly what I was hoping for.18:20
maekthesheff17: thanks. ill give that a go and see if it fixed the "bad archive mirror" screen18:20
thesheff17maek: I also have an issue if you have 2 hard drives in the machine it doesn't work.18:21
thesheff17maek: I haven't figured out how to fix that yet.18:21
maekthesheff17: preseed doesnt work?18:21
thesheff17maek: yea it prompts for something...but then continues on18:22
maekthesheff17: wonderful :| - this seems like a huge step down in "doneness" from kickstart18:22
batokI have Ubuntu 9 server karmic koala.  I wonder if there's a joomla package ?18:23
batokhow can I know the available packages ? with dpkg ?18:24
maekbatok apt-cache search joomla18:24
Pici!apt18:24
ubottuAPT is the Advanced Package Tool, which together with dpkg forms the basic Ubuntu package management toolkit. Short apt-get manual: https://help.ubuntu.com/community/AptGetHowto - Also see !Synaptic (Gnome), !Adept (KDE) or !KPackageKit (KDE)18:24
maekdpkg -l |grep joomla18:24
thesheff17maek: yea I have heard if you have all the same hardware and you are configuring them all the same you can use debconf-get-selections --installer > alloptions.cfg18:24
batoktks18:25
thesheff17maek: and re use that file but I haven't tried since I have never had all the same hardware :-/18:25
maekthesheff17: yeah someone pointed me in that direction as well but I have several "kinds" of boxes im trying to get auto installing.18:25
thesheff17maek: well you could always add the second drive after the install...and if it is production you should be using hardware raid and it will only present 1 drive to ubuntu.18:26
maekthesheff17: yeah they show up as cciss using the hp raid controller, not a big concern but still thats a bit erksom18:26
thesheff17maek: yea I wish I knew how to fix it but I don't even know who to ask and I needed the hardware right away.18:27
maekthesheff17: so once you got the debian-installer into your local mirror you were able to install a new host 100% from that local mirror ?18:29
maekoff pxe18:29
thesheff17maek: yup18:29
maekthesheff17: thanks!18:29
thesheff17maek: np it works really well after you installed ubuntu about 10 million times since 6.04 :)18:30
maekthesheff17: do you know of a good place to find an explination or listing off all the d-i options?18:30
thesheff17maek: http://d-i.alioth.debian.org/manual/en.i386/apbs04.html  I would almost search debian when looking for d-i stuff if you can't find it for ubuntu.  I think that is how I found the extra settings for my mirror file.18:31
maekthesheff17: thanks again18:33
thesheff17maek: np glad I could help.18:33
thesheff17MTecknology: if you have nice new hardware you could always build virtual machines per function....like ftp server, apache server, etc18:37
MTecknologythesheff17: all the need to do is edit files in ~/*18:38
MTecknologythesheff17: it looks like rbash won't do what I need - even though it's extremely close - it's simple to break out of18:38
thesheff17MTecknology: I think you can only break out of it if you give them access to commands that break it...which commands do you want to restrict to?18:39
thesheff17MTecknology: also when a user logs in all file permissions should be user:user18:40
SpamapSIIRC, LXC and OpenVZ can do that w/o nice new hardware.18:43
MTecknologythesheff17: vim, cd, ls, wget, tar, pcd, pget, prush - I think that's most of it18:44
thesheff17MTecknology: well all of those commands are pretty straight forward except vim.  vim they can prob break out of18:46
smoserSpamapS is correct that LXC (which enabled in ubuntu kernels, openvz is not) does not need hardware virtualization extensions.18:47
smoserthat said, lxc is not significantly more secure than a chroot.18:48
thesheff17MTecknology: they are already using scp right?  make them use winscp and edit the files :)18:48
SpamapSI seem to recall it doesn't provide quite the same host protection as full virtualiztion tho18:48
aljosai need to enable ICMP or monitoring software reports that server is down but /etc/ufw/before.rules have ACCEPT for all icmp-type(s). any idea what i'm doing wrong?18:48
MTecknologythesheff17: winscp from a linux machine?18:49
MTecknologythesheff17: :P18:49
aljosa"iptables --list|grep icmp" returns "REJECT  all  --  anywhere  anywhere  reject-with icmp-port-unreachable" but i can't figure out where is this defined18:50
thesheff17MTecknology: true18:50
thesheff17MTecknology: let them use gedit18:50
MTecknologythesheff17: My devs hate me enough :P18:51
thesheff17MTecknology: or nano18:51
thesheff17MTecknology: haha :)18:51
MTecknology:P18:52
SpamapSMTecknology: you might enjoy reading up on the concept of "devops".18:52
MTecknologythesheff17: if I could make them use rbash and also keep them from touching a few other commands - this might work nicely enough18:53
thesheff17MTecknology: I just think vim is too powerful with too many commands that prob can break out of rbash18:53
MTecknologythesheff17: it seems to capture it..18:53
thesheff17MTecknology: cool18:54
aljosahow can i enable icmp/ping on server?18:54
MTecknologythesheff17: now.. what was that other tool mentioned?? I need to go up and find it18:55
pmatulisaljosa: read up on ufw and where it stores it's files18:55
thesheff17Mtecknology: http://pentestmonkey.net/blog/rbash-scp/18:55
pmatulisaljosa: or just 'sudo grep -r REJECT /etc'18:56
thesheff17MTecknology: you just have to be careful with what commands you give you devs.  You have to give them a little trust don't you :)18:56
aljosapmatulis: i've just figured out that i can ping localhost but not public address, any idea why? also, i have no REJECT rules in /etc18:57
MTecknologythesheff17: ya, but I know what they need to use - the way things are right now (they don't know it) they can become root simply by not completing one of the commands that they use a few times a day.18:57
pmatulisaljosa: turn off iptables and make sure you can ping18:57
thesheff17MTecknology: well if they aren't running things as root now rbash will be just another layer they will have to "break" to get to root.18:59
aljosapmatulis: i've did ufw disable, iptables --list has no rules. still can't ping public ip address. what else could be a problem?18:59
thesheff17MTecknology: and harder in a chroot env18:59
thesheff17aljosa: your route18:59
thesheff17aljosa: default gateway18:59
MTecknologythesheff17: I'm trying to fix the masive gaping security holes.. a chroot as i described earlier would be absolutely perfect - but it doesn't sound like that's possible19:00
thesheff17MTecknology: sorry I missed...what was the problem with chroot?19:01
MTecknologythesheff17: give me a minute...19:01
aljosacan somebody try to ping 79.125.24.103? it's hosted on amazon, do you get any response?19:05
abrightwellno response.19:05
thesheff17aljosa: doesn't ping you prob don't have icmp enabled in the security group19:05
abrightwellhas anyone have any experience with openfire or other XMPP server on Ubuntu?19:06
MTecknologythesheff17: http://dpaste.com/224302/19:07
keesaljosa: "hosted on amazon"? do you mean it's an EC2 instance? you have to open the EC2 firewall to talk to any of your instances there19:07
SpamapSugh.. we're sucking at bug triage again19:08
MTecknologySpamapS: reminding me I need to file and fix a bug19:09
thesheff17MTecknology: what if you build the chroot env and then do a useradd -m19:09
thesheff17MTecknology: to create the home directory19:09
MTecknologythesheff17: I have a few hundred users, that would get to be a whole lot of chroots - usually only one or two of the accounts is used on any given day19:10
MTecknologythesheff17: usually they also log in at the beginning of the day and they're on for most of it19:11
aljosakees: yes, but does icmp have port? i can't find any info19:13
thesheff17MTecknology: I think the problem is that you want a directory outside chroot available in chroot which defeats the purpose.  I would just create a whole chroot env for all user /home/chroot/user19:15
keesaljosa: ICMP is a protocol, like UDP and TCP. I don't have the EC2 documentation handy, but I'm pretty  sure you can open that up.19:15
MTecknologythesheff17: I'll still need t5o fight with not making the user/group of the home directory not have to be root:root19:16
thesheff17MTecknology: I believe you are seeing root:root because it is a symlink but it should still confirm to the link back.  I could be wrong though19:17
MTecknologythesheff17: everything I read said that anything that's inside of a chroot need to be root:root on the fs19:17
hggdhDaviey: when you installed Euca 2.0, did it identify all components (walrus, cluster, scs)?19:18
thesheff17MTecknology: I don't think that is the case.  I have had ftp & scp users send files to the server under chroot and I'm pretty sure the files inside the chroot permissions are correct.19:18
Davieyhggdh: Seemed to.. I'll have a better idea in a bit.19:19
MTecknologythesheff17: it kinda sucks.. I thought this would be an easy task :P19:19
thesheff17MTecknology: Though this was debian and I don't have the server anymore :(19:19
Davieyhggdh: There is different behaviour between ubuntu-server -> UEC conversion, and a fresh install of UEC19:19
thesheff17MTecknology: I would try one chroot env with all your users inside there with rlogin limited to the commands you want.  also have a separate home directories for the server and chroot env19:20
thesheff17MTecknology: rbash I mean19:21
MTecknologythesheff17: so make a chroot, ln -s /chroot/home -T /home; and then?19:21
thesheff17MTecknology: yea19:22
MTecknologythesheff17: what would I do after that to make it work?19:22
hggdhDaviey: hum. In my case it is always a new install19:22
thesheff17MTecknology: sorry that isn't right....don't have home a symlink.  create a new home dir for the chroot env.19:23
Davieyhggdh: What behaviour are you seeing?19:24
MTecknologythesheff17: ok, I'll cp it19:24
AndyGraybealMTecknology: back to 'dots' in the username, so you say: adduser andy.graybeal --force-badname  ?19:24
MTecknologythesheff17: so then?19:24
MTecknologyAndyGraybeal: I just do useradd -m -s /bin/bash SOMEUSER.s19:25
thesheff17you can just copy /etc/passwd to the chroot19:25
AndyGraybealMTecknology: thank you19:25
MTecknologythesheff17: and then?19:25
MTecknologythesheff17: That part doesn't seem too hard19:26
MTecknologyI'm building the chroot now19:27
thesheff17MTecknology: there a bunch of files you need for a chroot env...here is a how to: http://www.cyberciti.biz/tips/howto-linux-unix-rssh-chroot-jail-setup.html19:27
hggdhDaviey: absolutely no component registered19:29
thesheff17MTecknology: then when the users login there is something in /etc/passwd that sends the user into the chroot env...sorry it has been a really long time since I have done all this ;)19:29
hggdhDaviey: so I had to euca_conf --register* on each19:29
Davieyhggdh: Ok!  Can you pastebin your registraion.log?19:30
hggdhDaviey: one more thingy -- current ISO -- libvirt-bin did *not* start up on boot19:30
MTecknologythesheff17: I'm using debootstrap now. I figure I can trim that down after things are working..19:30
Daviey*sigh*19:30
Davieyhggdh: thanks for letting me know19:30
thesheff17MTecknology: that will work19:31
MTecknologythesheff17: then I need to copy home, resolve.conf, passwd, shadow, and mount proc?19:31
MTecknologythesheff17: then.. I've no idea :P19:31
hggdhDaviey: http://pastebin.com/mZ1U8GVK19:32
MTecknologythesheff17: unpacking this much data takes a while :P19:32
hggdhDaviey: my pleasure ;-)19:33
Davieyhggdh: I'm somewhat concerned about the cluster not being recognised19:34
DavieyI've not seen that issue here :S19:34
hggdhDaviey: might be something that changed in the eucalyptus-udeb?19:35
SpamapSugh.. thats 3 times in a row today where I triaged one bug, and in the time it took, another one was reported. >:19:35
Davieyhggdh: I think this might be the case19:37
Daviey*sigh*19:37
jordI've got a problem with Avahi. It starts at boot but does not advertise it's services until I restart it. Any ideas?19:37
Davieyhggdh: I'm firing up a cloud in a while from the latest daily, and will report my findings... hopefully they match19:38
Davieyjord: No idea.. but please keep me posted about what you find out.  This might be causing me an issue aswell, so i'd appreciate it if you can let me know what happend.19:38
jordDaviey: sure, it's pretty annoying!19:39
MTecknologythesheff17: another fun issue... out of disk space19:39
thesheff17MTecknology: hehe your devs won't be doing much with no disk space :p19:40
SpamapSis Avahi an upstart job or rc script still?19:41
MTecknologythesheff17: I cleared it up enough that they can - for now19:41
SpamapSseems like if anything would need a real IP assigned, it would be avahi19:41
MTecknologythesheff17: gotta fix this issue first :P19:41
hggdhDaviey: good. I do hope it matches -- I also tested with the current dailies. Meanwhile, time to dig in the installer/syslog19:41
MTecknology!kvm19:41
ubottukvm is the preferred virtualization approach in Ubuntu. For more information see https://help.ubuntu.com/community/KVM19:41
Davieyhggdh: Cool.. please do let me know what you find. :)19:42
SpamapSDaviey: I installed eucalyptus-cc trying to test the ganglia script, but I never got any stats files...19:48
SpamapSdo I have to spawn nodes to get stats?19:48
=== _ng is now known as _NG
MTecknologythesheff17: yay, so simple - now for a lot of moving files around19:50
thesheff17MTecknology: excellent :)19:50
DavieySpamapS, sadly - you do :/19:50
DavieySpamapS, Is there any thing me or hggdh can do to provide data?19:51
ivoksDaviey: no :)19:51
ivoksDaviey: but i will start now :D19:51
MTecknologyI love it when something doesn't die on kill -9...19:51
Davieyivoks, RE: the postfix bug?19:51
ivoksDaviey: yes19:51
Davieyoh cool!  You rock!19:51
ivokseh? not really19:52
MTecknologyIt'd be great if there was one end-all-be-all command to destroy a process19:52
batokis there a default password for user root in mysql ?  First time accesing mysql in ubuntu 9.1019:53
MTecknologybatok: no, when you install mysql it asks you for that19:53
ivoksnope19:53
Davieyivoks, you rock for doing it now :)19:54
ivoksbatok: if you don't know it, sudo dpkg-reconfigure mysql-server-5.019:54
batokwell I just did the apt-get19:54
batokok tks19:54
DoonzHey guys19:55
Doonzhey guys im using sshfs to mount a remote directory on my local server. Is there a way to make this mount a constant connection because sometimes it disconnnects and then i have to manually remout it19:56
Doonzive tried the tcpalive and clientinative and serverinactive but its still disconnects19:56
Doonzis there something else i could do?19:56
ivokswhy does it disconnect?19:57
Doonzdunno19:57
Doonzls: cannot open directory .: Transport endpoint is not connected19:57
ivoksdoes your internet connection gets disconnected?19:57
Doonznope19:57
MTecknologythesheff17: gah! Disk IO needs to become limitless19:58
ivoksis there a timeout on ssh server? does it get periodily disconnected or in case on inactivity?19:58
MTecknologythesheff17: mkfs has been running for 5min now :(19:58
MTecknologyon only 30GB19:59
SpamapSDaviey: If you wanted to tar up your /var/run/eucalyptus and /var/log/eucalyptus, and send those to me, that would help19:59
Doonzi just remount it and everything is good19:59
SpamapSDaviey: otherwise I'll just start spawning nodes. ;)19:59
Doonzill check the timeout on the server20:00
thesheff17MTecknology: you can run nice before the command so it doesn't stress other things running20:00
ivoksDoonz: remounting doesn't answer the question20:01
Doonztheres no timeout specified in the sshd_config file20:01
MTecknologythesheff17: I'd probably make it not so nice to oth3er things :P20:01
ivoksDoonz: is your conenction dropped after period of inactivity or every, let's say, 5 minutes?20:01
Doonznope20:01
MTecknologythesheff17: it's only 30GB - it shouldn't take this long :S... it's virtual i guess20:01
DavieySpamapS, It might be a good learning experience to deploy your own cloud. :)20:01
Daviey(if you have the time / motivation )20:02
thesheff17MTecknology: yea 30GB should be quick20:02
MTecknologythesheff17: I'm still waiting20:02
ivoksDoonz: 'or' questions can't be answered with yes or no :)20:02
Doonzmy ssh never drops20:04
millerdSo I have a computer lab of imaged Ubuntu machines, using cluster ssh how do I connect to them all?20:05
ivoksDoonz: what i've asked is:20:05
ivoksDoonz: does you connection drops while you are using that mount?20:06
ivoksDoonz: or is it just dropping after some time when you aren't using it20:06
Doonzits if i havent used it20:06
ivoksso, it's timeout20:06
Doonzclient side or server side?20:06
ivokssomething kills the connection cause of inactivity20:06
hggdhDaviey: I can see no errors on the installer/syslog20:08
hggdhDaviey: I think I will reinstall from scratch, and -- before doing anything else -- check on the settings20:09
leniosdoes anyone have experience with encrypted disk (luks) containing LVM? i broke the mbr, and having issues booting it20:10
leniosinitrd and linux image should be safe, but /boot/grub was overwritten20:11
ivoksDoonz: probably client side20:12
Doonzwell that brok it more20:12
Doonzlol20:12
Doonzread: Connection reset by peer20:12
ivokswhat broke it?20:13
millerdSo I have a computer lab of imaged Ubuntu machines, using cluster ssh how do I connect to them all so I can manage them, update them etc?20:14
Doonzconnection time20:16
=== _NG is now known as _ng
Doonztoo many 9's20:16
Doonzfixed it only one way to see if that fixes it20:16
ivoks9?20:16
ivoksi'm not telephatic20:17
ivoksor however it is spelled20:17
Doonzconnection timeout was 9999999999999999920:18
Doonzit didnt like that20:18
ivoksit could be your gateway that's killing the connection20:19
thesheff17millerd: I would use private/public ssh keys and write a script to run commands on the remote servers.20:19
millerdHow do I do that?20:19
thesheff17millerd: search google for ssh keys and learn how they work20:22
MTecknologythesheff17: OK! chroot is setup and I can become users inside of it20:22
MTecknologythesheff17: now what? :P20:22
thesheff17thesheff17: I would get rbash working for each user with each command you want20:24
MTecknologythesheff17: rbash won't do what I need it to20:25
MTecknologythesheff17: in #bash they even said it's a bad idea to rely on it at all20:25
thesheff17MTecknology: with chroot all the commands are disabled....you should symlink the commands you want20:26
uvirtbotNew bug: #452910 in asm2 "Encoding javac and javadoc warnings during build" [Low,New] https://launchpad.net/bugs/45291020:26
MTecknologythesheff17: yup- I have a fully functional chroot right now20:28
MTecknologythesheff17: I can ping google and su users from inside of it20:28
thesheff17MTecknology: nice what else do you need to do?20:31
MTecknologythesheff17: drop the user into that chroot as their user20:32
thesheff17MTecknology: its something in the /etc/passwd20:34
thesheff17MTecknology: that forwards them into the chroot env20:35
MTecknology!search chrootshell20:38
ubottuFound:20:38
thesheff17MTecknology: Even with the chrooted SSH that we have just installed you can log in without being chrooted (which makes sense if you log in as root, for example). Now, how does the chrooted SSH decide whom to chroot and whom not? That's easy: the chrooted SSH looks up the user who is trying to log in in /etc/passwd. If the user's home directory in /etc/passwd has a . (dot) in it, then the user is going to20:39
thesheff17be chrooted.20:39
MTecknologythesheff17: This?   /chroot/./home/user ?20:41
thesheff17MTecknology: http://www.howtoforge.com/chroot_ssh_sftp_debian_etch yea20:41
MTecknologyor in my case - SEF5644E4.s:x:1027:1028::/chroot/./home/SEF5644E4.s:/bin/bash20:41
thesheff17MTecknology: that is where I got the example20:41
MTecknologythesheff17: I tried changing that - but didn't wind up in the chroot20:43
thesheff17MTecknology: you are putting the . in the /etc/passwd and not the one in the chroot env right?20:45
MTecknologythesheff17: right20:45
MTecknologythesheff17: I did it on my own user account - michael:x:1001:1001::/chroot/./home/michael:/bin/bash20:45
thesheff17MTecknology: actually it looks like it needs to be in both: I see them do this: grep /etc/passwd -e "^testuser" >> /home/chroot/etc/passwd20:46
MTecknologythesheff17: ...20:48
MTecknologythesheff17: I landed my user in the chroot - but somehow the php commands are still available :S20:49
MTecknologyit's like the only thing that changed is my home directory20:49
thesheff17MTecknology: is the . in both passwd files?20:50
MTecknologyyup20:50
thesheff17MTecknology: also fix the group file20:50
MTecknologythesheff17: What is it I need to change there?20:51
hggdhkirkland: there?20:51
thesheff17MTecknology: also the .20:51
kirklandhggdh: yo20:51
MTecknologythesheff17: SEF5644E4.s:x:1028: -> SEF5644E4.s:/chroot/.x:1028: ??20:52
hggdhkirkland: on /etc/init/eucalyptus-network.conf: what did you want to do with 'INSTANCE $IFACE'? Can I just replace/take it out?20:52
thesheff17MTecknology: nm that isn't right you shoudn't have to do anything /etc/group20:53
MTecknologythesheff17: su - SEF5644E4.s20:53
MTecknologypwd -> /chroot/./home/SEF5644E4.s20:53
MTecknology:S that seems wrong20:53
thesheff17MTecknology: do all your home dirs have . in them?20:54
MTecknologymost all of them20:54
thesheff17MTecknology: is that for security?20:54
kirklandhggdh: can you pastebin that file for me?20:55
kirklandhggdh: i don't have it in front of me20:55
MTecknologyno, I just have a lot of scripts that parse things and that's one thing they parse on20:55
MTecknologyI can't imagine adding a dot would make it any more secure20:56
thesheff17MTecknology: well usually the home dir is the same as the username :)20:56
thesheff17MTecknology: is what I meant for security20:56
hggdhkirkland: http://pastebin.ubuntu.com/472341/20:57
MTecknologythesheff17: that is the username20:57
MTecknologythesheff17: I just tried it with a user w/o a dot and got the same thing20:57
MTecknologythesheff17: I'm definitely dropped into the right directory - but this is definitely not a chroot :P20:58
smoserDaviey, i tested the package that i have in my ppa20:59
smoserso that merge suggestion is good.21:00
Davieysmoser: rockin'21:00
MTecknologythesheff17: I feel like this has to be increibly close though :)21:00
thesheff17MTecknology: yea I think you are really close.21:02
MTecknologythesheff17: any app I'm maybe missing to do the rest?21:03
millerdCan anyone explain to me how cluster ssh works? Like does anyone know of a good diagram or something?21:05
AndyGraybealhow do i list all groups from the command line?  i figure it might be like: groups --list .. but alas..21:06
thesheff17MTecknology: i'm not sure I would follow this how to and see if a new user works http://www.howtoforge.com/chroot_ssh_sftp_debian_etch21:07
MTecknologyAndyGraybeal: cat /etc/group21:07
MTecknologythesheff17: I was trying to follow it, I also saw another one very similar21:07
thesheff17MTecknology: yea you are really close21:08
jordAnyone know about Avahi? It won't start at boot correctly.21:09
MTecknologythesheff17: If I manage to get this working I may very well use it on my own system :P21:10
thesheff17MTecknology: yea chroot works really well...and it really helps protect the operating system21:10
MTecknologythesheff17: :'( Everything I read says that should be it...21:12
oru_workis there such thing as "reminder" software by email ?21:13
MTecknologythesheff17: same with a new user too21:14
thesheff17MTecknology: sounds like it is missing some file maybe....maybe something in the logs?21:15
MTecknologythesheff17: nope21:16
MTecknologygah... meeting time21:17
MTecknologyI have to meet with a board - back in a few21:17
oru_workcan anyone recommend a web based callendar ?21:20
AndyGraybeali've been looking at one that is named after a monk, the name isn't coming to my mind right now.21:22
AndyGraybealbedework21:23
AndyGraybeali've never used it though, it looks like the best group calendar21:23
AndyGraybealoru_work: i've been looking at bedework21:25
zenmower..21:33
progre55hi people!  I'm starting a deamon using "start-stop-daemon --start --quiet --pidfile $SCRIPT_PID --startas $DAEMON -- $DAEMON_OPTS", but it doesnt record the pid in the specified file, so the "stop" option doesnt work. Any suggestions, please?21:42
AndyGraybeali have a newb quesiton, sorry for this.  i have a folder that is owned by the group 'tech' and andy.graybeal is in the 'tech' group and has access to write to this folder.  andy.graybeal's primary group is the 'users' group.  infact all the users are a part of the 'user' group so we can share files easily.  when he creates a file in the 'tech' folder that files group is 'user'.  andy doesn't want anyone to edit it because it'21:45
corpsegrindrHey, does anyone know if its possible to put music on an ipod from lucid server?21:49
cloakablecorpsegrindr: presumably.21:51
cloakablecorpsegrindr: You'd likely want some way to update the database, though.21:52
corpsegrindrjust manual adding would be fine. I do not need auto sync. I am just not sure how to add it since the ipod does not show up like an external drive21:53
ScottKSpamapS: I got mail over the weekend from the Kolab PHP guy (even though he's on vacation).  The short version is "We want the patches upstream, doing the configure changes is no problem.  We can't promise what upstream will do."22:04
ScottKSpamapS: I think that's reasonable.22:04
SpamapSScottK: yeah totally, it looks like the only debate is whether or not upstream of c-client will apply the patches. I think the PHP guys are totally gung-ho and ready to add functionality... its pretty much what the live an breathe. ;)22:05
ScottKSpamapS: But with the configure time checks, getting c-client to accept the patches doesn't have to block progress with php.22:06
ScottKSpamapS: Any objections if we go ahead and patch c-client/php-imap in Ubuntu?22:06
SpamapSScottK: no objections, but I would like to see the c-client patches pushed hard toward upstream.22:07
SpamapSSeems like they're reasonable, if uninterested fellows and will probably apply the patch w/o much fuss.22:08
ScottKOK.  I'll follow up with the Kolab folks on that.22:08
ScottKI think that just leaves the cyrus-imap patches and those looked pretty safe to me.22:09
SpamapStotally22:10
ScottKSpamapS: Would you rather prepare the uploads and I'll sponsor them or that I just do it?22:11
uvirtbotNew bug: #612734 in vm-builder (universe) "linux-ec2 is no longer needed in uec images" [Undecided,New] https://launchpad.net/bugs/61273422:12
SpamapSScottK: I wouldn't count on me having any time before FF.. :-/22:12
ScottKOK.  I'll do it then.22:13
AndyGraybeallet me reword this:  how do i get it so group ownership of all files under a folder stay to the group.  i know i can 'chgrp -R tech Tech_folder'  but then a user comes in an creates a file, that file is now under group ownership of that person default group.  how do i make it so that the group ownership stays as the folder's group?22:24
guntbertAndyGraybeal: I'm not sure but you could give write permissions for the directory only to the group22:27
AndyGraybealaah thank you guntbert, sorry for my newbness22:27
guntbertAndyGraybeal: no problem :) and I am not sure if it will work22:27
AndyGraybeali will test it.22:28
AndyGraybealguntbert: yea, i'm not sure how to do that exactly.22:29
AndyGraybeali mean i think it might already be that way, but i'm confused.22:30
guntbertAndyGraybeal: paste the output of ls -ld <pathToFolder>22:31
AndyGraybealas it stands the Tech folder is drwxrwxr-x ; the group is 'tech'22:31
AndyGraybealhold lemme paste it22:31
AndyGraybealaah thank you guntbert, sorry for my newbnessandy@buddleia:/srv/Desktop$ ls -ld Tech22:33
AndyGraybealdrwxrwxr-x 7 andy tech 4096 2010-08-02 16:41 Tech22:33
AndyGraybealcrap22:33
AndyGraybealbut anyone there it is22:34
guntbertAndyGraybeal: chmod u-w Tech, then you should get dr-xrwxr-x 7 andy tech 4096 2010-08-02 16:41 Tech22:35
AndyGraybealokay, let me test22:36
AndyGraybealguntbert: i made a file as 'andy.graybeal' in the Tech folder.  the user andy.graybeal is in the groups users and tech.  users is his primary group, as well as all the other users.  i logged in and i could edit that file as another user only in the 'user' folder, not the tech folder.   i know this is how it is supposed to work, but how can i accomplish it so when i make a file under the 'tech' folder only the people in the 't22:42
AndyGraybealoh crap.. my words are mixed up.22:43
AndyGraybeali edited that file as another user, in the 'users' group, not the 'tech' group.22:43
AndyGraybealanyway, i don't think there is a way to fix this the way i'm thinking.22:44
guntbertAndyGraybeal: please create a new file there and look at its permissions (ls -l newfile)22:44
AndyGraybealandy.graybeal@buddleia:/srv/Desktop/Tech$ touch testing12322:46
AndyGraybealandy.graybeal@buddleia:/srv/Desktop/Tech$ ls -l testing12322:46
AndyGraybeal-rw-rw-r-- 1 andy.graybeal users 0 2010-08-02 17:45 testing12322:46
AndyGraybeala person in the 'users' group can edit that file.22:46
AndyGraybealand this is good if the file wasn't under the 'tech' folder,  but maybe say it was under our 'shared_data' folder.22:47
AndyGraybeali have my umask set to 002 btw22:48
AndyGraybeali think what i'm trying to accomplish isn't possible.22:49
=== _ng is now known as _NG
AndyGraybeali'm sorry that was so confusing.22:56
guntbertAndyGraybeal: might be it is not possible - but ...23:00
AndyGraybeali'm sure that what i'm thinking is somewhat common; we want everything to be able to be read, but want the things under folders protected from writing by those not in the group; people can be in many groups, the folders can only be in one group.  so for instance; if i'm in 'hr' and 'tech' group, i want to be able to read and write things in the 'hr' and 'tech' folders.  and i want everyone else in those folders to be able to 23:04
AndyGraybeali don't know how to accomplish that.23:04
AndyGraybealmaybe i'll email the list, it may make more sense if i do that.23:09
=== JanC_ is now known as JanC
=== dendro-afk is now known as dendrobates

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