[00:33] <arooni> but is there anyway to actually know what shell is being used?
[00:35] <sarnold> arooni: sure, check crontab(5) and see that it says /bin/sh is used :)
[00:36] <arooni> ok my bad; i shoulda rtfmd
[07:45] <Neo4> who know how to reach roundcube?
[07:45] <Neo4> I did sudo apt-get install roundcube
[07:46] <Neo4> and go to this url kselax.ru/roundcube and can't reach
[07:48] <ikonia> define "can't reach"
[07:58] <Neo4> ikonia: can't access roundcube
[07:58] <Neo4> http://kselax.ru/roundcube/
[07:58] <Neo4> now good it shows error 500, before didn't work at all
[07:59] <Neo4> this instruction https://help.ubuntu.com/community/Roundcube
[08:01] <Neo4> I forgot where to watch errors for web server
[08:04] <ikonia> /var/log/
[08:08] <Neo4> ikonia: https://91.227.18.36/info.php
[08:08] <Neo4> php doesn't show errors by default
[08:08] <Neo4> and apache log file I removed everything from there and it doesn't show errors also
[08:09] <Neo4> apache log here /var/log/apache2/error.log
[08:09] <Neo4> I need put php log in the same file for easier look logs
[08:09] <Neo4> better when all logs in the same file
[08:10] <ikonia> php logs just fine
[08:13] <Neo4> ikonia: default it off
[08:19] <ikonia> it will log in the apache error log the core problem of a 500
[08:26] <Neo4> ikonia: php hasn't errors, and apache also
[08:28] <ikonia> pretty such if you're getting an error 500 one of them will be erroring
[08:30] <Neo4> now works,
[08:30] <Neo4> might it was cache
[08:31] <Neo4> I watch log in vim
[08:31] <ikonia> vim won't update real time
[08:32] <Neo4> ikonia: yes, there might exists cache
[08:32] <Neo4> who can update?
[08:32] <ikonia> not cache
[08:32] <Neo4> error https://paste.ubuntu.com/p/zsd33dcyHM/
[08:32] <Neo4> ikonia: buffer
[08:32] <ikonia> it's just not a real time tool
[08:32] <ikonia> it's not a buffer
[08:32] <ikonia> it's not a real time tool
[08:33] <Neo4> in vim all files open and put to buffer
[08:33] <ikonia> it opens what is there at that moment in time
[08:33] <ikonia> it's not a buffer
[08:37] <Neo4> I changed user for apache from www-data to neo
[08:38] <Neo4> ok, I see it doesn't work properly, better way install roundcube it's load on server files and put to separated folder like I before doing
[08:38] <Neo4> automatically it impossible something customize
[08:39] <Neo4> using sudo apt-get
[08:39] <Neo4> drwxr-x---  2 www-data adm       4096 Apr  6  2016 roundcube/
[08:40] <Neo4> my user neo can't write there
[08:40] <Neo4> for apache2 more useful to have main user user which is load files to server
[08:41] <Neo4> I don't want www-data
[08:41] <ikonia> you need to use www-data
[08:41] <ikonia> it is the correct way to use the permissions model
[08:41] <Neo4> ikonia: why? How I will load files on server using ftp? I will always care about permission
[08:41] <ikonia> ok, then you do that
[08:41] <ikonia> no-one else will
[08:42] <Neo4> correct, but not useful, after each load I need change my neo to www-data
[08:42] <ikonia> that's because your approach is wrong
[08:42] <Neo4> ikonia: no, with neo like apache user I load files and not ot change permission
[08:43] <Neo4> this approach works, I read about in one book
[08:43] <Neo4> we can change user for apache
[08:43] <ikonia> then why are you having problems if this process works ?
[08:44] <Neo4> ikonia: because I installed roundcube by default using ' apt-get install roundcube', and it uses www-data, and might some folders don't have needed permission for my user neo
[08:44] <Neo4> did you see this log file
[08:44] <Neo4> drwxr-x---  2 www-data adm       4096 Apr  6  2016 roundcube/
[08:44] <ikonia> so your process is broken with all standard packages / permissions model
[08:44] <Neo4> rwx r x, my neo can't do there nothing
[08:45] <ikonia> roundcube is a webmail client why would you manually need to upload anything into that directory
[08:45] <Neo4> ikonia: if I use www-data, how I will load my files on server using filezila?
[08:45] <ikonia> why would you need to load any files into the roundcube web root
[08:46] <Neo4> ikonia: roundcube is usual php application and we can easy set up it loading on server
[08:46] <ikonia> right, you don't need to upload anything if you do apt-get install roundcube
[08:46] <ikonia> so you don't need "file zilla to upload" anything
[08:47] <Neo4> ikonia: but permission, did you see? Roundcube has been installed in a few folders, and my neo can't rich that, from this might errors
[08:47] <Neo4> ikonia: which model do you use/
[08:48] <Neo4> ?
[08:48] <Neo4> www-data is your apache2 user?
[08:48] <Neo4> Then say how you load php files to your server using your own user. it' impossible without changing permission on file always
[08:49] <ikonia> Neo4: you don't need to access roundcube folders
[08:49] <ikonia> there is nothing to upload
[08:51] <Neo4> i load some file file.php to server and it wil have 664 rights and user neo grop neo. www-data can't reach it
[08:52] <Neo4> ikonia: no, I need, in those folder could be needed files for roundcube could work
[08:53] <Neo4> when apache2 run roundcube he see in config folders where it placed, and go to this folders to include files and it can't, that's why I got error 500
[08:53] <Neo4> ok, I temporarely change user on www-data and will see what happen
[08:54] <ikonia> Neo4: there is nothing you need
[08:54] <ikonia> Neo4: you apt-get install roundcube - it puts all you need in place
[08:54] <ikonia> there is no need for you to upload anything
[08:54] <ikonia> you are making a problem where one doens't exist
[08:54] <ikonia> you changing the permissions is breaking things
[08:54] <ikonia> there is no need to change the permissions
[08:54] <Neo4> ikonia: see http://kselax.ru/roundcube/
[08:55] <ikonia> I dont need to see that
[08:55] <Neo4> www-data works, but I want neo
[08:55] <ikonia> why
[08:55] <ikonia> why do you want "neo"
[08:56] <Neo4> ikonia: reason in uploading files to server, see when I neo and connected to server using FileZila, load there files, which atribute will have this file?
[08:56] <Neo4> user: neo
[08:56] <Neo4> grop: neo
[08:56] <Neo4> permission 644
[08:56] <Neo4> standard permission for directory 755 for files 644
[08:56] <ikonia> you don't have to upload files to the roundcube directory
[08:56] <ikonia> so you don't need to change the permissions at all
[08:56] <Neo4> and could www-data read my file? No
[08:57] <ikonia> you have zero reasons to upload files for roundcube
[08:57] <ikonia> so you have zero reasons to want the user neo to own them
[08:57] <Neo4> ikonia: for roundcube I don't, but I need for virtual hosts
[08:57] <ikonia> so you have zero reason to change the permissions
[08:57] <ikonia> Neo4: right, so don't impact round cube with your other virtual host problem
[08:58] <Neo4> before I have a few tests servers where I upload wordpress and other applicatiosn. if user www-data I will alway change permission
[08:58] <ikonia> then you are silly
[08:58] <Neo4> add my neo to group www-data
[08:58] <ikonia> as that is the correct permissions model
[08:58] <Neo4> ikonia: model correct, but difficult work with server in real time
[08:58] <ikonia> no it's not
[08:58] <ikonia> everyone else in the world manages just fine
[09:00] <Neo4> ikonia: no, right, I want to modify file, I open it using FileZila, file download to my computer and went to editor, after modifying I load it back and it now not to belong www-data
[09:00] <Neo4> ikonia: and I must again connect to server using console and change file atributes,
[09:01] <ikonia> as I said your model is wrong
[09:01] <Neo4> ikonia: why wrong?
[09:01] <ikonia> because it doesn't work
[09:02] <Neo4> Why apache2 have this opertunity to change user? It might made specially for this case
[09:02] <ikonia> sorry, I don't understand your last question
[09:02] <ikonia> could you try to explain it again please
[09:02] <Neo4> ikonia: no, if I do apache2 user neo then all works perfactlly
[09:02] <ikonia> right, but nothing else works
[09:02] <ikonia> as you've just found with roundcube
[09:02] <ikonia> because you've broken the correct permissions model
[09:02] <Neo4> ikonia: I load files they are neo:neo and apache also neo user, and everything don't have errors
[09:03] <Neo4> ikonia: automatically installation doesn't works only
[09:03] <ikonia> it's pointless to discuss this
[09:03] <ikonia> correct, it won't work - because it uses the correct standard permisisons, which you've broken
[09:03] <Neo4> ikonia: before I installing roundcube and squirelmal copying them to server by ftp
[09:03] <ikonia> so your workflow breaks everything else
[09:03] <ikonia> so because you don't understand the permission model, you're breaking things
[09:04] <ikonia> which is fine, if you want to overrirde the standard permissions model, do it, but don't expect help with your custom workflow approach
[09:05] <Neo4> ikonia: well, see what I think, phpmyadmin works, nevertheless I installed it by using apt-get install, it means there something could have www-data user, I think about run some command that will scan all folders and change www-data to neo.
[09:05] <ikonia> you're incorrect
[09:05] <Neo4> is it possible? This would be entrance
[09:06] <ikonia> but you seem unable to understand why, so just carry on
[09:06] <Neo4> ikonia: ok what do you offer?
[09:06] <ikonia> change your workflow to something that everyone else uses
[09:06] <Neo4> ikonia: How can I useful modify files over ssh usinb FileZilla without forever change manually permission or user?
[09:06] <ikonia> look at your workflow for starters
[09:07] <ikonia> look at your users and group permisisons and where they are shared between interactive users and system users
[09:07] <ikonia> look at where / how you set up document roots
[09:08] <Neo4> ikonia: I add user neo to group www-data and www-data to grou neo, anyway files has 644
[09:08] <ikonia> I don't understand your last statement
[09:08] <Neo4> I forgot, for apache can modify file that is from group we need 664
[09:09] <Neo4> ikonia: see suppose I add www-data to group neo, addgroup www-data neo
[09:09] <Neo4> ikonia: now my www-data is able to modify files that belongs to neo, yes?
[09:10] <Neo4> www-data has group neo and can modify files belonging to neo:neo
[09:10] <Neo4> but this files should have 664, and they have 644
[09:10] <Neo4> 4 only read
[09:10] <Neo4> again it can't. I anyway must manually changed rights after upload files
[09:11] <Neo4> ikonia: do you know php?
[09:11] <Neo4> you can make experiment
[09:11] <Neo4> open FileZila and load on your server two php files from your user
[09:12] <ikonia> I don't need to do a test
[09:12] <Neo4> or open remotely file from your server, in your local editor, modify it and load back and check atributes
[09:12] <ikonia> I don't need to do a test
[09:12] <Neo4> ikonia: atributes will changed
[09:12] <ikonia> "attributes" ?
[09:13] <Neo4> ikonia: I noticed it when I was using windows. From linux it works difference
[09:13] <ikonia> what are you even talking about ?
[09:14] <Neo4> ikonia: see on a remote server resized file index.php with www-data:www-data and 664
[09:14] <ikonia> resized file ??
[09:14] <ikonia> if you change a file - of course its file size will change
[09:14] <Neo4> plased*
[09:14] <ikonia> as thats the point you've "changed" the files size
[09:15] <Neo4> ikonia: I forgot that word with re, will use placed
[09:16] <Neo4> ikonia: there placed index.php www-data:www-data 664
[09:16] <Neo4> ikonia: you open FileZila, navigate to file and right click on it select open in editor or edit
[09:17] <Neo4> ikonia: you do some editing and press CTR+S (save file), then go to fileZila and confirm loading back file
[09:17] <Neo4> and check file atributes, now they will neo:neo with 644
[09:17] <Neo4> ikonia: your apache can't reach it even if it has neo group, 4 means only read
[09:18] <Neo4> you need put 6 manually 664 for www-data could modify goup files
[09:18] <Neo4> it isn't useful do in real time editing and alway care about rights,
[09:18] <Neo4> that's why I changed user to neo from www-data
[09:19] <Neo4> ikonia: ok, I see you aren't in this theme :)
[09:21] <Neo4> ok, Ill try find command that find all files with owner www-data and replace them to neo
[09:29] <ikonia> ?
[09:30] <ikonia> Neo4:  you're making a problem with your workflow
[10:03] <lordievader> Good afternoon
[10:21] <Neo4> ikonia: вот настроил на обычном хосте с apache neo работает http://kselax.ru/roundcubemail-1.3.6/
[10:21] <Neo4> там небыло нужных билиотек
[10:22] <Neo4> oh, forgot language
[10:22] <Neo4> works on ordinary server, with user neo
[10:22] <Neo4> there weren't needed php libs
[10:23] <Neo4> now, I'll try to create instruction for apt-get
[10:23] <Neo4> before use apt-get we must install all needed php libs
[10:27] <Neo4> this also works with www-data https://91.227.18.36/roundcube/
[10:29] <Neo4> well, everything is clearly. Need list of php libs, and list of paths where allow server access, and then write shell function that will do this automatically
[10:31] <Neo4> roundcub is not good install using apt-get, because you can't see whether all right with server. When we install manually we see page where all requirements are shown
[10:31] <blackflow> Neo4: roundcube in Ubuntu has been supported very badly. It's in universe and so far didn't receive any security fixes in previous ubuntus. A thing to keep in mind.
[10:32] <Neo4> blackflow: ok, I don't know how to create shell script for it. use apt-get install roundcube or try set up manually in separated folder
[10:33] <Neo4> in separated folder works perfactly, but automatically would be nice with apt-get like phpmyadmin
[10:33] <blackflow> Neo4: using the tarball from upstream directly would be a wise choice, as the package in ubuntu is not taken care of.
[10:33] <Neo4> it put it to /usr/lib
[10:34] <Neo4> no to /usr/share
[10:34] <blackflow> thankfully, it's very easy to maintain it that way, just unpack into a target folder and stay at the major branch. updates are as simple as that. unpack and run the upgrade script. There's a README with all the info.
[10:35] <Neo4> blackflow: download using curl in folder
[10:36] <Neo4> blackflow: yes, and we will see page with errors. that roundcube installer
[10:39] <Neo4> blackflow: I'm going to write two scripts for roundcube and squirrelmail
[10:40] <blackflow> why squierrelmail? that's... long abandoned.
[10:43] <Neo4> blackflow: easy to use
[10:43] <Neo4> simple interface, easy to install, good mail client
[10:44] <blackflow> so is roundcube. I wonder if squirrel will even run on PHP 7.x
[10:44] <Neo4> anyway we can use thunderbird or others desktop clients
[10:44] <Neo4> blackflow: I tried on php5.6, works nice
[10:45] <Neo4> roundcube has modern interface, squirrelmail is old, but anyway could be used
[10:45] <blackflow> Neo4: you should really pay more attention about security of software you're trying to use. Running a web server exposes your machine to thousands and thousands of bots that will touch and try every facet exposed to the public internet and try to break it somehow. Especially if you run mail, and PHP.
[10:46] <Neo4> blackflow: I don't know, I will run one mails server for myself, and for VPS migh be only postfix. and might be to install some mails servers for send ads. and nothing else
[10:47] <Neo4> I dont think somebody will interested my personal mail server :)
[10:47] <blackflow> Neo4: you don't understand do you? BOTS. Automated programs that will find your server in no time and try to probe it.
[10:48] <Neo4> blackflow: ok
[10:48] <Neo4> need to use long passwords 15 - 20 symbols
[10:48] <Neo4> main protection
[10:49] <Neo4> bots could make Ddos on front page webmail and try brute force password
[10:50] <blackflow> and exploit bugs in your software, avoiding your long passwords to break in.
[10:50] <Neo4> blackflow: see additional protection for phpmyadmin https://91.227.18.36/phpmyadmin
[10:51] <ikonia> Neo4: as you where told in #postfix - you should not be running a mail server
[10:51] <ikonia> you have zero understanding of how any of this works, and you should really not be doing it
[10:51] <blackflow> you should not be running ANY public server, until you're familiar with all the problems that occur when exposing a computer to the public internet.
[10:52] <ikonia> you don't understand the basic needs and principals of these services
[10:52] <Neo4> ikonia: less listen what somebody says, they just joked
[10:52] <ikonia> they didn't joke
[10:52] <ikonia> they where serious
[10:52] <blackflow> indeed.
[10:53] <Neo4> ikonia: it was somebody personal opinion that not pretending to be truth, Don't pay attestation :)
[10:54] <ikonia> no it wasn't
[10:54] <ikonia> it was multiple people echo'ing what I've just said
[10:54] <ikonia> and I agree with them
[10:54] <Neo4> ikonia: one person says you don't need to run and you can always find many others who say you are the best. It isn't worth worrying about
[10:55] <ikonia> multiple people said you should not do, no-one said you should
[10:56] <Neo4> ikonia: this is even better, multiple people are herd, World is consists from people so called gray mass and some excursive people, if say all something it could be also good sight, don't pay attantion :)
[10:57] <Neo4> ikonia: multiple people are stupid herd. not worth paying attantion too. There in #postfix was everythign all right
[10:58] <ikonia> no they where not stupid
[10:58] <blackflow> Neo4: why are you here then? If you don't take advice seriously, why are you here? You obviously don't need any support. Go run your mail server and good luck with that.
[10:58] <blackflow> don't listen to "gray mass" of advice. You know better.
[10:58] <ikonia> already found 2 weakeness
[10:58] <ikonia> 220 mail.kselax.ru ESMTP Postfix (Ubuntu)
[10:58] <Neo4> blackflow: no I need, I don't like bad support like you don't need run mail sever, etc... :)
[10:59] <ikonia> that is good support and really good advice
[10:59] <ikonia> more so when basically you're just going to run yet another spam service
[10:59] <Neo4> blackflow: yes, don't need listen "grey mass" because you will like they are
[11:00] <Neo4> blackflow: do you want to be like majoryty people (80%), obviously not, better to belong to 20% people
[11:00] <blackflow> Neo4: good, then /part and save yourself from the bad people.
[11:00] <Neo4> ikonia: yes, nothing help and say you are don't need run it
[11:00] <Neo4> ikonia: that was direct abuse
[11:00] <ikonia> it's not abuse
[11:01] <Neo4> ikonia: that guy said I am stupid and can't run mail server
[11:01] <ikonia> no he didn't
[11:01] <ikonia> he said you lacked experience and basic understanding to run a mail server
[11:02] <Neo4> ikonia: I can estimate this like abuse, couse he said I am stupid for run mail server. It was abuse, he attacked me, Why I should seriously perceive that crape, if person deliberately wants to hurt me? That guy always criticize me :)
[11:02] <ikonia> you're behaving foolishly now
[11:02] <ikonia> taking someone's constructive advice as "abuse"
[11:03] <ikonia> and to be honest, even if it was abuse, you shouldn't ignore the context
[11:03] <ikonia> someone being rude still may have valuable experience and information
[11:03] <Neo4> ikonia: oh, I don't like such advices that hurt my self estim
[11:03] <ikonia> then you are foolish
[11:04] <ikonia> if you ignore advice because it hurts your pride/self estim
[11:04] <Neo4> ikonia: oh, yes, will you listen somebody who will say 'you are stupid'? Why shall I follow that stupid advice? That was insult
[11:05] <Neo4> I couldn't have accept that, sorry :)
[11:05] <ikonia> lovely so running your mail server on the same physical host and IP as your mail server
[11:05] <ikonia> and you're running PHP version with vunerabilities
[11:05] <Neo4> and that guy is moderator, I can't say something him, he can kick me
[11:05] <ikonia> this shouldn't be too hard to compromise
[11:06] <Neo4> ikonia: no, I better know how to behave, simply don't listen everything what somebody says you
[11:06] <ikonia> I don't know what you're last statement means, sorry
[11:07] <Neo4> ikonia: do you know who he is? Suddenly that was said by some student, or I dont know? You don't know hothing about person and you accept his advice like truth, it is stupid
[11:08] <Neo4> ikonia: simply not to listen everthing that said by somebody
[11:08] <ikonia> I don't know him or any of the others who spoke to you personally, I certainly know their experience and knowledge and can see by their regular advice/understanding how well they know postfix
[11:08] <Neo4> ikonia: if I don't like you, can I start criticize you for humiliate you, will you listen me?
[11:08] <Neo4> :)
[11:09] <Neo4> ikonia: when somebody criticize you it means he is don't like you
[11:09] <Neo4> ikonia: I can't be love by everybody in #postfix, it's obviously, and normally
[11:09] <ikonia> Neo4: no it doesn't
[11:09] <ikonia> Neo4: if someone criticizes you it has nothing to do with if they like you or not
[11:10] <ikonia> no-one humilated you
[11:10] <Neo4> ikonia: don't pay attantion as I said, That was nothing bad. You will see such guys many in your life
[11:10] <Neo4> ikonia: I said it doesn't matter
[11:10] <ikonia> it wasn't nothing
[11:10] <ikonia> it was seasoned experienced people giving you advice, and you bluntly refusing it, but still asking for help
[11:11] <ikonia> I suggest we end this discussion, its way out of scope for this channel
[11:11] <Neo4> ikonia: why? it directly show his attitute to you, Will you criticize girl what you like of she you? Might not
[11:12] <Neo4> ikonia: and all persons aren't ideal, we always can find something wrong and start humiliate him. I don't want explain how ti works.
[11:12] <Neo4> That guy just show that he is not like me
[11:12] <Neo4> :)
[11:12] <Neo4> I understood this
[11:13] <Neo4> nobody said bad about me, only he
[11:13] <ikonia> drop it please
[11:13] <Neo4> ok
[11:13] <Neo4> stop
[11:13] <ikonia> thank you
[11:38] <samba35> i am using kvm on 18.04 and i have ,windows 7 and centos as a guest installed
[11:40] <samba35> i have assign 3 gb ram to centos ,when i start centos ,free /top/system monitor say 3 gb ram is use but centos is using only 900 mb of ram so i am just wondering why host/ubuntu consume 3 gb ram
[11:40] <ikonia> samba35: please don't cross-post
[11:40] <ikonia> you're asking this in other channels
[11:41] <ikonia> samba35: the bottom line is it's the host is "using" ram because you've allocated it to a VM
[11:41] <ikonia> think of it as reserved
[12:07] <samba35> ikonia, my host is ubuntu
[12:08] <samba35> and guest is centos
[12:09] <samba35> ikonia, do you have any idea
[12:10] <samba35> how this issuse can be fixed
[12:12] <blackflow> samba35: ikonia just told you. it's not an issue to be fixed. the host is reserving the ram for the VM
[12:19] <samba35> ok
[16:33] <Neo4> who know how apt-get install roundcube creates mysql database?
[16:33] <Neo4> without asking root password for mysql
[16:34] <Neo4> I'm going to write shell script that will install roundcube in the same way
[16:34] <Neo4> but now formy script need mysql root password
[16:34] <Neo4> how to avoid asking mysql root pasword?
[16:37] <RoyK> do you have a root password for mysql?
[16:54] <Neo4> RoyK: yes
[16:55] <Neo4> RoyK: and apt-get install roundcube has access to mysql withotu root password
[16:56] <Neo4> RoyK: see my script with asking https://gist.github.com/kselax/418a052b49fb2d16a57014b3213c8cc0
[16:57] <Neo4> it works with asking, I am interested how "apt-get install roundcube" works without asking
[16:58] <Neo4> apt-get asks me about input password for db name and password for roundcube user
[16:59] <RoyK> Neo4: if you run "mysql" as root, does it prompt you for a password?
[17:00] <Neo4> RoyK: if I do mysql -uroot -p it prompt me
[17:00] <Neo4> if I do mysql -uroot without -p it show error
[17:01] <RoyK> Neo4: try sudo -i ; mysql
[17:01] <Neo4> ok, now
[17:02] <Neo4> RoyK: https://paste.ubuntu.com/p/9TtgvBWdky/
[17:02] <Neo4> RoyK: I need to reach mysql and input commands for create db and user, but some installers for phpmyadmin for roundcube do it without root. Can I do the same
[17:03] <Neo4> in google couldn't have found answer
[17:03] <RoyK> only way to bypass mysql security is to start mysqld with --skip-grant-tables
[17:04] <RoyK> last I checked
[17:06] <Neo4> RoyK: how you start? systemctl restart mysql.service --skip-grant-tables
[17:06] <RoyK> no, just stop the service and start mysqld manually
[17:06] <Neo4>  how manually?
[17:06] <RoyK> mysqld --skip-grant-tables
[17:06] <Neo4> I stopped using systemclt stop mysql.service
[17:09] <Neo4> RoyK: doesn't work
[17:09] <Neo4> ok
[17:09] <Neo4> with use with root password, nothing bad
[17:09] <Neo4> for a while
[17:09] <Neo4> https://paste.ubuntu.com/p/Wg2tq5jqRj/
[17:11] <RoyK> not "mysqld start --skip-grant-tables" - "mysqld --skip-grant-tables"
[17:11] <RoyK> and not systemctl something - just start mysqld directly with that flag
[17:11] <Neo4> ok, will try
[17:11] <RoyK> adding --skip-networking may be a good idea
[17:13] <Neo4> RoyK: doesnt work, computer hang
[17:15] <Neo4> RoyK: https://paste.ubuntu.com/p/bqmn65Qm4D/
[17:34] <[Kid]> anyone have multipath setup and working in 18.04?
[17:35] <[Kid]> my server will see the paths, but it is not giving it a friendly name so that I can mount it
[17:35] <[Kid]> unless the friendly name is dm-0
[17:35] <[Kid]> but i don't think so
[18:53] <ironhalik> AA
[18:54] <ironhalik> sorry, my weechat went insane, carry on
[20:15] <mojtaba> Hello, I have installed ufw on a VPS (ubuntu 16.04), and I have executed ufw allow 63263, but when I execute: sudo nmap -sU -p 63263 localhost, it says: 63263/udp closed unknown
[20:15] <mojtaba> Do you know what is going on? and what should I do to open a port?
[20:15] <mojtaba> I was trying to do the same thing for 1194/udp. But it was the same.
[20:16] <irwiss> probably missing the /udp part?
[20:16] <mojtaba> irwiss: I have tried 1194/udp and also without udp, but still the same
[20:19] <irwiss> you can try poking in ufw status to see what ufw thinks it's allowing and check if it matches your expectations
[20:19] <mojtaba> irwiss: I have checked ufw status, and it is saying ALLOW.
[20:20] <mojtaba> on the vps I typed ifconfig, and the inet IP address and broadcast IP address are the same. Is that Ok?
[20:29] <Neo4> mojtaba: try listen port telnet localhost 1194
[20:29] <Neo4> ufw status
[20:30] <Neo4> mojtaba: you can scan wholly your server using:
[20:30] <Neo4> nmap ip_of_yourserver
[20:30] <mojtaba> telnet: Unable to connect to remote host: Connection refused
[20:30] <mojtaba> Neo4:
[20:31] <Neo4> it means port nobody use, it won't work
[20:31] <mojtaba> telnet localhost 1194, telnet: Unable to connect to remote host: Connection refused
[20:31] <mojtaba> ufw status
[20:31] <mojtaba> 1194/udp                   ALLOW       Anywhere
[20:31] <Neo4> mojtaba: what is show nmap?
[20:32] <Neo4> port is opened
[20:32] <mojtaba> nmap -sU -p 1194 localhost
[20:32] <mojtaba> 1194/udp closed openvpn
[20:32] <Neo4> all right, now you need customize applicatiosn that will use this port
[20:32] <Neo4> mojtaba: I don't know exactly, but it seems you need customize applicatiosn that will use port
[20:32] <mojtaba> in one window I typed nc -l 1194
[20:33] <mojtaba> it shows it still as closed.
[20:33] <Neo4> mojtaba: it's bad, it should be opened and prepared for getting data
[20:34] <mojtaba> Neo4: So, why it is still closed? What should I do? It is a VPS.
[20:35] <Neo4> mojtaba: when I customize IMAP on 143 port or SMTP on 587 and port is closed, telenet refused to connect. you must see config files app that must use port
[20:36] <Neo4> in my case for 143 I look at dovecot config and 587 for postfix
[20:36] <Neo4> mojtaba: it's not UFW problem
[20:37] <mojtaba> Neo4: but nc -l 1194 should make it open, right?
[20:37] <Neo4> what is it? I don't know
[20:37] <Neo4> maybe
[20:37] <mojtaba> netcat
[20:38] <Neo4> mojtaba: for what you do this?
[20:38] <Neo4> what will use this port?
[20:38] <Neo4> node.js?
[20:38] <mojtaba> Neo4: Openvpn
[20:39] <Neo4> mojtaba: with Openvpn, I can't help, sorry, haven't even heard about.
[20:40] <mojtaba> Neo4: nc opens the port and waits for connections, but after that nmap still shows the port as closed.
[20:41] <Neo4> mojtaba: I'm not sure, it seem port will always closed when turn off in your case Openvpn
[20:47] <Neo4> mojtaba: see I opened 400 port on ufw in my vps kselax.ru and don't see that port
[20:48] <Neo4> and see 143 and 587, if I turn off postfix and dovecot, will I see ports?
[20:48] <Neo4> now check
[20:48] <mojtaba> Neo4: install netcat, with netcat you can mimic an app using the port.
[20:53] <Neo4> mojtaba: see two port imap and smtp are closed https://paste.ubuntu.com/p/dWHJsrcmVR/
[20:53] <Neo4> I'll off apache
[20:55] <Neo4> mojtaba: https://paste.ubuntu.com/p/wQ4NH9Bprb/
[20:55] <Neo4> yes, experiment show that closed port mens application off or badly customized
[20:55] <Neo4> and I don't understand why I didn't see 400 port, in ufw it opened
[20:57] <Neo4> mojtaba: telnet kselax.ru 80 . refused connection on closed port
[20:58] <Neo4> now on all apps
[20:58] <mojtaba> Neo4: How you can open a random port for a short time to test.
[21:00] <Neo4> mojtaba: I don't know, I opened 400 and nmap doesn't show 400
[21:00] <Neo4> mojtaba: recently I opened 3000 port for test node.js chat. I did ufw allow 3000 and it was shown in nmap
[21:01] <Neo4> mojtaba: see what I think, you need run something on port
[21:02] <Neo4> if port allowed in firewall we might can't see it without apps, I'll now try run some node.js on 400 port and will test using nmap
[21:08] <Neo4> mojtaba: chat has been installed http://kselax.ru/chat/
[21:08] <Neo4> now we need to run it on some port
[21:08] <Neo4> 400 for example
[21:13] <Neo4> mojtaba: see http://kselax.ru:3000/
[21:14] <Neo4> mojtaba: can you do nmap kselax.ru? Do you see there 3000 and 400 ports?
[21:14] <Neo4> I don't
[21:14] <Neo4> something strange work
[21:16] <Neo4> mojtaba: why I don't see 400 port?
[21:16] <Neo4> https://paste.ubuntu.com/p/vYHrFmqQ6k/
[21:28] <Neo4> mojtaba: do you there?
[21:29] <Neo4> see http://kselax.ru:400/
[21:29] <Neo4> ports that under 1024 should be run only by root, each regular user can't run it
[21:33] <Neo4> guys why nmap doesn't show opened ports?
[21:33] <Neo4> it is said that nmap is the best tool for seek valnurabilities on servers
[21:33] <Neo4> See this, telnet shows, nmap doesn't, why?
[21:33] <Neo4> https://paste.ubuntu.com/p/3ypBPctb3N/
[21:33] <Neo4> crape
[21:34] <Neo4> Which apps to use for to scan server ports?
[21:35] <Neo4> nmap isn't reliable, telnet also
[21:48] <Neo4> mojtaba: this is openVPN? https://openvpn.net/
[21:48] <Neo4> I wanted to install it and test. I need it also
[23:31] <arooni> having trouble getting my command that runs fine in my fish or bash shell to run on cron
[23:31] <arooni> i followed http://g14n.info/2016/05/crontab-best-practices/ ;; but command still doesnt run
[23:50] <Neo4> arooni: what command you do?
[23:53] <Neo4> arooni: try this put to crontab -e
[23:53] <Neo4> @reboot echo "1 - `date`" >> $HOME/crone.test
[23:53] <Neo4> or @reboot ./your_shell_script.sh
[23:53] <Neo4> and then reload computer
[23:54] <Neo4> @reboot echo "1 - `date`" >> $HOME/crone.test create file
[23:54] <Neo4> in /home/$USER/crone.test and put there current data after each reboot
[23:55] <Neo4> arooni: if you can run your script in termina, put the same line to crontab -e and it must work