/srv/irclogs.ubuntu.com/2021/09/09/#ubuntu-server.txt

=== dbungert1 is now known as dbungert
=== E_Eickmeyer is now known as Eickmeyer
Guest42hi 02:32
sarnoldhello02:33
Guest42Anyone can help me  to install amavisd-new please?02:33
Guest42sarnold Hello02:33
Guest42I have encontrod an error during instalation02:34
Guest42I have using this command02:36
Guest42apt -y install clamav-daemon amavisd-new 02:36
Guest42Error here02:36
Guest42Creating/updating amavis user account...02:36
Guest42Job for amavis.service failed because the control process exited with error code.02:36
Guest42See "systemctl status amavis.service" and "journalctl -xe" for details.02:36
Guest42invoke-rc.d: initscript amavis, action "start" failed.02:36
Guest42● amavis.service - LSB: Starts amavisd-new mailfilter02:36
Guest42     Loaded: loaded (/etc/init.d/amavis; generated)02:36
Guest42     Active: failed (Result: exit-code) since Thu 2021-09-09 01:58:17 UTC; 10ms ago02:36
Guest42       Docs: man:systemd-sysv-generator(8)02:36
Guest42    Process: 2861 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)02:36
sarnoldGuest42: does amavisd have its own logs in /var/log/ that might say what failed?02:37
sarnoldGuest42: maybe journactl -e   will show you an error message, but I'd expect its own log files to be more useful02:37
Guest42sarnold Thanks for your suggestion, I will check it02:40
Guest42There is no error log in /var/log/ for amavis02:41
sarnoldGuest42: dang. maybe just the syslog then?02:41
Guest42Sep 09 01:58:17 mail.myhostname.com amavis[2861]: Starting amavisd:02:45
Guest42Sep 09 01:58:17 mail.myhostname.com amavis[2875]: Insecure directory in $ENV{PATH} while running with -T switch at /usr/sbin/amavisd-new line 4353.02:45
Guest42Sep 09 01:58:17 mail.myhostname.com amavis[2861]: (failed).02:45
Guest42This lines by  journactl -ex02:45
Guest42sarnold Insecure directory in $ENV{PATH} while running with -T switch at /usr/sbin/amavisd-new line 4353. 02:46
Guest42I can't understand the error line!02:47
sarnoldGuest42: oh *wow*02:53
sarnoldGuest42: ok.. so, my guess is that means the permissions or ownership of a directory somewhere on your system isn't right02:57
sarnoldGuest42: and that error message feels like perl has done something very kind and considerate to warn you :)02:57
sarnoldGuest42: now, the complication is that the PATH environment variable can be unique for every single process on the system...02:57
sarnoldGuest42: it's *easy* to see what things look like in your current shell02:58
sarnoldGuest42: but that might not reflect the status in the init script that starts amivisd... so. lets check the easy thing first02:58
sarnoldGuest42: for d in `tr : \\\n <<< "$PATH"` ; do namei -l $d ; done02:58
sarnoldGuest42: oh yeah, also just a plain echo $PATH -- maybe it's got current working directory in it02:59
oerheksjournalctl -eu amavis03:01
sarnoldGuest42: if nothing looks too strange with your current shell, then try adding echo $PATH and ^^ that loop around namei -l  into your /etc/init.d/amavis file -- then systemctl restart amavis -- then check the journal? or syslog? I'm not sure where the output would go. heh.03:01
Guest42sarnold You are right03:06
Guest42https://paste.gnome.org/pyjohhjtc/xx8qqa/raw03:06
Guest42I cant sure 03:06
Guest42but, I think there is some bin directory with 777! permesion03:07
sarnoldthose are symlinks as part of the 'usrmerge' transition03:07
Guest42I think this line drwxrwxrwx root root bin03:07
sarnoldI wonder if perl knows about those03:07
sarnoldOOOPS03:08
sarnoldGuest42: good thing *you* read this too :)03:08
sarnoldI missed that completely. yeah.03:08
Guest42oerheks Thanks, it show the some error line.03:08
Guest42I will try to change that and let you know03:09
sarnoldGuest42: first thing, chmod 755 /usr/bin   -- second thing, figure out if anything was dropped in that directory that shouldn't have been03:09
sarnoldthird thing, figure out what changed that mode03:09
Guest42Wow03:13
Guest42sarnold you are Great!03:13
Guest42worked03:14
sarnoldGuest42: it was (probably) perl that pointed out the problem :D03:14
Guest42Thank you so much03:14
sarnoldand I'm *so* glad you read the output so much more carefully than I did03:14
Guest42sarnold Your feedback is great, I learned a lot from you.03:21
Guest42Thank you again03:21
sarnoldGuest42: glad to hear it ;) you're welcome :)03:21
=== genii is now known as genii-core
=== genii-core is now known as genii

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