← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1595558] Re: sudo doesn't have /snap/bin in PATH

 

Closing the snapd tasks, we will fix it in sudo directly.

** Also affects: sudo (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: sudo (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: snapd (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: snapd (Ubuntu)
       Status: In Progress => Won't Fix

** Changed in: snapd (Ubuntu Xenial)
       Status: New => Won't Fix

** Description changed:

+ [ SRU Justification ]
+ Snap may contain sysadmin tools as well. They are currently hard to invoke
+ because /snap/bin is not in the PATH when sudo is used because the default
+ secure_path of sudoers does not have it.
+ 
+ [ SRU Test Case ]
+ 1. sudo snap install hello-world
+ 2. sudo hello-world
+ 3. verify that this fails with "command not found"
+ 4. install sudo from xenial-proposed
+ 5. verify that sudo hello-world now works
+ 
+ [ Regression Potential ]
+ - may trigger conffile prompts on upgrade
+ 
+ [Original report]
  $ nextcloud.occ
  # prints output
  
  $ sudo nextcloud.occ
  sudo: nextcloud.occ: command not found
  
  I need to do `sudo /snap/bin/nextcloud.occ` if I want it to run.
  
  $ sudo env | grep PATH
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1595558

Title:
  sudo doesn't have /snap/bin in PATH

Status in snapd package in Ubuntu:
  Won't Fix
Status in sudo package in Ubuntu:
  New
Status in snapd source package in Xenial:
  Won't Fix
Status in sudo source package in Xenial:
  New

Bug description:
  [ SRU Justification ]
  Snap may contain sysadmin tools as well. They are currently hard to invoke
  because /snap/bin is not in the PATH when sudo is used because the default
  secure_path of sudoers does not have it.

  [ SRU Test Case ]
  1. sudo snap install hello-world
  2. sudo hello-world
  3. verify that this fails with "command not found"
  4. install sudo from xenial-proposed
  5. verify that sudo hello-world now works

  [ Regression Potential ]
  - may trigger conffile prompts on upgrade

  [Original report]
  $ nextcloud.occ
  # prints output

  $ sudo nextcloud.occ
  sudo: nextcloud.occ: command not found

  I need to do `sudo /snap/bin/nextcloud.occ` if I want it to run.

  $ sudo env | grep PATH
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1595558/+subscriptions