/srv/irclogs.ubuntu.com/2014/02/17/#ubuntu-server.txt

jo-erlendsmall favour: can someone see if I have port 22 open on schinstad.no?00:33
TJ-jo-erlend: Doesn't look like it00:33
sarnoldjo-erlend: no response yet, feels like it's set to DROP00:33
jo-erlendwt... Why does openssh-server suddenly break? This is the second server I've experienced this with since 12.04.4.00:35
jo-erlendit used to work properly.00:35
TJ-It's never broken in my experience, unless someone 'tweaked' it00:36
jo-erlendah.. I've never actually tested from outside my network. Perhaps it's the ISP... Maybe I was a bit hasty :)00:36
sarnoldare you travelling? mine breaks most often when I'm travelling :) hehe00:36
TJ-Best to use a VPN and ssh and everything else through the LAN tunnel00:39
jo-erlendBy default, openssh-server should listen on all interfaces regardless of IP, right?00:40
sarnoldTJ-: in my case it's just flaky hardware that sometimes needs a reboot. pandaboards are neat but "five nines" isn't in their vocabulary :)00:40
jo-erlendah! Haha, no, it's my fault! I forgot to forward the ports... That was embarassing. :]00:40
* TJ- rolls eyes :)00:41
jo-erlendI have two different networks at home right now. I forgot that one of them is NATed :)00:41
sarnoldhooray :)00:42
TJ-sarnold: really? I try to ensure the gateways are super-reliable... powered off 12V lead-acid batteries, 3G back-up for the VDSL, two of them ... belt and braces :)00:42
sarnoldTJ-: very nice :) my main priorities were "I'd like it to be silent and draw nearly no power", which the pandaboard does very well.00:43
sarnoldTJ-: I just hadn't expected it to be so much less reliable than a regular PC.. oh well, some day I'll find a suitable replacement for the thing. :)00:43
TJ-sarnold: same here, 15W00:43
jo-erlendI read about the IGEPv5 the other day. Seems very interesting.00:43
TJ-sarnold: Zyxel VMG892400:43
TJ-At some point I'm hoping to re-spin the firmware to be based on Debian or even Ubuntu (MIPS CPU) but for now using a slightly modified Zyxel base. Probably get there in a year's time :)00:45
sarnoldTJ-: heh, MIPS ubuntu might be some work, but debian, sure.. the UBNT folks already have a tiny mips debian router that looks cute..00:46
TJ-I've got cross-builds of userspace already, it's figuring out the Zyxel firmware and being sure I don't break it. Been getting the JTAG stuff ready. There's an ISP in Denmark contacted me, wanting to put openwrt on them... I might take the challenge :)00:47
sarnoldTJ-: oh, okay, you're well ahead of the game then :)00:47
TJ-Like everything,  its finding the time00:48
sarnoldyeah00:48
sarnoldsee also: working on sunday afternoon...00:48
TJ-Monday morning here!00:48
sarnoldugh :) sorry to hear it! hehe00:48
jak2000hi all01:02
ohmygoshjoshCan someone point me to some resources on best practices for running a daemon as another user?  For example, I am running "play framework" on an ubuntu box as the user "play" but I can't invoke the binary without using sudo?02:40
ohmygoshjoshNote that this user is defined with a /bin/false shell02:41
Titaniumi have this script that is running using init.d, and it does not work. When i run it as root from my useraccount it works.02:41
Titaniumi dont see what would be different02:41
ohmygoshjoshfunny, we have pretty similar questions.02:41
TJ-Titanium: environment02:41
Titaniumis there some way to run  it as root using my username?02:43
Titaniumfrom root?02:43
Titaniumnot sure what to ask02:43
TJ-No, fix the script. Probably the script isn't using absolute paths to binaries/scripts it calls, or expects some environment variable to be available, that isn't02:45
TJ-e.g. PATH is very different for $USER compared to the basic shell at startup02:45
Titaniumit runs a program that crashes a lot02:46
Titaniumand re-runs it when it crashes02:46
Titaniumthat program fails after it starts02:46
Titaniumbut it runs it just fine :(02:46
ohmygoshjoshis it possible to execute a bin as a user whose shell is /bin/false?02:46
TJ-Why does the program crash?02:46
Titaniumits porrly written02:47
Titaniumpoorly02:47
Titaniumi have a script i can run and it works fine. I was looking for a way to automatically run this at boot02:48
=== TDog_ is now known as TDog
prgCoderhi all, i am new to ubunu server - is there any easy to install tools that are like YAST for SuSE ?03:34
TJ-prgCoder: The apt tools, the main one being apt-get. Try "man apt-get" .... you can also check on available  packages using "apt-cache" ... always check the man-pages, Debian/Ubuntu are very hot on providing useful man-pages for every tool and most major config files03:37
prgCoderTJ-:thanks - but what about tools to configure the network, or cups (printers), or user accounts, or filesystems - is this all command line only - or it there character based menus ?03:42
TJ-it's all command line.03:43
TJ-see for example https://help.ubuntu.com/12.04/serverguide/network-configuration.html03:43
prgCoderok - bit backward03:48
prgCoderwhat about when ubuntu server is installing, is there any of those semi-gui tools available after the install ?03:58
jak2000apache question: ServerName midomain.com and ServerAlias www.midomain.com   its correct?04:07
jak2000when reload apache2 service i get this warning: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName   how to remove? thanks04:30
=== Corey_ is now known as Corey
Titaniumwhats with disableing my system information when my load average gets above 10 ?05:14
Titaniumif it was below 10 i would be expecting problems...05:14
sarnoldwhat's "system information"?05:14
Titaniumwhen you ssh in05:15
Titaniumthat stuff it shows like the IP and load average05:15
sarnoldah!05:15
sarnoldI hadn't realized that went away with higher load average. you're right, it'd be more useful when it is high.. hehe. it might be so you can get to a # more quickly and fix things..05:15
Titaniumyeah, probably05:16
Titaniumbut 10 seens way too low a setting these days with a dozen cores per cpu being common05:16
Titaniumits probably easy to change, i just need to look05:17
=== TDog_ is now known as TDog
hxmhello good morning07:13
hxmin your experience, what is the best way to backup your server?07:13
hxmlinking dropbox?07:13
sarnoldhxm: investigate rsnapshot, duplicity, tarsnap07:15
hxmthank you07:16
cfhowletthxm, good question for #ubuntu-server channel07:16
hxmsorry if I annoyed, was not my intention07:16
cfhowletthxm, no no , just thought they might have an answer for you07:16
cfhowlett!server07:16
ubottuUbuntu Server Edition is a release of Ubuntu designed especially for server environments, including a server specific !kernel and no !GUI. The install CD contains many server applications. Current !LTS version is !Precise (Precise Pangolin 12.04) - More info: http://www.ubuntu.com/products/whatisubuntu/serveredition - Guide: https://help.ubuntu.com/12.04/serverguide/C/ - Support in #ubuntu-server07:16
sarnoldhxm: oh yes, also look into amanda and bacula07:17
hxmi know you all are very experienced and quite expert in this, in fact this is my favorite channel07:17
=== psivaa-afk is now known as psivaa
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
hxmshould do I care about this? update-rc.d: warning: /etc/init.d/copyconsole missing LSB information11:23
cocoa117when a network device was set with IP address but no broadcast address does this mean, the kernel won't respond to any broadcast received on this particuular network dev?11:54
alamihello, wehre can i find dns entry in my ubuntu dns server12:01
cocoa117alami, what version of ubuntu u got?12:02
alami12.1012:03
cocoa117cat /etc/resolv.conf12:05
cocoa117if it is server12:05
cocoa117not a desktop12:05
TJ-alami: What do you mean by "DNS entry" ... the upstream DNS resolvers, or its own fully-qualified domain name?12:05
alamii'm looking for somthing end with txt12:06
makaracurious12:07
makarawhat are you trying to achieve?12:07
TJ-alami: https://help.ubuntu.com/12.04/serverguide/dns-configuration.html12:11
ccha2hello I got a zombie process,... this process binded a port, but right now the port still used12:16
ccha2how can I free up this port with reboot ?12:16
ccha2since it a zombie process now, I can't kill it12:17
vedicI have full access to remote server but for certain things I want to allow access to certain directories to few other users as well. For this I have created multiple private key/public key pair. Can I restrict access in authorized_key using "command="? Note that I have not created multiple users but a single user without multiple keys13:13
vedicDoes "command=" works for per user or per key?13:14
vedic have full access to remote server but for certain things I want to allow access to certain directories to few other users as well. For this I have created multiple private key/public key pair. Can I restrict access in authorized_key using "command="? Note that I have not created multiple users but a single user without multiple keys13:21
pmatulisvedic: well, 'command=' is in a public key file right?  so, per key13:24
vedicpmatulis: ok13:26
vedicpmatulis: Thanks13:27
pmatulisvedic: will a sftp chroot be sufficient here?13:32
=== gary_poster|away is now known as gary_poster
=== Pici` is now known as Pici
vedicpmatulis: I want the user to limit access to certain directories only13:42
pmatulisvedic: sftp chroots can do that13:43
vedicpmatulis: What is the advantage of multiple user-multi keypair vs single user each having key pair13:44
vedicsingle user account accessed by multiple developers using their respective keys vs multiple user accounts on the server and each user has its own key pair13:44
vedicThis is for setting up a repostory13:44
tomixxx3hi, what does it mean, if i set "gateway" to the same ip address as "address" ?13:46
tomixxx3(in "interfaces" file)13:46
pmatulisvedic: what kind of repository?  what do the connecting users actually need to do?13:48
vedicpmatulis: bzr+ssh13:48
TJ-vedic: have you considered integrating something like gerrit (code review) into the workflow, so that it manages the canonical repository, and develops each push to gerrit and pull from gerrit and each-other?13:53
vedicTJ: I have my code repository on remote server. I want to allow some of my friends access to that bzr repository. For this, I am thinking of should I create multiple users each with ssh access and limit their ability to do things via "command=" in authorized key or should I create multiple key pair without actually creating multiple users13:58
pmatulisvedic: what about just not allowing shell access (nologin)?13:59
vedicpmatulis: they won't be able to push and pull the code to/from repository.14:00
vedicpmatulis: You mean something like: sudo useradd -r -s /bin/false USERNAME14:00
vedicI am not sure ssh will execute any remote command without shell access14:01
TJ-vedic: With DVCS I prefer not to allow multiple users write access to the same repo, having a gatekeeper in the form of a single developer, or a code-review and integration tool, is my preferred method14:14
SlidingHornCan someone elaborate on why php/apache run as privileged users by default & how to secure that without jumping through hoops?  lol14:15
TJ-vedic: I'd allow each dev there only cloned branch and use push/pull/merge workflow to integrate into a canonical project repo14:15
SlidingHorn(sorry to cross post...forgot there was a server room of its own)14:15
vedicTJ: any tutorial on that which you can refer?14:16
vedicTJ: Yea, but why not allow multiple users to commit, push, pull and merge to a shared repo? We can always create a new branch 'release' on which only one devloper has access and that branch goes to production14:17
TJ-vedic: Depends on which workflow you mean ... setting up multiple independent developer repos is just a case of doing for each what you'd do for one, the rest is just the actual workflow the devs follow14:17
TJ-vedic:  why not? Because there is abundant history of that causing major breakage of repos. The whole point of DVCS is to get away from that centralised model14:17
vedicTJ: Ok, so everyone clone the main repo and push/pull/merge into their own local repo. When they think all is well, it is pushed to main?14:18
vedicTJ: or you are saying main => [everybody clones this] and then dev goes in their local repo and when they think its good to go, it goes to gatekeeper repo and gatekeeper reviews it and push to main?14:20
TJ-vedic: Your second scenario, yes14:21
TJ-vedic, That the scenario where the gatekeeper can be a tool like gerrit, potentially hooked into a CI tool like jenkins too14:22
vedicTJ: I see14:22
vedicTJ: gerrit doesn't seem to work with bzr14:23
TJ-vedic: Probably not, bzr is becoming abandonware last I read, most people use git or mercurial14:23
vedicTJ: Ubuntu uses bzr ?14:24
TJ-vedic: Indeed... see the problem?14:24
vedicTJ: like what14:24
TJ-vedic: a good read: http://www.stationary-traveller.eu/pages/bzr-a-retrospective.html14:26
TJ-vedic: Also this from a Canonical bzr developer about internal workflow: "I started off with some fixes to the developer documentation. This got me used to the process that you can not commit directly to bzr’s trunk, instead all committers are required to make merge proposals on Launchpad, have those approved by a fellow developer, then send it to a programme called Patch Queue Manager which will integrate the patch and run the test suite to check everyth14:32
TJ-ing still works." ...  http://blog.bazaar.canonical.com/?p=38314:32
SlidingHornno suggestions / answers on the php/apache thing?14:38
TJ-SlidingHorn: You need to be more specific, apache/php by default do not run as the privileged user. apache runs as user www-data.14:44
=== huats_ is now known as huats
SlidingHornTJ-,  aren't user & group IDs under 100 privileged?  php is running as 3314:50
vedicTJ: I have been using bzr for some time and I never found any issue. Its simple to use, revision numbers are human friendly and less number of commands14:51
TJ-SlidingHorn: no, privileged usually means the root user, that can read/write anywhere regardless14:51
SlidingHornTJ-, so phpsecinfo is likely being overly sensitive in its scan?14:52
TJ-SlidingHorn: Sounds to be a bad report entirely if it classes a low UID as somehow privileged14:54
SlidingHornTJ-, yeah...their exact explanation is: "User IDs under 100 are generally reserved for privileged/system users. If PHP executes as a userid under 100, it may have access to read or manipulate system files."14:56
TJ-That is a very poor summary!14:56
TJ-So poor as to be factually incorrect14:56
SlidingHornTJ-,  I've been worrying about this for a couple days...stopped progress on a project for it, lmao14:57
TJ-if the apache process is running as www-data:www-data then it will only be able to access resources that allow those... plus any resource that has o+rwx14:57
TJ-SlidingHorn: You poor thing... send them the bill for your time and grey hairs!14:57
SlidingHornI can't bill them for my ignorance...I'd be a rich man...14:58
TJ-we wish :)14:59
TJ-But the message is factually incorrect, in fact it is so bad - for a security scan tool - as to make me not want to touch that tool at all14:59
SlidingHornTJ-, any suggested alternatives?15:00
TJ-SlidingHorn: On Linux... I've never needed to worry ... although I stay away from php packages as much as possible since the code quality of many projects isn't high15:02
=== freeflying is now known as freeflying_away
=== thesheff17_ is now known as thesheff17
simpleirc1hello17:38
=== TheLordOfTime is now known as teward
=== keee is now known as w0rmie
parallel21Is there a way to recover just filenames without recovering an actual file?19:15
RoyKparallel21: no19:29
=== aarcane_ is now known as aarcane
mdeslaurroaksoax, hallyn: If all goes well, I plan on uploading virt-manager 1.0.0 before feature freeze...any objections?20:36
hallynmdeslaur: nope, thanks20:46
roaksoaxmdeslaur: not on my side! Thank you!21:14
med_smoser, jamespage, roaksoax, zul:  I see 12.04, 12.04.1, 12.04.2 at http://old-releases.ubuntu.com/releases/ but not 12.04.3. Is that by design since raring had such a short support life or is it an oversight?21:16
med_(only 12.04.4 on the main download site)21:16
brendan`anyone set up an ldap & samba4 server as a DC? on separate boxes with 12.04 and able to point me to a quality guide21:23
=== jim is now known as Guest36787
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
tomreynis it common nowadays to manage a servers' network connection using network-manager?22:59
tomreynor would you recommend keeping it simple with just ifconfig / iputils22:59
sarnoldtomreyn: I'd avoid network-manager, stick with /etc/network/interfaces and friends23:00
tomreynAfter this operation, 462 MB of additional disk space will be used.23:00
sarnold(though I haven't yet found a way to configure /etc/network/interfaces to bring up multiple IPs on one interface. bah.)23:00
tomreyni tend to agree23:00
tomreyni think the usual way would be to add the additional ip addresses using "post-up" (or whatever that trigger is called) calling the "ip" command23:01
tomreynso you'd add "up ip addr add 10.4.2.1/32 dev eth0" to your "iface" section in /etc/network/interfaces23:03
tomreynbut i only tried this on debian squeeze, where it works fine23:03
sarnoldtomreyn: I guess that beats dragging around shell scripts; it's nice to know it works fine :)23:06
=== freeflying_away is now known as freeflying
tomreyn:)23:07

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