[00:10] Firefox has detected that the server is redirecting the request for this address in a way that will never complete. mxtoolbox.com says "The remote server returned an error: (404) Not Found. (http://greetonix.com) " redirect-checker.org thinks its essentially ok. Config file: https://hastebin.com/rarowejito.py [00:20] is there a parameter in F6 during ubunut install to say "Do not configure network right now" ? [00:21] I put the CD in and wait all night and then see it is waiting on to respond to that [00:21] (I know I can fix all those by extracting the ISO and then fix the preseed) [00:22] axisys: iirc I once heard you can unplug the network cable to get past hung networking config [00:22] but we are building tons of those from the vendor ISO (built on top of ubuntu ISO with their pkgs) and like to just provision the ISO and make a comment in the boot option and let it make build [00:23] sarnold: except these servers at all over the world.. [00:23] axisys: ah. the 'f6' gave me the impression you just wanted to move past something immediately. :) [00:23] sarnold: I provision the ISO over iLO (HP proliant gen 9) and let it build [00:24] sarnold: that is the only question I need to repond.. I also add the console=ttyS0,115200n8 console=tty0 after the -- [00:24] but I wish there is a parameter to tell it to skip the network [00:25] it builds just fine without the network except wait for an answer.. [00:26] extracting ISO and fix it would be fine.. but we continuosly get new version ISO which get pushed to certain location.. so somewhat hands free on receiving new ISO from the Vendor [00:27] and then we just point to it over iLO.. so somewhat automated.. but this last question is kind of annoying manual process [00:28] I could not find any answer in google yet.. most matches to answer fixing or disabling network from the OS.. that is not what I am looking for [00:29] axisys: which installer are you using? debian installer? ubiquity? subiquity? something else? [00:29] like those google results, I really only know things once an OS is up and running, heh [00:31] ubuntu 14.02 ISO default [00:32] so probly debian installer? [00:40] axisys, is there a parameter in F6 during ubunut install to say "Do not configure network right now" ? <<<<< Possibly netcfg/disable_autoconfig=true will do what you need. From https://help.ubuntu.com/lts/installation-guide/i386/ch05s03.html for details. [00:40] ... 14.04? [00:44] dpb1: yes [00:44] apb1963: hmm.. need to test with that parameter for next install [07:52] hi [07:52] hi [07:52] what is scheme link dovecot + postfix + mysq + postfixadmin + squirrelmail? [07:53] I installed postfix, it works, send and accept mails, I'd tried with all other apps and couldn't have done [07:54] postfixadmin creates your own table in mysql, In postfixadmin I can create virtual domain and mailboxes, What is this I don't know [07:54] real postfix doesn't linked to postfixadmin [07:55] what database should be for dovcot postfix squirrelmail? [07:55] they all should use one database? [07:56] and for support mysql we must install postfix-mysql === devil is now known as Guest27019 [07:56] and for link something database, there we have to learn how works postfix table lookup? [07:57] These is all what I know for a while... [07:58] I can't do this :( [08:00] guys is it really even set up mail server so difficult? [08:00] not everybody could do it... [08:02] What I think, Let's little thinking? [08:03] squirrelmail it's ordinary MUA (web) for web they called webmail [08:03] it means it must have his own separated database? [08:04] yes, probably, and then using IMAP mails will delivers there, but there nothing works, one page with login and password, Not understandable where database [09:38] <_ruben> as stated several times before, setting up a mailserver without knowing what you're doing is a recipe for disaster [12:40] rbasak: hi, good morning. dep3 question [12:40] rbasak: I have an upstream patch that was formatted by git, and it looks like this: https://attachments.samba.org/attachment.cgi?id=14159 [12:40] dep3 has other headers, a different formatting [12:40] yet dep3changelog (my go-to tool to check dep3 syntax) doesn't complain about it [12:41] should I a) reformat the entire header into what we normally use in our dep3 patches?; b) just add some missing bits, like "Bug-Ubuntu" [12:41] c) leave it as is, and mention the ubuntu bug in d/changelog? [12:48] cpaelzer: do you have a preference about the above? ^ [12:56] ahasenack: I'm reading ... [12:57] my adapted patch looks like https://pastebin.ubuntu.com/p/8N5PZnfBgF/ [12:57] I added a couple of headers [12:57] I usually take b) of your options [12:57] so like https://pastebin.ubuntu.com/p/8N5PZnfBgF/ that I just did [12:57] where I added Bug-Ubuntu and Origin [12:57] take the patch as is and right above the --- to diffstat I add the lines that I tinhk match of http://paste.ubuntu.com/p/23hR56TXJb/ [12:58] ah, hm, I added them as additional headers, since that whole thing looks like an email [12:58] yeah, I usually group them at other lines, but content wise this is fine [12:58] ok, thx [12:58] I like to separate them down there to be obvious that this is the part not coming out of the git export [12:58] but you are fine either way IMHO [12:59] the git export has most already anyway [12:59] and enriching with some extras just helps on maintenance [12:59] cpaelzer: yours would look like this then? https://pastebin.ubuntu.com/p/tfPJBvYZB9/ [13:03] ahasenack: yes [13:03] except I once started to list Author (me) and Original-Author (the above) as well [13:03] but I realized that is unreasonable overkill [13:03] and I'm gonna drop that soon [13:03] my name is in the upload [13:03] his in the git export [13:04] I think that is good in terms of correct attribution [13:04] only if I backport it reasonably (modification) I still do that [13:04] yeah, I would only put my name in there if the patch needed significant changes in order to apply [13:04] see- we are the same :-) [13:23] hm, trying to understand why the diff in https://code.launchpad.net/~ahasenack/ubuntu/+source/samba/+git/samba/+merge/343606 is bogus [13:25] * ahasenack makes a fresh clone elsewhere [13:54] I've installed dovecot and try check [13:54] telnet localhost 143 [13:54] and got error connection closed [13:54] in firewal it allowed [13:55] Neo4: is there a process listening to that port? [13:55] connection closed by foreign host, what does it means? [13:56] it seems works, only closed for unknown host [13:56] sdeziel: https://paste.ubuntu.com/p/m7fwWYRqNt/ [13:57] continue read [13:57] do you know there maybe need to create IMAP server? [13:58] MX or something similar? [13:58] join #dovecot [13:59] looks like you are trying to connect to a port where nothing listens [15:10] I put to rsyslog.conf other data, and remove old, how to get new rsyslog.conf? [15:10] if I reboot server what happane? [15:31] Good morning, I am having issues with apparmor and slapd. I put my certs in a custom folder (usr/var/openldap-data). Added /usr/var/, /usr/var/openldap-data and /usr/var/openldap-data/* to the apparmor usr.sbin.slapd file with read permission. [15:31] but when I try to use a cert configured in that folder, apparmor denies the access [15:34] Chryzo: can you paste the denial? [15:35] apparmor="DENIED" operation="open" profile="/usr/sbin/slapd" name="/usr/var/openldap-data/cacert.pem" pid=55921 comm="slapd" requested_mask="r" denied_mask="r" fsuid=112 ouid=0 [15:38] Ok, i restarted the whole stack and it is now working. Sorry about that [15:41] who know how to regenerate new /etc/rsyslog.conf? [15:44] well, I copy to rsyslog.conf data from my local computer [15:45] seems it can't generate after remove, there not file at all [15:45] how to configure hostdev ,by editing virsh edit guestname and hostdev section and change
[15:45] ???? [15:46] samba35: are you asking if that is how you edit hostdev? [15:46] when i edit it give error with error: XML error: Invalid PCI address 0000:01:00.0. slot must be >= 1 [15:47] yes [15:47] samba35: there is also a libvirt channel, i expect and #ubuntu-server is probalby more appropriate [15:47] ic [15:47] thanks [20:21] I'm having a strange bug where I can't chmod on a file that I have write access to via the group permissions [20:22] Perms on the file is -rw-rw-r-- and www-data is set as both owner and group [20:22] user account I'm trying to chmod with is in the group www-data [20:23] Parent directory is drwxrwx--- and owned by the user account [20:23] just because your user is in the www-data group, doesn't mean that you can chmod the file to change its permissions [20:23] normally that's an owner user priv, or something you need superuser to do [20:23] +1 [20:24] Oh I see... [20:25] I've always used sudo but now I'm trying to work with a limited account [20:25] ProCycle: at this point you're starting to delve into "Who should own the files" [20:25] Guess I need to muck with the nginx server [20:25] I have a setup where my own user account has user-level ownership of the files, www-data has group level ownership/access, and nobody else does [20:25] and it works fine with NGINX [20:25] because www-data has read/write privs where it needs them. [20:26] But these files are being written by NGINX (well php-fpm) [20:26] (unrelated but probably good to know, as dpb1 knows, I'm one of the primary NGINX people on the Server team) [20:26] ProCycle: so give the *group* read/write [20:26] let's say my user is 'foo' [20:26] ownership is set to foo:www-data [20:26] chmod for directories is 770 [20:26] chmod for files is 660 [20:26] your user has access, www-data for the web server has access, nobody else has access [20:27] (except superuser of course) [20:27] NGINX runs as `www-data:www-data` by default in Ubuntu, so it will have access via the group-level permissions [20:27] if any other user needs access, then, you're starting to delve into the realm of file ACLs [20:27] aye that's how it's setup, except the server isn't creating files that way [20:27] "except the server isn't creating files that way" <-- explain this [20:28] ambiguous statements are ambiguous [20:28] and make me cringe horribly. [20:28] teward: :) [20:29] As in, most of the site files are read only to the server and owned by my user, except it has write access in one subdirectory (web/files/) where php is writing various files [20:29] By server I mean nginx [20:29] no, you mean PHP [20:29] not NGINX [20:30] since PHP is run by php-fpm and not as part of nginx. [20:30] normally. [20:30] So nginx is proxying requests to php-fpm then? [20:30] depends on your nginx setup.. give me the output of `nginx -T` and i'll tell you :P [20:30] (use a pastebin though!) [20:31] ProCycle: in a 'normal' LEMP setup with PHP, you're most likely going to have `php-fpm` running on a local UNIX socket [20:31] and NGINX hands off any PHP-related requests to that local socket for processing [20:31] so PHP is the one writing files at that point [20:31] Yes it's using the socket in the nginx config [20:32] so php-fpm is creating the files. [20:32] the default PHP-FPM pool config has it running as www-data:www-data too though [20:32] sdeziel: more importantly is deciding what "except the server isn't creating files that way" means. [20:32] teward: absolutely ;) [20:33] ProCycle: what is the server *trying* to do when it creates a file? Is it trying to create something *outside* of `web/files/`? [20:33] if it is, then your site either has system-level permissions not set up properly for it to access things, or your site is infested with malware trying to do things it's not supposed to [20:34] ProCycle: how do you *expect* the server/PHP to be creating files? With what permission(s)? [20:34] No it's writing files inside web/files/. The issue is that the management account cannot change the permissions (because they're world readable and shouldn't be) [20:34] So I need to fix the permissions so it writes files with the correct umask [20:36] and behold, *now* we know what the core issue is. [20:36] ProCycle: the 'management' account - I presume this is *not* your user, and is www-data. [20:36] insomuch as the files are created as www-data:www-data [20:37] or rather, the way the files are 'created' that is. [20:39] The management account (lets call it manager) is the one with write access to the entire site directory tree [20:39] And the site is updated by pulling from a git repo [20:39] ProCycle: your web server is creating files, correct? Is it creating them as `www-data` user and www-data group as the owner? [20:39] Yes, it is creating files in web/files/ as www-data:www-data [20:40] https://pastebin.com/jsn27Gkc [20:41] that's because of how PHP is run and how file permissions are. You state that manager can't change the permissions, and that things can't be world-readale [20:42] you have two solutions: the first is to *not* let non-manager and non-www-data users traverse into the directory (chmod o-rwx web/files) [20:42] ProCycle: if you want to PHP-FPM's umask, I think you'll need a systemd snippet. This way, you could make the umask to make the created files inaccessible for others [20:42] sdeziel: in theory he can use a filesystem level default ACL [20:42] `setfacl -d -m o::000 web/files/` [20:43] sdeziel: the tricky part is to make the umask that way might break other things in the fpm pool which might *need* that level of 'readability' [20:43] (I have a thing about messing with systemd services' runtime umask settings in that they can get 'reset' on an upgrade if the new data clobbers the customized snippet) [20:43] ProCycle: "systemctl edit php7.0-fpm" then put "[Service] UMask=0002" on 2 lines [20:43] ^ that would work [20:44] teward: yeah, I never touch package provided units ;) [20:44] sdeziel: which you'd be doing right there, I think. [20:44] because php7.0-fpm is touched by the system IIRC [20:44] teward: no [20:44] s/system/packages/ [20:44] it's *not*? *new info added* [20:45] teward: systemctl edit creates a local delta stored under /etc/systemd/... [20:45] ahhh, new SystemD info learned. [20:45] sdeziel: they could prevent 'world readability' by denying all 'other' people access to the folder itself [20:45] Hmm that's a good point. If others don't have read access to the web/files directory then they can't access the files under it regardless of their permisions [20:45] and while the perms on the files might still have 'read' for 'other' users, they wouldn't have access to the directory to go into or traverse it then [20:46] and they don't have to mess with umasks [20:46] teward: that might be the most brilliant way to solve this one [20:46] and simple [20:46] I'm going to go with that solution [20:46] ProCycle: I'd consider just doing a `sudo chmod o-rwx` on the web/files dir [20:46] teward: re systemd delta, I use them all the time for "hardening" purposes like here https://paste.ubuntu.com/p/MSJcyxZwPR/ [20:46] Rather not mess with php umasks if I can help it [20:47] sdeziel: ah, nice. [20:47] I"ve learned something today xD [20:47] Yeah systemd overrides are useful [20:47] ProCycle: once you make the chmod, though, you might need to 'store' the permissions change if that directory is indexed in git as well. Just a thought. [20:47] because git *can* change permissions... [20:47] I created a timer template for database backups, then make an override to change the timing for each instance [20:48] git would be running as the manager user, and I'd hope be preserving file perms but I'll keep an eye out on it [20:49] well git *can* remember permissions masks, which is why I said you might have to commit those permission changes on the web/files/ directory in the git repo as well, depending on the type of setup and whether that folder is included in git or not [20:49] (it's done stupid things like that for some of my projects before...) [20:50] Haven't actually created the repo yet so I'll make sure that happens [20:50] but yeah simply denying other users access to the directory in question would solve the 'world readable' problem. [20:50] the other way that doesn't involve SystemD overrides and umask messing with is to do it at the file ACL level, but that's a little evil too. [20:51] I haven't delved into ACL yet but I suspect that's something valuable to learn [20:52] the parent dir chmod is best IMHO, but another way would be to set an env variable in the FPM pool config [20:53] ^ that too [20:53] but yeah, parent dir chmod to prevent traversal any further into the dir tree is the best and most simple solution [20:59] Now if only I could make composer not be stupid and set perms correctly from the beginning [21:06] I've generated an SSH key using ssh-keygen, used ssh-copy-id to copy it over to the target, set the ssh config to no use passwords for auth, but when I try to SSH in it fails with "Permission denied (publickey)". Adding the -v flag shows that the public key is being offered, but for some reason the server is rejecting it. I've compared the values on the remote host and the local host and they match. what am I missing. [21:07] check the contents of ~/.ssh/authorized_keys [21:07] Your public key should be in there [21:08] it is [21:10] You could check /var/log/syslog for an error from sshd [21:10] Might have more information [21:11] nothing that jumps out at me [21:13] Maybe try ssh -i ~/.ssh/keyname -o IdentitiesOnly=yes account@host [21:13] to connect [21:14] sudosmurf: grep sshd /var/log/auth.log [21:14] ProCycle, I've specified the file in the ssh config [21:14] the identity file [21:14] can the -o [21:14] sudosmurf: could you paste your sshd_config if auth.log? [21:34] yeah, in a bit