/srv/irclogs.ubuntu.com/2016/05/15/#ubuntu-server.txt

JanCif you can get on IRC, then what is the problem?00:23
=== ShaRose_ is now known as ShaRose
=== rodlogic is now known as Guest56353
=== rodlogic is now known as Guest26905
=== athairus is now known as afkthairus
thekrynn_trying to setup a usb ethernet dongle for an extra iface, but not showing up at all.. any ideas?06:31
g3org3sHi - would this be applicable on 16.04 ? https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin09:41
somixhello10:12
somixhow install openstack or juju in vmware workstation10:13
somixwhay10:14
somixhow10:14
somixwhaaaaaaaat10:15
somixhhh10:16
somixthaaanx10:16
somix$ sudo apt install conjure-up10:16
g3org3sCan I install mail ina box on 16.04 ?11:26
g3org3sor still not supported ?11:26
=== sexytime is now known as habibi
=== rodlogic is now known as Guest21887
devster31hi guys, what could be the reason I can lsusb and lshw an usb hard drive but I can't lsblk it and therefore cannot mount it?13:20
RoyKdevster31: dead disk?14:26
devster31it works fine on windows14:27
devster31and on OSX14:27
RoyKdevster31: what's in dmesg?14:37
RoyKplease !pastebin that14:38
RoyK!pastebin14:38
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:38
devster31http://paste.ubuntu.com/16439404/ there's lshw and lsusb too14:40
devster31it seems to know exactly what's plugged in but doesn't know it's a hard drive14:41
RoyKweird14:42
eatingthenightanyone have any recommended software for managing a small setup of 3 machines running KVM?17:09
synchronetwhy use KVM, what you using the box for?17:10
eatingthenightnothing at the moment all i really want is a low cost way to manage a small VM cluster17:14
=== habibi is now known as punisher
eatingthenightesxi does what I want but I have to pay 1k a year for it otherwise it imposes limits on what kind of resources I can allocate.17:15
synchronetok, but for running what?  Websites!17:15
synchronetif so Virtualmin GPL will do you fine17:17
synchronetNice install script as well17:18
synchronetNeeds a clean install of OS tho, I would go 14.0417:19
synchronetand a good FQDN17:20
dasjoeeatingthenight: define "cluster". Do you need automatic, managed failover?17:20
=== punisher is now known as GitGud
dasjoeeatingthenight: I stuck with libvirt, neither Ganeti, nor ovirt delivered what I needed17:21
eatingthenightyeah i guess cluster is a bad word. Downtime is completely fine.17:21
eatingthenightlooking at virtualmin gpl now17:21
synchronetTry Virtualmin you might be surprised what it can do17:22
synchronetI use it a lot17:22
synchronetbut just websites17:22
synchronetnothing fancy17:22
synchronetbackup and restore module is second to none17:22
=== GitGud is now known as habibi
eatingthenighthmmm, yeah i need a few more abilities then just website management, I think what I'll end up doing is just managing it from the commandline and then write my own web interface for it once I see what I all need. unfortunately I can't find anything in between apache openstack and cli that is halfway decent17:24
dasjoeeatingthenight: https://help.ubuntu.com/lts/serverguide/libvirt.html17:25
eatingthenightdasjoe: this looks like it will work for me, thanks!17:43
GougHi - I think I messed up smth while isntalling mysql - how can I reset it to a fresh installation ?18:37
Gougnevermind - got it to work again18:38
bekksGoug: Why do you thing you messed up something?18:39
bekksReinstalling will not fix it.18:40
GougI couldnnt login to the database - acces denied - the I restarted the service - now its working again18:40
habibithe app that i am going to be running will run as a certain user whos setuid and setgid permissions shall be stripped. but this app still needs to have the ability to open ports > 1024. will this work?19:45
habibibecause i have read somewhere long ago that to open sockets the computer sets id to root, opens the socket. then sets id back to user19:46
=== afkthairus is now known as athairus
tarpmanhabibi: you don't need any special permissions to open ports > 1024; did you mean < 1024?19:50
tarpmanhabibi: either way: yes, what you are describing (start as root; perform privileged actions; drop permissions permanently) is standard practice19:51
habibitarpman, no i meant > 1024. i know that that is not allowed. i had like 1 link that showed the easier command that removes all perms from a particular user. but i lost it. do you know what is the easiest but safest way to do this ?19:53
tarpmanhabibi: easiest and safest way IMO is to arrange for the init system to start your daemon as a unprivileged user (ideally, a user dedicated to that daemon)19:57
tarpmanhabibi: or, if does need root privileges during startup for some reason, then man 2 setuid and man 2 setgid19:58
habibitarpman, and the security friendly way (just to check with you) would be to take off all the unnecessary perms of the scripts of that user in the bin folder yeah?19:59
habibior are there any other folder i have to think about as well?19:59
tarpmanI don't understand the question, sorry19:59
tarpmanhabibi: if you want to go even further with restricting what your program is allowed to do, look into apparmor: https://wiki.ubuntu.com/AppArmor20:01
bekkshabibi: Which kind of permissions are you trying to strip off of that user?20:01
habibii need to find that link. one second let me try this20:02
habibiok i found it bekks and tarpman : http://linux-audit.com/finding-setuid-binaries-on-linux-and-bsd/20:04
bekkshabibi: And why do you want to tinker around with setuid for a specific user?20:04
bekkshabibi: Do you know what setuid is for?20:05
habibithe idea was that i make a spearate user for a daemon. then i strip that user of access to all the scripts in bin folder. so that no hacker can get into this user through the daemon and on the off chance that they can. then they cannot use the gid and uid to trick the computer to give them root access20:05
bekkshabibi: that nonsense, actually.20:06
bekkshabibi: Do you know what setuid is for?20:06
habibibekks, some guy on ##security said it was a good idea. setuid is defined like this: Binaries with the setuid bit enabled, are being executed as if they were running under the context of the root user. This enables normal (non-privileged) users to use special privileges, like opening sockets.20:07
bekkshabibi: Do you understand what setuid is for?20:07
habibibekks, bro i just told you20:07
bekkshabibi: No you told me what someone else told you.20:07
habibiBinaries with the setuid bit enabled, are being executed as if they are running under the context of the root user20:08
bekksWhich doesnt mean YOU understand what setuid is for.20:08
habibii understand what that line means20:08
bekksAnd do you know why setuid is set for those specific binaries?20:08
habibibecause those specific binaries need some type of root access in their functioning20:08
bekksCorrect.20:09
bekksSo if you unset setuid, you will break those binaries and/or their functionality.20:10
habibiyes bekks but i would argue that my user thats running that daemon may not need ALL those binaries. so removing their setuid may not be a good thing20:10
bekksWhich just have something to do with messing up your system, and not with securing it.20:10
bekksIf you dont want your user to have access to specific files, use ACL and disallow access.20:11
=== Goug_ is now known as g3org3s
habibisince thats just going to be one daemon20:13
habibibekks, and if my user is not running ALL those binaries. then removing them would be a good idea because then there is less things that a potential hacker could trick to give them root access20:13
habibito this understanding, i have set out to change the setuid and setgid values for the bin folder. and was asking if there are other binaries i want to change that could be tricked, but not really necessary for the running of my daemon20:13
bekksDo you understand that removing setuid isnt possible for a specific user, but globally only?20:13
habibibekks, that part i did not actually know. but was going to look around for20:14
habibiACL hmm ok20:14
habibii'll look into that one20:14
habibii only want to give that user access to activities needed for its daemon. namely opening sockets > 1024. reading to its home directory. and writing to its home directory20:15
habibieverything else i want to restrict. using ACL or AppArmor or w.e there is20:15
bekksSo do it. No need to mess up your system.20:15
habibialright awesome. thanks for the heads up bekks20:15
g3org3sHi - mysql issue - it's weird - I can login from the server console - I can also login from phpmyadmin - but when I use it in my php file - database connection unsuccseful - am I missing something in the config ?20:24
bekksg3org3s: How are you trying to connect, using PHP?20:31
g3org3sbekks, it's a user managemetn framerware - during setup they ask the database to connect to20:31
bekksAnd what are you entering?20:31
g3org3sDatabasr host = IP , database user and pass - the ones I am successfully using to login via shell on server or phpmyadmin - Database name : Database I created in phpmyadmin for this project20:33
bekksg3org3s: So did you configure your mysql server to accept connections on the IP? And why dont you use 127.0.0.1?20:34
g3org3sbekks, it's working now - I thought it was requesting the remote access of that server - I completly forgot that it is local! my bad ; many thank20:36
bekksyou're welcome :)20:36
=== habibi is now known as punisher
=== punisher is now known as sexytime
=== sexytime is now known as punisher
newbsieNew to systemd coming from upstart/14.04. Where do I place the conf file for systemd for gunicorn? In /etc/systemd/system with my own naminc scheme?22:20
xnoxnewbsie, yes, more or less. Also note https://wiki.ubuntu.com/SystemdForUpstartUsers22:30
newbsiexnox: If I need to run different processes of gunicorn for different websites, do they each go in their own conf file?22:31
xnoxread systemd units documentation on template units22:34
=== ToneKnee_ is now known as ToneKnee
conrmahrIs there any chat logs saved somewhere? I had someone help me re-image a disk but didn't write it down.23:26
RoyKdepends on the client23:27
conrmahrlimechat?23:28
RoyK l23:30
RoyKno idea - sorry23:30
tewardmaybe ask #limechat ?23:31
tewardconrmahr: ^23:31
conrmahrHow about I ask for help on re-imaging a secondary disk23:32
conrmahrCan some one help remove all partitions on a WD Red 4GB harddrive that has RAID array on it?23:48

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