What permission for /usr/local/bin ??

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

What permission for /usr/local/bin ??

robert rottermann
Hi there,

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/ ?

thanks

robert


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: What permission for /usr/local/bin ??

Peter Flynn
On 25/04/2019 13:08, robert rottermann wrote:
> Hi there,
>
> I updated to Ubuntu 19.04.
>
> Now I get a permission error when I try to install virtualenvwrapper:
[snip]
> Now my question: what is the recommended access settings for
> /usr/local/bin/ ?

$ ls -ld /usr/local/bin
drwxr-xr-x 2 root root 4096 Mar 31 15:36 /usr/local/bin

(that's 755 as a bitmap: root can do anything; others can read from the
directory and descend into it.)

P

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: What permission for /usr/local/bin ??

Colin Law
In reply to this post by robert rottermann
On Thu, 25 Apr 2019 at 13:11, robert rottermann <[hidden email]> wrote:
>
> Hi there,
>
> I updated to Ubuntu 19.04.
>
> Now I get a permission error when I try to install virtualenvwrapper:

How are you installing it?

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: What permission for /usr/local/bin ??

Tom H-4
In reply to this post by robert rottermann
On Thu, Apr 25, 2019 at 2:11 PM robert rottermann <[hidden email]> 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".

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users