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
21
votes
5answers
32k views

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 ...
13
votes
2answers
49k views

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 ...
11
votes
2answers
6k 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 ...
8
votes
7answers
80k views

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/...
8
votes
2answers
3k views

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 ...
8
votes
1answer
9k views

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 ...
7
votes
3answers
9k views

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 ...
5
votes
3answers
4k views

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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
2k views

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 ...
3
votes
3answers
1k views

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: ...
3
votes
2answers
518 views

Issue with multi-user NAS setup

I want to build a NAS server with multiple users. To test this I created 2 users, pi and pi2. The external drive is mounted in /media/pi. Here is the ls -al output: drwxrwx--x 4 pi nasusers 4096 ...
3
votes
4answers
16k views

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 ...
3
votes
2answers
544 views

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 ...
3
votes
1answer
1k views

Being denied access to my usb drive in console mode

I am trying to access the usb stick that I use for storage on my Pi, PI_USB. I am able to access it while using startx, but I am denied permission while in console mode. In the terminal, I typed in ...
3
votes
0answers
1k views

Permission issues using sickrage and transmission

I've setup transmission and sickrage to automattically download series. This went well, however when Sickrage tries to move the files, it gets stuck and the logs say: 2016-07-25 16:10:13 POSTPROCESSER ...
3
votes
0answers
5k views

External Hard Drive with HFS+ file system mounted read only in OSMC

I used this hard drive with Raspbmc with no problems, but since I updated to OSMC, this seems to mount the disk as read only. I need to change some permissions and modes and I get this message: chmod ...
2
votes
2answers
160 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 ...
2
votes
1answer
2k views

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 ● ...
2
votes
1answer
197 views

What's wrong with this wpa_suppplicant.conf file?

I have an original wpa_supplicant.conf file which I tried to add a new network. Both have same owner (root) and same permissions 644. I just added one more network at the end (just for testing). ...
2
votes
2answers
103 views

Read files from external disk through command line after login?

I wrote a pygame program that acts like a mp3 player on Raspberry Pi, and I want it to run from startup, which I accomplished by adding python Music.pyw to the bottom of .bashrc This works fine, that ...
2
votes
2answers
3k views

Python pigpio 'no permission to update GPIO'

I am trying to run the following code on my Raspberry: import pigpio import fileinput pi = pigpio.pi() ### Define constants pwm_range = 255 pwm_clock_div = 8 left_motor_dir_pin = 35 ...
2
votes
1answer
85 views

Bas rights on a folder when I automount an hard drive

I want to automount an hard drive when my raspberry pi zero starts. The commands works but I can't write in the folder because I don't have permission even if I use sudo. I can only read. I already ...
2
votes
1answer
441 views

User cron job permission denied to directory owned by the user

I am using Raspbian Jessie. I have a cron job for pi user as follows: SHELL=/bin/bash @reboot /path/to/execute_script.sh The script I am executing involves creating directories on a mounted USB ...
2
votes
1answer
1k views

Cannot delete file created using bash script

I'm having a problem with file permissions... Iv'e got a python program to automatically take pictures using fswebcam (by running a bash script using subprocess.call). however when i try to delete ...
2
votes
1answer
121 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 ...
2
votes
1answer
2k views

Transmission daemon stopped working - owner or permission issue?

Suddenly I'm having issues starting downloads. I'm using : sudo service transmission-daemon (start/stop/restart) I looked at /var/log/daemon.log and found an error: Couldn't save temporary file "/...
2
votes
1answer
1k views

Accessing pwm module without root permissions

I am trying to use the hardware PWM module on my pi 3 by writing to the /sys/class/pwm/pwmchip0 directory (which I think is just a symbolic link to sys/devices/platform/soc/3f20c000.pwm/pwm/pwmchip0). ...
2
votes
1answer
724 views

Kivy buttons don't work when launching app with 'sudo python'

So I was having a permissions problem earlier and was going through different methods to try and solve it. Ultimately I solved the issue, but now the buttons in my Kivy app no longer work when pressed ...
2
votes
0answers
33 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 ...
2
votes
0answers
842 views

Permission Denied as root when connecting BluetoothSocket with Bluez 5.43

I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle. I installed Bluez 5.43 for python 2.7, and was able ...
2
votes
0answers
1k views

Set permissions and group for /dev/gpiomem permanently [duplicate]

I need to allow my user access to the GPIO pins and found following solution. Access GPIO pins without root. No access to /dev/mem. Try running as root! This works perfectly. All I need to do is ...
2
votes
0answers
2k views

