What's the deal with Deno? We talk with a major contributor to find out. Listen now.

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
2
votes
2answers
82 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 ...
0
votes
1answer
109 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:...
1
vote
1answer
22 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 ...
0
votes
2answers
63 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 ...
0
votes
3answers
50 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 ...
1
vote
1answer
93 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....
0
votes
1answer
151 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 ...
0
votes
1answer
54 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 =...
0
votes
0answers
19 views

How to allow other admin to manage systemctl

I have a pi 4b. I added a new admin as explained in https://www.raspberrypi.org/documentation/configuration/security.md, it has access to all those groups. I locked the pi user: sudo usermod --lock ...
0
votes
2answers
79 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 ...
1
vote
1answer
60 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:...
0
votes
1answer
50 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 , ...
1
vote
1answer
196 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 ...
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 ...
2
votes
0answers
28 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 ...
0
votes
0answers
18 views

Is it possible to access an Android Phone's volume permission and control it with RaspberryPi?

I want to have a wireless network using RaspberryPi where it connects with an Android phone, accesses its volume permission and turns it down. Any inputs on how to go about this?
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 ...
1
vote
1answer
54 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
2answers
394 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 ...
2
votes
1answer
95 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 ...
1
vote
1answer
136 views

Run forever task as root in init.d script on startup

I'm trying to start a nodeJS Server on Raspbian on startup. Everything works fine with this script: #!/bin/sh #/etc/init.d/myService ### BEGIN INIT INFO # Provides: myService # Required-...
1
vote
1answer
121 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, ...
0
votes
1answer
88 views

Unable to create/delete files/folders from external hdd enclosure

I'm trying to write files to an external hard drive in an enclosure holding 4 drives, thru usb. It won't let me do anything with the drive, saying "permission denied", and I can't format it. I've got ...
0
votes
0answers
242 views

php file not executing python script when called through browser

I have an apache2 webserver running on the pi. I have a php file that uses exec() to run a python script. Everything works well from the command line. when loaded through the browser, the exec() ...
1
vote
2answers
2k 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
1answer
284 views

Allowing a venv instance of Python access to I2C

I'm trying to run a python script using the adafruit_bme280 library to read a couple of sensors and display the data on a flask-generated page. I've gotten it to work outside of a venv virtual ...
0
votes
1answer
363 views

Permission denied error when using apt and apt-get as root on raspbian

I keep getting an error when I use apt or apt-get as a root user or using sudo with the default pi account. Ign:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease Ign:2 http://archive....
1
vote
1answer
10k 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
votes
2answers
749 views

Raspberry Pi Desktop, Guest Additions: Access denied under root

I've been trying to install Guest Additions for Raspbian Desktop on VirtualBox hosted on Linux. The script won't run even under root. How is it possible?
1
vote
1answer
74 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 ...
0
votes
0answers
65 views

Trying to configure two USB drives for Samba server, permissions allow access to one but not the other on PC?

On my raspberry pi 3 that has Samba and Ntfs-3g running Raspian I have two USB drives mounted to two folders (from lsblk) Then I have added the following code to the bottom of the samba configure ...
0
votes
0answers
81 views

Permision denied error using paho mqtt and Adafruit 32x32 led matrix

I am writing to you because I have the following problem: I have generated a code that allows controlling a 32x32 RGB led matrix through mqtt (AWS IoTCore) using a RPi Zero W with an Adafruit RGB ...
0
votes
0answers
124 views

FTP file upload through Dreamweaver

Trying to edit files over FTP in Adobe Dreamweaver 2019. I've set the permissions to 755 in /var/www/html/ using -Rfv. Now, whenever I go to save a file I am greeted with this: An FTP error occurred -...
1
vote
0answers
147 views

How to run a graphical program from a restricted user

I have two users. admin can see everything. pi is restricted. I have a tkinter python application. pi must be able to run the program, but it cannot read any of the files directly. There is a data....
1
vote
1answer
158 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 ...
0
votes
1answer
448 views

Setting a mode to a pin requires root permissions

I’m trying to change pin mode on RPI (with Raspbian) – it works when I invoke those commands sudo chown root.gpio /dev/gpiomem sudo chmod g+rw /dev/gpiomem but after every restart I have to execute ...
2
votes
1answer
1k 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 ● ...
0
votes
1answer
438 views

Permission problems with Transmission

EDIT 2: User Dougie already suggested this. Didn't notice it. EDIT: I found a solution through NFS. On my Zyxel NAS326 I created a NFS share and gave right to access to it for my whole home network ...
0
votes
1answer
64 views

Stop Linux terminal running as root

I was trying to set my GUI working on autorun boot through several methods (system, LXDE etc) but I think I screwed it up as none of them worked really. I must have mixed some commands up. Right now,...
0
votes
1answer
44 views

Can't access mounted HDD if I have't logged into Raspbian/Pixel Desktop first

Well, I'm a bit confused, so please, bear with me: I have a Pi3 with Raspbian (huh, the latest one, can't remember the name) and an external HDD plugged to it. I've been doing tests and reading stuff,...
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: ...
2
votes
1answer
181 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). ...
1
vote
3answers
468 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
4answers
48 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
1answer
252 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 ...
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 ...
0
votes
1answer
280 views

WARNING: Can't Create a List File '/var/www/html/file_here.xml.tmp': Permission denied

land@ns331252:/var/www/html$ ls -al total 24 drwxr-xr-x 2 root root 4096 Aug 5 02:39 . drwxrwxrwx 7 root root 4096 Aug 6 07:27 .. -rwxrwxrwx 1 land land 8839 Aug 5 02:39 file.here.txt -rwxrwxrwx 1 ...
2
votes
0answers
786 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 ...
0
votes
3answers
110 views

Apache permissions on local network [closed]

I'm playing around with some automation for my home and have setup Apache and MySQL on my Pi along with a basic web page to control some pins on the Pi. I am wanting to set permissions on the whole /...
1
vote
3answers
650 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 ...