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.
Questions tagged [permissions]
170 questions
23
votes
5 answers
How can I permanently fix /dev/vchiq permission errors?
I am working on writing a graphical application that uses the Pi's GPU, and I constantly get * failed to open vchiq instance errors when running my programs. This is usually fixed by a sudo chmod 777 /dev/vchiq, but (1) this is a very insecure fix…
fouric
- 1,809
- 4
- 18
- 26
16
votes
2 answers
How to start Motion in daemon mode on RPi running Raspbian Jessie
I have recently get to set up motion with my RPi but I have a problem which is simple one one hand, but, on the other, can’t find any step-by-step instructions to remedy it.
Although I have successfully set up motion and works, after I've made all…
gtj
- 161
- 1
- 1
- 4
10
votes
3 answers
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 advice I found here:
How to change user pi sudo…
Absurdistan
- 111
- 1
- 4
8
votes
2 answers
Can't edit files on SD card
I'm attempting to edit the files on a SD card containing Raspbian on a Dell XPS 13 machine running Ubuntu. It doesn't have an internal SD card reader, so I use an external one.
When I plug in the SD card both partitions show up, but I'm not able to…
hellocatfood
- 267
- 4
- 10
8
votes
7 answers
Mount NFS Folder share on RPi from a synology NAS
I would like to mount a NFS folder share from my Synology NAS on my RPi. So far, all my efforts have been unsucessful.
I get stuck on :
pi@raspberrypi ~ $ sudo mount -t nfs 192.168.0.100:/volumes1/Movies /mnt/Movies
mount.nfs: access denied by…
cgasp
- 183
- 1
- 1
- 6
8
votes
1 answer
How to write to files in /var/www (after installing lighttpd)
I've just successfully installed lighttpd, but I've stumbled at the first stage when trying to create my own HTML file. I try to write to /var/www but I get permission denied. I've got a feeling it's to do with the ownership of /var (root:root), but…
Mark Ingram
- 889
- 3
- 11
- 18
6
votes
5 answers
How to allow I2C access for non-root users?
How do you allow non-root users to access I2C on the Raspberry Pi 2?
I've compiled this code for accessing an MPU6050 sensor via I2C, and it works perfectly, but only when I call it via sudo.
I tried adding the pi user to the spi and i2c groups, and…
Cerin
- 2,291
- 8
- 33
- 49
5
votes
3 answers
What is the purpose of group "staff"?
What is the purpose of group "staff"? Interestingly, note that the set user or group ID on execution (s) bit is set.
michael@greenbeanDev:~ $ ls -l /usr
total 72
drwxr-xr-x 2 root root 28672 May 26 13:10 bin
drwxr-xr-x 2 root root 4096 Jan 7 …
user1032531
- 327
- 1
- 5
- 12
5
votes
4 answers
Set permission for /dev/ttyAMA0 on boot
For some reason in Raspbian (Jessie) /dev/ttyAMA0 always boots with the following permissions:
ls -l /dev/ttyAMA0
crw--w---- 1 root tty 204, 64 Jun 1 21:10 /dev/ttyAMA0
I need group tty to have read access, so emulating this solution I tried…
geotheory
- 575
- 3
- 10
- 20
4
votes
1 answer
How to fix the systemd file permissions?
I have a raspberry pi python3 program "monitor.py" that works from the terminal
But it fails to run when I start it from boot.
Check status:
pi@raspberrypi:~ $ systemctl status monitor.service
● monitor.service - Service to start monitor in…
Gerard Gilliland
- 147
- 2
- 6
4
votes
1 answer
ssh: Permission denied, please try again
I have just installed raspbian on a Raspberry Pi 1 Model B, and I am trying to connect it via ssh.
I enabled 'ssh' via 'raspi-config', changed the password of 'pi' user from the default to another new one, and I tried from another PC:
# ssh…
Hookstark
- 141
- 1
- 3
4
votes
1 answer
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 when I try to run it, I get a permissions…
RedBassett
- 141
- 1
- 3
4
votes
1 answer
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 HDD content from TV, smartphone, notebook...…
riofly
- 143
- 1
- 1
- 6
3
votes
3 answers
Cannot mkdir unless sudo is used
I am accessing my Pi through SSH and I noticed that I cannot mkdir anywhere. not even in my own home folder ~/!! Unless I sudo.
I checked the owner and permission of my folder. it is as follow:
drwxrwxrwx 9 pi pi 4096 Aug 13 10:22 pi
everything is…
40pro
- 175
- 6
3
votes
3 answers
Pi 3 error on motion status ffmpeg_set_outputfile: permission denied
I have a Pi 3 with Stretch on it and I'm trying to get Motion to work correctly. In particular I want it to stream to a browser that I'll be able to access. I was able to successfully get the stream to work once. So it's not an issue with the…
Steven
- 31
- 3