Default cron PATH does not include /snap/bin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned | ||
cron (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I recently changed from a .deb install of LXD to a snap, and was surprised that one of my crontab scripts stopped working.
I see that $PATH in a cron script only contains "/usr/bin:/bin", whereas my default shell also includes "/snap/bin".
It seems to me that for the best user experience with snaps, "/snap/bin" should be part of the default $PATH in cron.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cron 3.0pl1-128.1ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 2 14:30:06 2018
InstallationDate: Installed on 2017-12-20 (194 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20171219)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cron
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Steve Langasek (community): Needs Fixing
- Canonical Foundations Team: Pending requested
-
Diff: 56 lines (+13/-3)4 files modifieddebian/anacrontab (+0/-1)
debian/changelog (+11/-0)
debian/control (+2/-1)
debian/cron.d (+0/-1)
- Steve Langasek (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 169 lines (+111/-3)6 files modifieddebian/changelog (+10/-0)
debian/cron.init (+1/-1)
debian/cron.service (+1/-1)
debian/crontab.main (+2/-1)
debian/patches/features/inherit-path.patch (+96/-0)
debian/patches/series (+1/-0)
tags: | added: canonical-bootstack |
tags: | added: rls-ee-incoming |
Changed in cron (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cron (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
tags: | added: fr-1092 |
tags: | removed: rls-ff-incoming rls-hh-incoming |
Changed in cron (Ubuntu Hirsute): | |
status: | Confirmed → Fix Committed |
Changed in anacron (Ubuntu Hirsute): | |
status: | Confirmed → Fix Committed |
Changed in cron (Ubuntu Groovy): | |
status: | Confirmed → Won't Fix |
Changed in anacron (Ubuntu Groovy): | |
status: | Confirmed → Won't Fix |
Changed in anacron (Ubuntu Bionic): | |
status: | Confirmed → Won't Fix |
Changed in anacron (Ubuntu Focal): | |
status: | Confirmed → Won't Fix |
Changed in cron (Ubuntu Bionic): | |
status: | Confirmed → Won't Fix |
Changed in cron (Ubuntu Focal): | |
status: | Confirmed → Won't Fix |
Status changed to 'Confirmed' because the bug affects multiple users.