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.

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
1
vote
1 answer

User unable to add/remove programs through package manager

I added a user to my Pi and thought I set him up like the original pi user. I added him using adduser -a -G and assigned him all the groups assigned to pi through usermod. He seems to be able to do everything through the command line using sudo but…
1
vote
1 answer

vsftpd permissions trouble

So, I got my Raspberry Pi 2 yesterday, installed nginx, php and vsftpd. nginx was running, PHP files were processed and served, I could connect to FTP, so I thought everything is fine and left it there. Today, I decided to start NetBeans and do some…
ROAL
  • 113
  • 1
  • 5
1
vote
1 answer

How can I make ftp created files have the correct permissions for www-data to read

I am using the pi user for FTP and have used the command chown -R pi /var/www to give pi ownership over /var/www. This allows pi to edit and read the files and folders. I also used the command chmod 755 -R /var/html to allow www-data to read the…
1
vote
1 answer

Cannot execute binary file from USB drive

I wrote a small program in C, that compiles without errors or warnings. Testing the program on other systems worked perfectly. I was a little surprised then to see that I could not execute it on my RPi (v1 model B). I have confirmed that the…
Jacobm001
  • 11,898
  • 7
  • 46
  • 56
1
vote
1 answer

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 to /media/myuser/rootfs. Does this affect…
kleo
  • 147
  • 1
  • 6
0
votes
0 answers

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 - cannot put admin.html. Access denied. The file…
runnerbeany
  • 101
  • 1
0
votes
2 answers

How to find out if you are the Administrator

I am running a Raspberry Pi 3 Model B and I am trying to find out what my administrative privileges are. When I start up the pi I have started it in the standard mode after boot. I have not changed any settings at all or removed or installed any…
Jake Symons
  • 123
  • 1
  • 10
0
votes
1 answer

Read Protect SD Card

If I access the Pi-SD from Ubuntu I can read all files which belong to pi. But I cannot read the files which belong to root. Can I make all the files of pi similar unreadable to Ubuntu (or any other OS). I would like to keep the file/folder…
Andi Giga
  • 543
  • 1
  • 7
  • 17
0
votes
1 answer

/etc/rc.local not executable

After wondering why my startup wasn't going as planned, I found that the rc.local file isn't executable. Is this so by default? I've searched, and haven't heard that the default is not. I have no knowledge of changing it, and wonder how it could…
user1032531
  • 307
  • 1
  • 5
  • 10
0
votes
1 answer

/var/www alter default directory and file permissions

I've set up my apache2 server along with vsftpd. A shortcut to the /var/www folder is in /home/pi and I've taken ownership of the folder using: `sudo chown -R pi /var/www' When files are uploaded via FTP they are set to permissions: 600 But when…
Chris
  • 1
  • 1
  • 1
  • 1
0
votes
0 answers

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 run the python program with sudo), and I want…
hawk
  • 101
0
votes
0 answers

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/ is owned by me:me. I scp'd a Sqlite database to…
zarac
  • 1
0
votes
1 answer

Changed permissions of /usr

Being the noob that I am, I seemed to have changed the permissions of /usr not knowing the consequence of that action. That's pretty much locked me out of my system, not allowing me to do anything. Reading up more on this, it sounds like a very…
0
votes
2 answers

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. I connect to that ssid from the admin account.…
jtlindsey
  • 105
  • 5
1
2