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.
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d2a51c30-bc21-4ae1-a92b-eac287211fa5%40googlegroups.com.

Reply via email to