Questions tagged [permissions]

Permissions grant certain abilities - read, write, or execute a file - on a user level. Unset permissions result in the corresponding rights being denied. Questions address issues with permission settings.

Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

HTTP server on port 80 creating files as root:root

I have a camera streaming server based on this picamera2 example code: mjpeg_server.py and I added a button to capture a still image and save it. Now I want this to be on port 80 (which requires me to ...
hawk's user avatar
  • 101
0 votes
0 answers
29 views

Mounting an NFS share to the current user

I have two Raspberry Pis, say Pi-One and Pi-Two. I have an NFS share setup on Pi-One. I have 2 users on Pi-Two, the original 'Pi' (uid=1000, gid=1000), and 'Steve' (uid=1001, gid=1001). Whatever I do ...
Richard's user avatar
1 vote
1 answer
177 views

Network drive sharing when RPi is file server

I'm using a Pi4 as a file server. Everything was fine - USB drives are mounted, Samba shares makes them available to the network. No issues until I reformatted the drives as ext4. I moved the data, ...
TMSpack's user avatar
  • 13
0 votes
0 answers
19 views

Moving an external hard drive to a fresh install

I use a pi4 with 32-bit raspbian and a USB drive with an ext4 partition as a NAS. I want to upgrade the pi4 to 64-bit through a fresh install. If I reinstall raspbian with the same user/pw, will my ...
directed2172's user avatar
0 votes
0 answers
32 views

Error copying home folder files - permission denied

I am trying to set up a directory to use with a docker container. I've created a new user 'me' with 'pi' permissions. In /home/me/ I created subfolders location and location/db. Everything in /home/me/...
zarac's user avatar
  • 1
0 votes
1 answer
66 views

Attempted to ssh as root after running into Denied error, but couldn't login

I'm running a Plex server on my RPi3 with Raspberry OS Lite. I've started running into an error when uploading files that I cannot set permissions/timestamp, error 3 Denied. I've tried a few things, ...
Wilko84's user avatar
0 votes
3 answers
811 views

how do i login as root , its not working for me

So far, I have only logged in as myself and have used sudo for various things when needed Now I want to use the desktop text editor tool to modify some files in /var (for home assistant by the way) ...
Cool Pontiac's user avatar
1 vote
2 answers
3k views

Mounting exfat drive with read/write permissions for a non root user

I’ve been reading a few posts about this, but still haven’t gotten any traction. I’m convinced I’m dealing with my options getting overridden. Context I have an exfat mounted drive on a Raspberry Pi 4....
sameetandpotatoes's user avatar
1 vote
0 answers
24 views

Can't retrieve PySerial ListPortInfo.vid, ListPortInfo.pid, ListPortInfo.description

I am developing a cross platform Python application which will need to work on Windows and Raspberry Pi. I am using 64bit Raspberry Pi OS on a Raspberry Pi 4. On Windows I have no problem getting via ...
aounmc's user avatar
  • 11
2 votes
1 answer
91 views

Error mounting drive at service startup (ExecStartPre)

As a precondition for starting my Syncthing service, I wish to mount an external USB drive (label MyBook). The action must be synchronous, so putting it anywhere else besides the service's ...
InteXX's user avatar
  • 145
2 votes
1 answer
69 views

Intermittent access errors when writing to GPIO using SYSFS and Ruby

I am using Ruby to drive output GPIO pins using the old SYSFS pseudo-filesystem interface, and am regularly encountering intermittent Errno::EACCES: Permission denied @ rb_sysopen errors. My user is a ...
Dan's user avatar
  • 125
2 votes
1 answer
134 views

Raspberry Pi Imager for Standard User

I am helping design a lab at school where the students of the class will image their own Raspberry Pis. Right now there are only 20 students in the pilot class, but I will soon need to scale this to ~...
christopolise's user avatar
1 vote
1 answer
599 views

Raspberry Pi 4: Owncloud docker with external hard disk and permission problem

I'm having problems using owncloud docker with external hard disk on a Raspberry Pi 4. The OS version I'm using is the following: PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="...
andreedo's user avatar
1 vote
0 answers
20 views

Remember site permissions

I have a javascript page on a website that needs access to a USB port on the PI. When I open the page I can grant permission to the site to access the USB port. But the browser does not remember that ...
Eamon's user avatar
  • 11
1 vote
2 answers
43 views

Apache2.4 reports file not found even with chgrp & chown www-data and updated alias.conf and 000-default.conf

I'm running the latest raspbian with latest updates and upgrades, and of course, apache2.4. I'm trying to access files and folders in /var/tmp/ but keep getting AH00128 file not found with error codes ...
NewtownGuy's user avatar
0 votes
1 answer
556 views

serial0 owned by root, changes back to after reboot

trying to follow some tutorials about accessing serial ports, I kept getting a permission denied error for /dev/serial0, and the common solution seemed to be to add the user to the dialout group... ...
dangelsaurus's user avatar
0 votes
2 answers
2k views

Can't use mkdir unless sudo is used

I lost my ssd on my pi and had to buy a new one, when installing the lite version of the OS I used the imager tool to create a "pi" user, since it does not do it automatically anymore. But ...
Rafael Carvalho's user avatar
0 votes
1 answer
707 views

How to edit the /etc/shadow file in the SD card from another computer?

I have a Raspberry Pi for which I forgot the password. I want to do this to get access. So I removed the SD card and now have it in another machine (running Ubuntu). I can navigate to /media/...
user171780's user avatar
-1 votes
3 answers
1k views

How can I write enable the /boot folder so I can easily share files between my PC and my Pi?

If I put the Pi SD card in my windows PC, its easy to transfer files to the boot drive. These files can seen in the Pi in the /boot folder. However I want to transfer files back to the PC from the Pi ...
Mark N Hopgood's user avatar
-1 votes
2 answers
2k views

how to give a program permission to run without sudo?

I have a program, I wrote called "enc".The program is written in C, and reads GPIO pins, and thus requires sudo to run. but I don't want it to require sudo or a password to run. I tried sudo ...
j0h's user avatar
  • 2,473
0 votes
1 answer
154 views

Permissions issue using hard drive [closed]

I am new to using raspberry pi. I've wrote a script in python that takes images and stores them in a connected hard drive, in a directory that is created by the script. When trying to open the files ...
texydo's user avatar
  • 9
0 votes
1 answer
1k views

Motion does not have write access permission to target directory

Up until May 2021, motion was working successfully on my Raspberry Pi 4. After May 2021, when motion is running and my web camera is enabled, as soon as it detects any motion, the camera disables ...
jimjamz's user avatar
  • 73
0 votes
1 answer
731 views

I accidentally removed read, write and execute permissions from the root ("/") directory

I hope you have a solution for that: I wanted to remove permissions to a specific folder with: sudo chmod -rwx ./ But instead I had executed: sudo chmod -rwx / so I had removed all permissions to ...
fouderix's user avatar
1 vote
1 answer
582 views

WS281x library cannot access /dev/mem without root

I get this error from the rpi_ws281x library when trying to run as user pi (this is a java wrapper around the library): 16:43:59.060 [main] INFO com.github.mbelling.ws281x.Ws281xLedStrip - LEDs count:...
0__'s user avatar
  • 502
1 vote
1 answer
3k views

How to create a linux user group that grants access to USB devices?

How can I create a new user group that will grant the group members access to USB devices connected to the system? a.) to all connected USB devices? b.) only to USB devices with VID=0x1234? c.) only ...
mTThomas's user avatar
1 vote
1 answer
156 views

