Content-Length: 403227 | pFad | http://github.com/weewx/weewx/wiki/faq-permission-denied

8BD faq permission denied · weewx/weewx Wiki · GitHub
Skip to content

faq permission denied

Tom Keffer edited this page Sep 13, 2024 · 3 revisions

Problem Description

Users new to Linux/Unix are frequently confused when they run a command as indicated in the WeeWX documentation and get a 'permission denied' message.

pi@pi4p1:~ $ weectl extension install /var/tmp/gw1000-0.3.1.tar.gz
Request to install '/var/tmp/gw1000-0.3.1.tar.gz'
Extracting from tar archive /var/tmp/gw1000-0.3.1.tar.gz
Traceback (most recent call last):
   [...]
PermissionError: [Errno 13] Permission denied: '/etc/weewx/bin/user/gw1000.py'

The problem here is that weewx installs things as the privileged user 'root', yet the user is using a non-privileged user 'pi' to try to do privileged things.

The correct way

Preface the command with 'sudo' so that your command runs with elevated privileges.

pi@pi4p1:~ $ sudo weectl extension install /var/tmp/gw1000-0.3.1.tar.gz

For more information

For more about permissions, see the the wiki article Understanding permissions.

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/weewx/weewx/wiki/faq-permission-denied

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy