/srv/irclogs.ubuntu.com/2018/05/19/#ubuntu-server.txt

aroonibut is there anyway to actually know what shell is being used?00:33
sarnoldarooni: sure, check crontab(5) and see that it says /bin/sh is used :)00:35
arooniok my bad; i shoulda rtfmd00:36
Neo4who know how to reach roundcube?07:45
Neo4I did sudo apt-get install roundcube07:45
Neo4and go to this url kselax.ru/roundcube and can't reach07:46
ikoniadefine "can't reach"07:48
Neo4ikonia: can't access roundcube07:58
Neo4http://kselax.ru/roundcube/07:58
Neo4now good it shows error 500, before didn't work at all07:58
Neo4this instruction https://help.ubuntu.com/community/Roundcube07:59
Neo4I forgot where to watch errors for web server08:01
ikonia/var/log/08:04
Neo4ikonia: https://91.227.18.36/info.php08:08
Neo4php doesn't show errors by default08:08
Neo4and apache log file I removed everything from there and it doesn't show errors also08:08
Neo4apache log here /var/log/apache2/error.log08:09
Neo4I need put php log in the same file for easier look logs08:09
Neo4better when all logs in the same file08:09
ikoniaphp logs just fine08:10
Neo4ikonia: default it off08:13
ikoniait will log in the apache error log the core problem of a 50008:19
Neo4ikonia: php hasn't errors, and apache also08:26
ikoniapretty such if you're getting an error 500 one of them will be erroring08:28
Neo4now works,08:30
Neo4might it was cache08:30
Neo4I watch log in vim08:31
ikoniavim won't update real time08:31
Neo4ikonia: yes, there might exists cache08:32
Neo4who can update?08:32
ikonianot cache08:32
Neo4error https://paste.ubuntu.com/p/zsd33dcyHM/08:32
Neo4ikonia: buffer08:32
ikoniait's just not a real time tool08:32
ikoniait's not a buffer08:32
ikoniait's not a real time tool08:32
Neo4in vim all files open and put to buffer08:33
ikoniait opens what is there at that moment in time08:33
ikoniait's not a buffer08:33
Neo4I changed user for apache from www-data to neo08:37
Neo4ok, 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 doing08:38
Neo4automatically it impossible something customize08:38
Neo4using sudo apt-get08:39
Neo4drwxr-x---  2 www-data adm       4096 Apr  6  2016 roundcube/08:39
Neo4my user neo can't write there08:40
Neo4for apache2 more useful to have main user user which is load files to server08:40
Neo4I don't want www-data08:41
ikoniayou need to use www-data08:41
ikoniait is the correct way to use the permissions model08:41
Neo4ikonia: why? How I will load files on server using ftp? I will always care about permission08:41
ikoniaok, then you do that08:41
ikoniano-one else will08:41
Neo4correct, but not useful, after each load I need change my neo to www-data08:42
ikoniathat's because your approach is wrong08:42
Neo4ikonia: no, with neo like apache user I load files and not ot change permission08:42
Neo4this approach works, I read about in one book08:43
Neo4we can change user for apache08:43
ikoniathen why are you having problems if this process works ?08:43
Neo4ikonia: 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 neo08:44
Neo4did you see this log file08:44
Neo4drwxr-x---  2 www-data adm       4096 Apr  6  2016 roundcube/08:44
ikoniaso your process is broken with all standard packages / permissions model08:44
Neo4rwx r x, my neo can't do there nothing08:44
ikoniaroundcube is a webmail client why would you manually need to upload anything into that directory08:45
Neo4ikonia: if I use www-data, how I will load my files on server using filezila?08:45
ikoniawhy would you need to load any files into the roundcube web root08:45
Neo4ikonia: roundcube is usual php application and we can easy set up it loading on server08:46
ikoniaright, you don't need to upload anything if you do apt-get install roundcube08:46
ikoniaso you don't need "file zilla to upload" anything08:46
Neo4ikonia: but permission, did you see? Roundcube has been installed in a few folders, and my neo can't rich that, from this might errors08:47
Neo4ikonia: which model do you use/08:47
Neo4?08:48
Neo4www-data is your apache2 user?08:48
Neo4Then say how you load php files to your server using your own user. it' impossible without changing permission on file always08:48
ikoniaNeo4: you don't need to access roundcube folders08:49
ikoniathere is nothing to upload08:49
Neo4i load some file file.php to server and it wil have 664 rights and user neo grop neo. www-data can't reach it08:51
Neo4ikonia: no, I need, in those folder could be needed files for roundcube could work08:52
Neo4when 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 50008:53
Neo4ok, I temporarely change user on www-data and will see what happen08:53
ikoniaNeo4: there is nothing you need08:54
ikoniaNeo4: you apt-get install roundcube - it puts all you need in place08:54
ikoniathere is no need for you to upload anything08:54
ikoniayou are making a problem where one doens't exist08:54
ikoniayou changing the permissions is breaking things08:54
ikoniathere is no need to change the permissions08:54
Neo4ikonia: see http://kselax.ru/roundcube/08:54
ikoniaI dont need to see that08:55
Neo4www-data works, but I want neo08:55
ikoniawhy08:55
ikoniawhy do you want "neo"08:55
Neo4ikonia: 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
Neo4user: neo08:56
Neo4grop: neo08:56
Neo4permission 64408:56
Neo4standard permission for directory 755 for files 64408:56
ikoniayou don't have to upload files to the roundcube directory08:56
ikoniaso you don't need to change the permissions at all08:56
Neo4and could www-data read my file? No08:56
ikoniayou have zero reasons to upload files for roundcube08:57
ikoniaso you have zero reasons to want the user neo to own them08:57
Neo4ikonia: for roundcube I don't, but I need for virtual hosts08:57
ikoniaso you have zero reason to change the permissions08:57
ikoniaNeo4: right, so don't impact round cube with your other virtual host problem08:57
Neo4before I have a few tests servers where I upload wordpress and other applicatiosn. if user www-data I will alway change permission08:58
ikoniathen you are silly08:58
Neo4add my neo to group www-data08:58
ikoniaas that is the correct permissions model08:58
Neo4ikonia: model correct, but difficult work with server in real time08:58
ikoniano it's not08:58
ikoniaeveryone else in the world manages just fine08:58
Neo4ikonia: 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-data09:00
Neo4ikonia: and I must again connect to server using console and change file atributes,09:00
ikoniaas I said your model is wrong09:01
Neo4ikonia: why wrong?09:01
ikoniabecause it doesn't work09:01
Neo4Why apache2 have this opertunity to change user? It might made specially for this case09:02
ikoniasorry, I don't understand your last question09:02
ikoniacould you try to explain it again please09:02
Neo4ikonia: no, if I do apache2 user neo then all works perfactlly09:02
ikoniaright, but nothing else works09:02
ikoniaas you've just found with roundcube09:02
ikoniabecause you've broken the correct permissions model09:02
Neo4ikonia: I load files they are neo:neo and apache also neo user, and everything don't have errors09:02
Neo4ikonia: automatically installation doesn't works only09:03
ikoniait's pointless to discuss this09:03
ikoniacorrect, it won't work - because it uses the correct standard permisisons, which you've broken09:03
Neo4ikonia: before I installing roundcube and squirelmal copying them to server by ftp09:03
ikoniaso your workflow breaks everything else09:03
ikoniaso because you don't understand the permission model, you're breaking things09:03
ikoniawhich is fine, if you want to overrirde the standard permissions model, do it, but don't expect help with your custom workflow approach09:04
Neo4ikonia: 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
ikoniayou're incorrect09:05
Neo4is it possible? This would be entrance09:05
ikoniabut you seem unable to understand why, so just carry on09:06
Neo4ikonia: ok what do you offer?09:06
ikoniachange your workflow to something that everyone else uses09:06
Neo4ikonia: How can I useful modify files over ssh usinb FileZilla without forever change manually permission or user?09:06
ikonialook at your workflow for starters09:06
ikonialook at your users and group permisisons and where they are shared between interactive users and system users09:07
ikonialook at where / how you set up document roots09:07
Neo4ikonia: I add user neo to group www-data and www-data to grou neo, anyway files has 64409:08
ikoniaI don't understand your last statement09:08
Neo4I forgot, for apache can modify file that is from group we need 66409:08
Neo4ikonia: see suppose I add www-data to group neo, addgroup www-data neo09:09
Neo4ikonia: now my www-data is able to modify files that belongs to neo, yes?09:09
Neo4www-data has group neo and can modify files belonging to neo:neo09:10
Neo4but this files should have 664, and they have 64409:10
Neo44 only read09:10
Neo4again it can't. I anyway must manually changed rights after upload files09:10
Neo4ikonia: do you know php?09:11
Neo4you can make experiment09:11
Neo4open FileZila and load on your server two php files from your user09:11
ikoniaI don't need to do a test09:12
Neo4or open remotely file from your server, in your local editor, modify it and load back and check atributes09:12
ikoniaI don't need to do a test09:12
Neo4ikonia: atributes will changed09:12
ikonia"attributes" ?09:12
Neo4ikonia: I noticed it when I was using windows. From linux it works difference09:13
ikoniawhat are you even talking about ?09:13
Neo4ikonia: see on a remote server resized file index.php with www-data:www-data and 66409:14
ikoniaresized file ??09:14
ikoniaif you change a file - of course its file size will change09:14
Neo4plased*09:14
ikoniaas thats the point you've "changed" the files size09:14
Neo4ikonia: I forgot that word with re, will use placed09:15
Neo4ikonia: there placed index.php www-data:www-data 66409:16
Neo4ikonia: you open FileZila, navigate to file and right click on it select open in editor or edit09:16
Neo4ikonia: you do some editing and press CTR+S (save file), then go to fileZila and confirm loading back file09:17
Neo4and check file atributes, now they will neo:neo with 64409:17
Neo4ikonia: your apache can't reach it even if it has neo group, 4 means only read09:17
Neo4you need put 6 manually 664 for www-data could modify goup files09:18
Neo4it isn't useful do in real time editing and alway care about rights,09:18
Neo4that's why I changed user to neo from www-data09:18
Neo4ikonia: ok, I see you aren't in this theme :)09:19
Neo4ok, Ill try find command that find all files with owner www-data and replace them to neo09:21
ikonia?09:29
ikoniaNeo4:  you're making a problem with your workflow09:30
lordievaderGood afternoon10:03
Neo4ikonia: вот настроил на обычном хосте с apache neo работает http://kselax.ru/roundcubemail-1.3.6/10:21
Neo4там небыло нужных билиотек10:21
Neo4oh, forgot language10:22
Neo4works on ordinary server, with user neo10:22
Neo4there weren't needed php libs10:22
Neo4now, I'll try to create instruction for apt-get10:23
Neo4before use apt-get we must install all needed php libs10:23
Neo4this also works with www-data https://91.227.18.36/roundcube/10:27
Neo4well, 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 automatically10:29
Neo4roundcub 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 shown10:31
blackflowNeo4: 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:31
Neo4blackflow: ok, I don't know how to create shell script for it. use apt-get install roundcube or try set up manually in separated folder10:32
Neo4in separated folder works perfactly, but automatically would be nice with apt-get like phpmyadmin10:33
blackflowNeo4: using the tarball from upstream directly would be a wise choice, as the package in ubuntu is not taken care of.10:33
Neo4it put it to /usr/lib10:33
Neo4no to /usr/share10:34
blackflowthankfully, 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:34
Neo4blackflow: download using curl in folder10:35
Neo4blackflow: yes, and we will see page with errors. that roundcube installer10:36
Neo4blackflow: I'm going to write two scripts for roundcube and squirrelmail10:39
blackflowwhy squierrelmail? that's... long abandoned.10:40
Neo4blackflow: easy to use10:43
Neo4simple interface, easy to install, good mail client10:43
blackflowso is roundcube. I wonder if squirrel will even run on PHP 7.x10:44
Neo4anyway we can use thunderbird or others desktop clients10:44
Neo4blackflow: I tried on php5.6, works nice10:44
Neo4roundcube has modern interface, squirrelmail is old, but anyway could be used10:45
blackflowNeo4: 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:45
Neo4blackflow: 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 else10:46
Neo4I dont think somebody will interested my personal mail server :)10:47
blackflowNeo4: you don't understand do you? BOTS. Automated programs that will find your server in no time and try to probe it.10:47
Neo4blackflow: ok10:48
Neo4need to use long passwords 15 - 20 symbols10:48
Neo4main protection10:48
Neo4bots could make Ddos on front page webmail and try brute force password10:49
blackflowand exploit bugs in your software, avoiding your long passwords to break in.10:50
Neo4blackflow: see additional protection for phpmyadmin https://91.227.18.36/phpmyadmin10:50
ikoniaNeo4: as you where told in #postfix - you should not be running a mail server10:51
ikoniayou have zero understanding of how any of this works, and you should really not be doing it10:51
blackflowyou 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:51
ikoniayou don't understand the basic needs and principals of these services10:52
Neo4ikonia: less listen what somebody says, they just joked10:52
ikoniathey didn't joke10:52
ikoniathey where serious10:52
blackflowindeed.10:52
Neo4ikonia: it was somebody personal opinion that not pretending to be truth, Don't pay attestation :)10:53
ikoniano it wasn't10:54
ikoniait was multiple people echo'ing what I've just said10:54
ikoniaand I agree with them10:54
Neo4ikonia: 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 about10:54
ikoniamultiple people said you should not do, no-one said you should10:55
Neo4ikonia: 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:56
Neo4ikonia: multiple people are stupid herd. not worth paying attantion too. There in #postfix was everythign all right10:57
ikoniano they where not stupid10:58
blackflowNeo4: 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
blackflowdon't listen to "gray mass" of advice. You know better.10:58
ikoniaalready found 2 weakeness10:58
ikonia220 mail.kselax.ru ESMTP Postfix (Ubuntu)10:58
Neo4blackflow: no I need, I don't like bad support like you don't need run mail sever, etc... :)10:58
ikoniathat is good support and really good advice10:59
ikoniamore so when basically you're just going to run yet another spam service10:59
Neo4blackflow: yes, don't need listen "grey mass" because you will like they are10:59
Neo4blackflow: do you want to be like majoryty people (80%), obviously not, better to belong to 20% people11:00
blackflowNeo4: good, then /part and save yourself from the bad people.11:00
Neo4ikonia: yes, nothing help and say you are don't need run it11:00
Neo4ikonia: that was direct abuse11:00
ikoniait's not abuse11:00
Neo4ikonia: that guy said I am stupid and can't run mail server11:01
ikoniano he didn't11:01
ikoniahe said you lacked experience and basic understanding to run a mail server11:01
Neo4ikonia: 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
ikoniayou're behaving foolishly now11:02
ikoniataking someone's constructive advice as "abuse"11:02
ikoniaand to be honest, even if it was abuse, you shouldn't ignore the context11:03
ikoniasomeone being rude still may have valuable experience and information11:03
Neo4ikonia: oh, I don't like such advices that hurt my self estim11:03
ikoniathen you are foolish11:03
ikoniaif you ignore advice because it hurts your pride/self estim11:04
Neo4ikonia: oh, yes, will you listen somebody who will say 'you are stupid'? Why shall I follow that stupid advice? That was insult11:04
Neo4I couldn't have accept that, sorry :)11:05
ikonialovely so running your mail server on the same physical host and IP as your mail server11:05
ikoniaand you're running PHP version with vunerabilities11:05
Neo4and that guy is moderator, I can't say something him, he can kick me11:05
ikoniathis shouldn't be too hard to compromise11:05
Neo4ikonia: no, I better know how to behave, simply don't listen everything what somebody says you11:06
ikoniaI don't know what you're last statement means, sorry11:06
Neo4ikonia: 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 stupid11:07
Neo4ikonia: simply not to listen everthing that said by somebody11:08
ikoniaI 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 postfix11:08
Neo4ikonia: if I don't like you, can I start criticize you for humiliate you, will you listen me?11:08
Neo4:)11:08
Neo4ikonia: when somebody criticize you it means he is don't like you11:09
Neo4ikonia: I can't be love by everybody in #postfix, it's obviously, and normally11:09
ikoniaNeo4: no it doesn't11:09
ikoniaNeo4: if someone criticizes you it has nothing to do with if they like you or not11:09
ikoniano-one humilated you11:10
Neo4ikonia: don't pay attantion as I said, That was nothing bad. You will see such guys many in your life11:10
Neo4ikonia: I said it doesn't matter11:10
ikoniait wasn't nothing11:10
ikoniait was seasoned experienced people giving you advice, and you bluntly refusing it, but still asking for help11:10
ikoniaI suggest we end this discussion, its way out of scope for this channel11:11
Neo4ikonia: why? it directly show his attitute to you, Will you criticize girl what you like of she you? Might not11:11
Neo4ikonia: 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
Neo4That guy just show that he is not like me11:12
Neo4:)11:12
Neo4I understood this11:12
Neo4nobody said bad about me, only he11:13
ikoniadrop it please11:13
Neo4ok11:13
Neo4stop11:13
ikoniathank you11:13
samba35i am using kvm on 18.04 and i have ,windows 7 and centos as a guest installed11:38
samba35i 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 ram11:40
ikoniasamba35: please don't cross-post11:40
ikoniayou're asking this in other channels11:40
ikoniasamba35: the bottom line is it's the host is "using" ram because you've allocated it to a VM11:41
ikoniathink of it as reserved11:41
samba35ikonia, my host is ubuntu12:07
samba35and guest is centos12:08
samba35ikonia, do you have any idea12:09
samba35how this issuse can be fixed12:10
blackflowsamba35: ikonia just told you. it's not an issue to be fixed. the host is reserving the ram for the VM12:12
samba35ok12:19
Neo4who know how apt-get install roundcube creates mysql database?16:33
Neo4without asking root password for mysql16:33
Neo4I'm going to write shell script that will install roundcube in the same way16:34
Neo4but now formy script need mysql root password16:34
Neo4how to avoid asking mysql root pasword?16:34
RoyKdo you have a root password for mysql?16:37
Neo4RoyK: yes16:54
Neo4RoyK: and apt-get install roundcube has access to mysql withotu root password16:55
Neo4RoyK: see my script with asking https://gist.github.com/kselax/418a052b49fb2d16a57014b3213c8cc016:56
Neo4it works with asking, I am interested how "apt-get install roundcube" works without asking16:57
Neo4apt-get asks me about input password for db name and password for roundcube user16:58
RoyKNeo4: if you run "mysql" as root, does it prompt you for a password?16:59
Neo4RoyK: if I do mysql -uroot -p it prompt me17:00
Neo4if I do mysql -uroot without -p it show error17:00
RoyKNeo4: try sudo -i ; mysql17:01
Neo4ok, now17:01
Neo4RoyK: https://paste.ubuntu.com/p/9TtgvBWdky/17:02
Neo4RoyK: 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 same17:02
Neo4in google couldn't have found answer17:03
RoyKonly way to bypass mysql security is to start mysqld with --skip-grant-tables17:03
RoyKlast I checked17:04
Neo4RoyK: how you start? systemctl restart mysql.service --skip-grant-tables17:06
RoyKno, just stop the service and start mysqld manually17:06
Neo4 how manually?17:06
RoyKmysqld --skip-grant-tables17:06
Neo4I stopped using systemclt stop mysql.service17:06
Neo4RoyK: doesn't work17:09
Neo4ok17:09
Neo4with use with root password, nothing bad17:09
Neo4for a while17:09
Neo4https://paste.ubuntu.com/p/Wg2tq5jqRj/17:09
RoyKnot "mysqld start --skip-grant-tables" - "mysqld --skip-grant-tables"17:11
RoyKand not systemctl something - just start mysqld directly with that flag17:11
Neo4ok, will try17:11
RoyKadding --skip-networking may be a good idea17:11
Neo4RoyK: doesnt work, computer hang17:13
Neo4RoyK: https://paste.ubuntu.com/p/bqmn65Qm4D/17:15
[Kid]anyone have multipath setup and working in 18.04?17:34
[Kid]my server will see the paths, but it is not giving it a friendly name so that I can mount it17:35
[Kid]unless the friendly name is dm-017:35
[Kid]but i don't think so17:35
=== jelly-home is now known as jelly
ironhalikAA18:53
ironhaliksorry, my weechat went insane, carry on18:54
mojtabaHello, 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 unknown20:15
mojtabaDo you know what is going on? and what should I do to open a port?20:15
mojtabaI was trying to do the same thing for 1194/udp. But it was the same.20:15
irwissprobably missing the /udp part?20:16
mojtabairwiss: I have tried 1194/udp and also without udp, but still the same20:16
irwissyou can try poking in ufw status to see what ufw thinks it's allowing and check if it matches your expectations20:19
mojtabairwiss: I have checked ufw status, and it is saying ALLOW.20:19
mojtabaon the vps I typed ifconfig, and the inet IP address and broadcast IP address are the same. Is that Ok?20:20
Neo4mojtaba: try listen port telnet localhost 119420:29
Neo4ufw status20:29
Neo4mojtaba: you can scan wholly your server using:20:30
Neo4nmap ip_of_yourserver20:30
mojtabatelnet: Unable to connect to remote host: Connection refused20:30
mojtabaNeo4:20:30
Neo4it means port nobody use, it won't work20:31
mojtabatelnet localhost 1194, telnet: Unable to connect to remote host: Connection refused20:31
mojtabaufw status20:31
mojtaba1194/udp                   ALLOW       Anywhere20:31
Neo4mojtaba: what is show nmap?20:31
Neo4port is opened20:32
mojtabanmap -sU -p 1194 localhost20:32
mojtaba1194/udp closed openvpn20:32
Neo4all right, now you need customize applicatiosn that will use this port20:32
Neo4mojtaba: I don't know exactly, but it seems you need customize applicatiosn that will use port20:32
mojtabain one window I typed nc -l 119420:32
mojtabait shows it still as closed.20:33
Neo4mojtaba: it's bad, it should be opened and prepared for getting data20:33
mojtabaNeo4: So, why it is still closed? What should I do? It is a VPS.20:34
Neo4mojtaba: 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 port20:35
Neo4in my case for 143 I look at dovecot config and 587 for postfix20:36
Neo4mojtaba: it's not UFW problem20:36
mojtabaNeo4: but nc -l 1194 should make it open, right?20:37
Neo4what is it? I don't know20:37
Neo4maybe20:37
mojtabanetcat20:37
Neo4mojtaba: for what you do this?20:38
Neo4what will use this port?20:38
Neo4node.js?20:38
mojtabaNeo4: Openvpn20:38
Neo4mojtaba: with Openvpn, I can't help, sorry, haven't even heard about.20:39
mojtabaNeo4: nc opens the port and waits for connections, but after that nmap still shows the port as closed.20:40
=== popey_ is now known as popey
Neo4mojtaba: I'm not sure, it seem port will always closed when turn off in your case Openvpn20:41
Neo4mojtaba: see I opened 400 port on ufw in my vps kselax.ru and don't see that port20:47
Neo4and see 143 and 587, if I turn off postfix and dovecot, will I see ports?20:48
Neo4now check20:48
mojtabaNeo4: install netcat, with netcat you can mimic an app using the port.20:48
Neo4mojtaba: see two port imap and smtp are closed https://paste.ubuntu.com/p/dWHJsrcmVR/20:53
Neo4I'll off apache20:53
Neo4mojtaba: https://paste.ubuntu.com/p/wQ4NH9Bprb/20:55
Neo4yes, experiment show that closed port mens application off or badly customized20:55
Neo4and I don't understand why I didn't see 400 port, in ufw it opened20:55
Neo4mojtaba: telnet kselax.ru 80 . refused connection on closed port20:57
Neo4now on all apps20:58
mojtabaNeo4: How you can open a random port for a short time to test.20:58
Neo4mojtaba: I don't know, I opened 400 and nmap doesn't show 40021:00
Neo4mojtaba: recently I opened 3000 port for test node.js chat. I did ufw allow 3000 and it was shown in nmap21:00
Neo4mojtaba: see what I think, you need run something on port21:01
Neo4if 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 nmap21:02
Neo4mojtaba: chat has been installed http://kselax.ru/chat/21:08
Neo4now we need to run it on some port21:08
Neo4400 for example21:08
Neo4mojtaba: see http://kselax.ru:3000/21:13
Neo4mojtaba: can you do nmap kselax.ru? Do you see there 3000 and 400 ports?21:14
Neo4I don't21:14
Neo4something strange work21:14
Neo4mojtaba: why I don't see 400 port?21:16
Neo4https://paste.ubuntu.com/p/vYHrFmqQ6k/21:16
Neo4mojtaba: do you there?21:28
Neo4see http://kselax.ru:400/21:29
Neo4ports that under 1024 should be run only by root, each regular user can't run it21:29
Neo4guys why nmap doesn't show opened ports?21:33
Neo4it is said that nmap is the best tool for seek valnurabilities on servers21:33
Neo4See this, telnet shows, nmap doesn't, why?21:33
Neo4https://paste.ubuntu.com/p/3ypBPctb3N/21:33
Neo4crape21:33
Neo4Which apps to use for to scan server ports?21:34
Neo4nmap isn't reliable, telnet also21:35
Neo4mojtaba: this is openVPN? https://openvpn.net/21:48
Neo4I wanted to install it and test. I need it also21:48
aroonihaving trouble getting my command that runs fine in my fish or bash shell to run on cron23:31
aroonii followed http://g14n.info/2016/05/crontab-best-practices/ ;; but command still doesnt run23:31
Neo4arooni: what command you do?23:50
Neo4arooni: try this put to crontab -e23:53
Neo4@reboot echo "1 - `date`" >> $HOME/crone.test23:53
Neo4or @reboot ./your_shell_script.sh23:53
Neo4and then reload computer23:53
Neo4@reboot echo "1 - `date`" >> $HOME/crone.test create file23:54
Neo4in /home/$USER/crone.test and put there current data after each reboot23:54
Neo4arooni: if you can run your script in termina, put the same line to crontab -e and it must work23:55

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