/srv/irclogs.ubuntu.com/2017/06/22/#ubuntu-server.txt

=== inteus_ is now known as inteus
gheorghe_can you pass a shell script when using exec with LXD? example (doesn't work): "lxc exec container < script". please don't send me to #lxd, there are 10 people there and nobody answers.04:12
gheorghe_also, please don't tell me to copy the script.sh file to container folder, exec via "lxc exec container /path/to/script.sh", i tried that. i am hoping to get a more elegant way to do this, to keep big scripts clean04:14
dpb1gheorghe_: #lxcontainers are where everyone hangs out.04:25
dpb1I don't know of a way to do exactly what you are asking, no.04:25
dpb1gheorghe_: ah, found it.04:26
dpb1gheorghe_: echo 'ls -l /var' | lxc exec artful-nis bash04:26
dpb1same would work for cat /script | ...04:27
gheorghe_dpb1: indeed, this works great. how did you find this? search on google and found nothing06:24
lordievaderGood morning07:06
jamespageicey: pls can you do the tag work on https://bugs.launchpad.net/ubuntu/+source/nova-lxd/+bug/1692962 and then its eligible for release08:13
ubottuLaunchpad bug 1692962 in nova-lxd (Ubuntu Zesty) "incompatible with storage pool support in LXD 2.12" [High,Fix committed]08:13
ztaneany guide for easily setting letsencrypt certs for landscape11:44
ztanelandscape on premises11:44
ahasenackztane: nothing specific. The landscape frontend is apache (when installed via the packages), or haproxy (when installed with juju), so you should look into how to add letsencrypt to those packages12:22
=== oerheks is now known as niemand
=== niemand is now known as oerheks
=== danpawlik_ is now known as danpawlik
dpb1gheorghe_: checked if lxc exec would pass through stdin, and the help implied it would, then I just tried it. :)14:06
ahasenackrbasak: hi, could you please import libapache2-mod-auth-pgsql? :)14:37
rbasakack14:37
rbasakrunning14:37
ahasenackshould be quick14:37
ahasenackrbasak: did it fail?14:45
ahasenackor is it still running14:45
rbasakStill running.14:48
ahasenackinteresting14:48
rbasakahasenack: done and pushed14:49
ahasenackrbasak: thx14:52
tewardif I wanted to chair a server team meeting at some point would I just have to add my name to the list of potential chairs or do I need to have that cleared by someone far higher level up than I am :P15:18
teward(just curious)15:19
=== danpawlik is now known as danpawlik_
naccteward: that's basically it :)15:22
naccteward: we trust you to do it, i'd say15:22
rbasakteward: chairing is a chore for us. Nobody will object to you chairing :-)15:22
rbasak(also as nacc says you know what you're doing)15:22
rbasakteward: note the post-meeting tasks at the bottom of https://wiki.ubuntu.com/ServerTeam/KnowledgeBase15:23
rbasakThe logs we're doing slightly differently now; we should update the wiki about that.15:23
tewardrbasak: chairing is a chore, except that with a flexible work schedule here and 100Mbit pipe that I'm allowed to jack right into for some of my projects, it's, in my opinion, a "Necessary during-the-day distraction to keep myself sane" instead of having fifty projects that all demand my attention.15:25
tewardhey we all have to divert ourselves into productive things during the day that may not be 100% work related, no?15:25
teward(for me, that's the server team meetings on Tuesdays heh)15:25
tewardbesides, I pull enough off-hours work that i bill for :P15:26
rbasakChairing is a chore *for us*. If it gives you a break, please do it! :)15:26
tewardadded myself now :)15:27
dpb1teward: nice :)15:27
tewardrbasak: and a nice 1h block in my schedule is set away so people don't constantly steal me away - indicates Ubuntu Server Team meeting, plus it being non-billable time xD15:27
tewardso they can't really yell at me xD15:27
teward*drifts back to figuring out why his python code is breaking but only on 14.04 systems*15:28
tewardrbasak: nacc: dpb1: I added myself to the end of the list of chair candidates, do you want me to put me further up in the list, or no?15:35
naccteward: i think that's fine15:35
tewardcool/.15:37
=== JanC_ is now known as JanC
dpb1teward: should be fine.  next week will be ahasenack's first time charing so I don't want to take that privalege away from him :)15:53
tewardindeed heh16:27
hehehe_offhey hey18:01
hehehe_offif robots.txt is 640 will it work?18:01
hehehe_offpermissions 64018:01
hehehe_offteward: having schedule is bad sometimes :D too many demands18:02
genii644 is the usual18:09
Epx998Is there a dpkg or apt command to see what a package is a prereq for?18:20
naccEpx998: given package X what packages depend on X?18:20
Epx998nacc: yes18:20
naccEpx998: reverse-depends18:20
naccEpx998: and apt-cache rdepends18:21
Epx998nacc: you're awesome, thank you.18:21
=== Piper-Off is now known as Monthrect
tewardhehehe_off: [2017-06-22 14:02:16] <hehehe_off> teward: having schedule is bad sometimes :D too many demands  <-- except when you get to set your own schedule.  In which case, ***SCORE***18:59
tewardanyways18:59
hehehe_offteward:  :)19:51
hehehe_offwhats the danger of having some directories like images set to 755?19:51
hehehe_offgenii: why 644?19:52
hehehe_offok so bot can read it19:53
hehehe_offgot it19:53
hehehe_offty19:53
geniihehehe_off: So it can never be an executable file and only readable otherwise19:53
geniiAnd yes, if 640 then you can't get to it from a webpage or bot19:54
hehehe_off:)19:54
hehehe_offgenii: what is public got read and execute on some folder19:55
hehehe_offwhat can it do?19:55
hehehe_offapart trying to pass some php code to php fmp19:56
hehehe_offfpm19:56
geniiLets say the file is owned by apache and anyone can write and execute that file. They can replace it with a binary and be able to execute that binary file with whatever rights you've given apache.19:58
hehehe_offbut how they can replace it with binary?20:00
geniiBut what someone would usually try instead is to make a binary which has some exploit to escalate priveleges from apache to root20:01
hehehe_offmakes sense20:01
hehehe_offas apache cant do much20:01
hehehe_offhow do they load it? :D20:01
hehehe_offthere are many free file upload sites, they clearly got some protection from ot20:02
hehehe_offit20:02
geniihehehe_off: Some people make their webfiles priveleges things like 755 or 777 because they can't figure out what's appropriate. So in that case anyone can just overwrite any of their files with whatever they want to20:04
* genii wanders back to work20:05
naccteward: you're pretty active on AU, right?20:25
gheorghe_hehehe_off: even if apache can't do much, it will still be able to cause a lot of damage. apache usually has write access on DBs and other data, so corruption can happen and if you don't have a backup, you are dead. that, or a fork bomb. a fork bomb is always fun. doesn't to that much damage, but it is fun. :D20:35
gheorghe_hehehe_off: think about it this way: you get apache writes on a container that is on a hypervisor with other 50 containers, and RAM and CPU have no limits for the container the apache runs on. if you fork bomb, you kill 50 containers. if you plan the fork bomb in the file and keep accessing it, you will fork bomb the server on each reboot. :D20:36
hehehe_off:))21:06
hehehe_offwell here nginx dont have access to db21:07
hehehe_off:)21:07
hehehe_offgheorghe_: 5 is read and execute21:08
hehehe_offhow they going to plant file?21:08
hehehe_offam I missing something?21:08
sarnoldif you're running php just assume someone's got remote code execution on your server21:52
rbasaknacc: I believe he's a moderator there22:13
naccrbasak: ack, there was a user earlier in #ubuntu who was basically trying to answer AU questions by asking in #ubuntu, then c&p our responses to the AU post.22:17
naccrbasak: was wondering if that violates their policies :)22:17
rbasakIMHO it's certainly inappropriate misattribution.22:20
rbasakI don't see anything specific in the CoC but it certainly is against the spirit of it, and askubuntu.com applies the Ubuntu CoC.22:21
rbasakAnyway, I'll leave it to teward :)22:21
naccrbasak: and they were sort of belligerent about it all...22:23
naccrbasak: but yeah, i'll sync up with teward on it22:23
hehehe_offsarnold: what are u saying23:02
hehehe_off:D23:02
hehehe_offanyways23:02
hehehe_offu just need to ask long island medium23:02
hehehe_offand she can tell you if server config is ok23:02
hehehe_off:D23:02

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