Can't start Transmission as user Pi

Goal I have a Raspberry Pi 3 with Raspbian and I want to make it a torrent seedbox by using Transmission. I followed all kinds of guides on the internet to solve problems I had on set-up and now ...
2
votes
2answers
924 views

PHP Script to Change DHCP Configuration

I have installed Apache2 on my Raspberry Pi, and installed the php5 module. The webserver works as expected. First i have coded a small php script to parse the dhcpcd config file (/etc/dhcpcd.conf). ...
2
votes
2answers
1k views

How to get write access to an sd card which already has an image burned onto it.

I have an old sd card with a pi image burned onto it. I want to burn a different image onto the card but I cannot get write access to the sd card. I've tried changing owners, permissions, fdisk, ...
1
vote
1answer
1k views

Why won't my systemd execute?

I get this error message when I try to run systemd: Failed to create /user.slice/user-1000.slice/session-c2.scope/init.scope control group: Permission denied Failed to allocate manager object: ...
1
vote
1answer
277 views

Trouble with changing owner group of a windows shared folder from root to pi

I have mounted a windows shared folder to a raspberry pi directory using sudo mount.cifs ip_address_windows_machine/folderpath /home/pi/shared_folder -o user=MY_USERNAME,password=MY_PASSWORD The ...
1
vote
1answer
11k views

Error reading lock file /etc/.rc.local.swp: Not enough data read

I was able to access rc.local just a little bit ago and now it wont let me. I cant even delete the swp file due to permission issues. Im not sure where to go from here, the error i get when opening ...
1
vote
1answer
77 views

Why is /boot/config.txt executable?

FYI, I installed the R-PI minimal image with dd myself onto an sd card I was messing with the boot config when I realized that this file was set as executable. Looking at the config, I don't see why ...
1
vote
1answer
164 views

GPiO setup works from shell, but not from script or C code

May be not the right place, but ran again that on the RPi platform. I want to have - say - an output on the RPi. I'm user pi. I'm in gpio group. I say 'echo 26 > /sys/class/gpio/export'. Works. I ...
1
vote
4answers
49 views

Trying to write to a file from a script. Hitting unexpected permission issues

I am trying to write a script to edit systemd files. On the CLI I can use the command: sudo systemctl edit test.service That opens a text editor, I make the changes and save no problems. In a bash ...
1
vote
3answers
965 views

Minecraft Pi Permissions

The Pi version of Minecraft comes as an executable. I downloaded Minecraft on a Mac, copied it to a micro-SD, then copied it to the Pi. Every time I try to run the executable it says "permission ...
1
vote
2answers
2k views

Issue with owncloud and btsync

I was successful in installing and setting up owncloud but I am having problems setting up btsync. After reading tutorials it was suggested to install and use btsync and owncloud to make a "dropbox" ...
1
vote
1answer
68 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 ...
1
vote
1answer
136 views

How can I require root privileges for invoking 'gpio' from WiringPi?

I removed my user from the gpio group, logged out and back in. I can still run e.g. gpio write 25 1. I see from this answer how the memory mapping and permissions changed between Jessie and Stretch, ...
1
vote
2answers
3k views

Permission denied using Serial

I'm using some XBee to build a mesh network and everything is working, BUT only if I run the code using sudo. Now that the code is "Finished" i want to remove this need, because i know that it isn't ...
1
vote
3answers
531 views

/boot/wpa_config being copied with wrong permission

I plug the micro SD into my MacBook. I then save a correct /Volumes/boot/wpa_supplicant.conf with file permissions with 777 (default when creating files into the FAT partition). Then, when I move back ...
1
vote
3answers
684 views

Error on changing permissions in serial port

I have been trying to find a solution for 2 days but I wasn't able to find one. I want to change the permission of the /dev/ttyAMA0 but seems to be impossible. I tried with sudo chmod 777 /deb/ttyAMA0 ...
1
vote
1answer
2k views

Transmission: access denied

I installed transmission on my raspberry pi and set it up to download directly onto a mounted external hdd. The drive is mounted using following fstab entry: /dev/sda1 /mnt/old ntfs ...
1
vote
1answer
74 views

compiled btrfs into kernel: even as root: could not get lock /var/lib/apt/lists/lock: Permission denied

I have installed the latest raspbian on /dev/sda1, root filesystem is btrfs. So I had to recompile the kernel and compile the btrfs module into the kernel. For that, I used the latest raspberrypi/...