OpenCV can't capture frames on production server (Nginx + uWSGI) on Raspberry Pi 4

I'm building a production server on Raspberry Pi 4. Web app is written in Django. I used uWSGI as an application server and Nginx as a reverse proxy. I followed many tips from Digital Ocean. One of ...
Artur's user avatar
  • 111
0 votes
2 answers
1k views

Block /etc/wpa_supplicant/wpa_supplicant.conf from non root users but still allow all users to connect to that ssid

How do i block /etc/wpa_supplicant/wpa_supplicant.conf from non root users but still allow all users to connect to that ssid? For example if I have a hidden network called xyz with password 1234secure....
jtlindsey's user avatar
  • 105
0 votes
1 answer
545 views

new pi & new hdd ext4 messes up permissions and owner on reboot

I have a new hdd powered with external power plug It is attached to the usb 3.0 (new Pi from shop also) hdd is ext4 problem: I mount the hdd on the pi, fine. then I write some files, fine. then I ...
Ben Muircroft's user avatar
0 votes
2 answers
902 views

Which user is used to authenticate with the NFS server when mounting in fstab?

I'm trying to wrap my head around connecting my Pi2B to a NAS using NFS. In this answer, @Ingo wrote. As customary then you mount to nfs shares with entries in /etc/fstab. This line in your /etc/...
serialhobbyist's user avatar
0 votes
0 answers
392 views

NFS client access denied

I created a basic NFS share on my RPi4 following the RaspberryPi doc and PiMyLife tutorial. First, installed nfs-kernel sudo apt-get install nfs-kernel-server -y then, set permissions sudo chown -R ...
markfree's user avatar
  • 181
0 votes
0 answers
315 views

pi samba share permissions

So my current project is to have a full node bitcoin core on my pi4 currently following this guide: Bitcoin node guide In this guide they reference an external hdd for the blockchain as currently the ...
Technology Researcher's user avatar
0 votes
1 answer
1k views

how to enable pcmanfm to copy paste in directories that say "permission denied" [closed]

I need to enable pcmanfm (aka file explorer) to copy and paste from all directories for programing purposes. Can anyone tell me how to do this?
UNKNOWN's user avatar
  • 79
2 votes
2 answers
4k views

Error copying files permission denied | using the sudo command

I am trying to install the pipedream cli onto my pi and when I run the installer script as sudo I am getting a permission error saying it can't copy any files into /usr/local/bin/pd The error I am ...
user13862056's user avatar
0 votes
1 answer
3k views

