What permission for /usr/local/bin ??

Tom H tomh0665 at gmail.com
Thu Apr 25 16:11:10 UTC 2019


On Thu, Apr 25, 2019 at 2:11 PM robert rottermann <robert at redcor.ch> wrote:
>
> I updated to Ubuntu 19.04.
>
> Now I get a permission error when I try to install virtualenvwrapper:
>
> Exception:
> Traceback (most recent call last):
> File
> "/usr/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py",
> line 143, in main
> status = self.run(options, args)
> File
> "/usr/lib/python2.7/dist-packages/pip/_internal/commands/uninstall.py",
> line 75, in run
> auto_confirm=options.yes, verbose=self.verbosity > 0,
> File
> "/usr/lib/python2.7/dist-packages/pip/_internal/req/req_install.py",
> line 683, in uninstall
> uninstalled_pathset.remove(auto_confirm, verbose)
> File
> "/usr/lib/python2.7/dist-packages/pip/_internal/req/req_uninstall.py",
> line 224, in remove
> renames(path, new_path)
> File "/usr/lib/python2.7/dist-packages/pip/_internal/utils/misc.py",
> line 280, in renames
> shutil.move(old, new)
> File "/usr/lib/python2.7/shutil.py", line 326, in move
> os.unlink(src)
> OSError: [Errno 13] Permission denied: '/usr/local/bin/virtualenvwrapper.sh'
>
> Now my question: what is the recommended access settings for
> /usr/local/bin/ ?

If "/etc/staff-group-for-usr-local" exists,

/usr/local
/usr/local/bin
/usr/local/etc
/usr/local/games
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/share/man
/usr/local/src

are

chown root:staff
and
chmod 2775

so that you can install into "/usr/local" if you're a member of "staff".



More information about the ubuntu-users mailing list