Saving weewx.config

41 views
Skip to first unread message

MEGA GODZILLA 80000

unread,
Feb 28, 2020, 4:22:39 AM2/28/20
to weewx-user
Just installed weewx on a Raspberry Pi V4.  Trying to change weewx.config file to support my Acurite Weather station.  When I try to save it, i get the message failed because I don't have the right permission.  Not real familiar with Linux but I'm trying.  I installed Raspbian as a normal user.  I guess that means I'm not the administrator or superuser? How do I change the user to get the correct permissions to save the file?

Andrew Milner

unread,
Feb 28, 2020, 4:50:52 AM2/28/20
to weewx-user
use sudo nano instead of nano when editing weewx.conf

vince

unread,
Feb 28, 2020, 11:40:09 AM2/28/20
to weewx-user
On Friday, February 28, 2020 at 1:22:39 AM UTC-8, MEGA GODZILLA 80000 wrote:
Just installed weewx on a Raspberry Pi V4.  Trying to change weewx.config file to support my Acurite Weather station.  When I try to save it, i get the message failed because I don't have the right permission.  Not real familiar with Linux but I'm trying.  I installed Raspbian as a normal user.  I guess that means I'm not the administrator or superuser? How do I change the user to get the correct permissions to save the file?

About 95% of the problems new pi users have is that they don't understand how Linux permissions work.

The default Raspberry pi user is 'pi' who is non-privileged.  Weewx runs as root which 'is' privileged.

So all you need to do is to preface your command with "sudo" so that your non-privileged user runs the command 'with' privileges.   It's notionally like Windows where you can RunAs administrator.

So as Andrew replied, you run "sudo vi" or "sudo nano" or "sudo whatever-editor-you-are-using" and you'll be fine.
 
Reply all
Reply to author
Forward
0 new messages