PermissionError: Permission denied

I have a python program that imports gopigo. If I run the program under my user it works fine. I need to invoke it from shairport-sync service. when I do that I get the following error: Jul 27 19:35:...
Hankp's user avatar
  • 1
2 votes
1 answer
145 views

When uploading from WinSCP: How to mount an external samba drive to give all users write and file rename permissions? [closed]

I have a raspberry pi behind a Fritzbox router that also doubles as a nas with a drive connected via USB. I have mounted the nas to the pi's "/media/fritzbox-usb" directory and would like ...
576i's user avatar
  • 229
0 votes
2 answers
2k views

How to mount (and keep) a NTFS HDD with RW permissions

I have the Raspberry Pi 4 Model B, I've installed Raspbian OS using NOOBS. Everything works fine until I plug in my NTFS HDD via USB, the hard drive is detected and mounted automatically, but with RO ...
AdamWHY2K's user avatar
0 votes
3 answers
480 views

Configure Pi4 to create files in root of mounted Samba share

I cannot create files and directories of the root folder of a mounted Samba share on my Pi4. I am 98% certain that this is a client-side issue with the Pi4 and not a server configuration problem for ...
cjm's user avatar
  • 101
1 vote
1 answer
564 views

Rasbian WebDav-Client davfs2: Create folder successfully, but files won't

Dear specialists :) , I got a lot of help during the last month from this forum but this time I can't find the right thread. Problem: I had connected a WebDav-Connection to the https://dav.mailbox....
Daniel's user avatar
  • 21
1 vote
1 answer
2k views

How to record to NAS from TVHeadend running on Raspberry Pi 4

Sorry if I unintentionally transgress any forum etiquette - in all my time looking for answers to questions I have been able to get there through searching and have never actually had to post a ...
David Chatterton's user avatar
0 votes
1 answer
2k views

Unable to copy to SMB from MacOS

I'm in the process of setting up a shared folder on my Raspberry Pi and am having a hard time figuring out the issue with some of my permissions. I set up my smb.conf file as such: [content] Comment =...
Josh's user avatar
  • 101
0 votes
2 answers
6k views

Unwritable file

I'm trying to edit the terminal on my Pi and whenever I edit my terminal with the command nano /boot/config.txt this comes up: nano /boot/config.txt unwritable Whenever I try to exit and try to ...
John Doolan's user avatar
1 vote
1 answer
3k views

Permission denied on executing script

I can't execute a script. I'm struggling with this. OS version and hardware model I'm on Raspbian GNU/Linux 10, Raspberry Pi 3 Model B. Devices When I call lsblk I get: $ lsblk NAME MAJ:...
user avatar
0 votes
1 answer
389 views

ssh Permission denied // RPi 3 Model A+ macOS Mojave

I'm trying to access my RPi 3 Model A+ from my mac (Mojave) through ssh. They're both connected to a 5GHz wifi. From the mac terminal, I type the RPi ip address, then the default password raspberry , ...
cecilia's user avatar
  • 15
3 votes
1 answer
3k views

PIGPIO without sudo

I am working on setting up an automated deployment of an executable using the PIGPIO C bindings to a Pi Zero. I copy the executable to the pi (into a directory on pi user's desktop) as expected, but ...
RedBassett's user avatar
10 votes
3 answers
8k views

Sudo permissions disaster

I just got a Pi-4. I'm not sure if I did something wrong while setting it up, but after getting it running I noticed that sudo commands required no passwords. I tried to change this, following some ...
Absurdistan's user avatar
2 votes
0 answers
211 views

User does not have permissions to directory

My raspberry 3 is running amule using amule user, but I cant set the directories I want for incomings and temp files in a pendrive. Each time it goes back to the default directories. I did sudo chmod ...
John Lapoya's user avatar
4 votes
1 answer
11k views

Permission denied to access `/media/pi` folder

I connected a HDD to USB port, then Raspbian allow me to mount the unit. So I can access to logical drive with this path: /media/pi/PICTURES-HDD. Then I installed a DLNA server (serviio) to view the ...
riofly's user avatar
  • 143
1 vote
1 answer
903 views

Changing ownership of root directory effects

Plugged in a the sd card of Raspberry Pi to my computer, I wanted to move files to the /root directory. Since it is owned by root user and permissions of drwx------. I had to do chown -R myuser:myuser ...
admin's user avatar
  • 147
1 vote
2 answers
2k views

Can't connect to RPi4 from Windows 10 (SSH,RDP, VNC, HTML)

I recently was attempting to connect to my RPi via SSH & Remote Desktop. After several failed attempts from accessing it from windows, I attempted to access it from my Android phone on the same ...
D K's user avatar
  • 21
2 votes
1 answer
1k views

Unable to set GPIO even as root

$ echo "1" > /sys/class/gpio/gpio17/value echo: write error: Operation not permitted Doing sudo -i to log in as root ends up the same. $ ls -ll /sys/class/gpio/gpio17/ -rwxrwx--- 1 root gpio 4096 ...
Ace of Spade's user avatar