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
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 ...
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 ...
0
votes
2answers
413 views

Permission denied on everywhere

I am using debian os on pi3 and I completely lost the control of device. I messed up when I try to chmod on some folder. Here is what I did. I was already at: /var/www/html so i wanted to chmod the ...
1
vote
1answer
2k views

Sudo not working - No valid sudoer sources found

After mistakenly changing the permissions of the /etc/ folder to 777 in-order to modify files, I have been getting this error when using the sudo command and this results in commands not working ...
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/...
1
vote
2answers
618 views

Headless Torrent Server - Permission Denied

UPDATE 1: The permissions are currently set as follows: pi@raspberrypi:~ $ sudo service transmission-daemon stop pi@raspberrypi:~ $ sudo mount -o uid=pi,gid=pi /dev/sda1 /mnt/external_drive/ pi@...
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
940 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). ...
1
vote
1answer
2k views

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

JDownloader: “Invalid download directory” error

I've just set up JDownloader on my Raspberry Pi 2 and I'm getting an annoying error: Invalid download directory. I have to mention that I've attached a 500GB external hard drive to the raspberry ...
14
votes
2answers
50k 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 ...
0
votes
0answers
1k views

Best way to access GPIO through a nodejs script - without root

I'm building a web dashboard for a temperature sensor. The page is served by node.js, and the sensor connected to GPIO is accessed by a Python script, which is run by node.js. Relevant code: var ...
0
votes
2answers
5k views

calling Python script with GPIO module over apache2 web server

I have test.py file, and it contains GPIO module commands: #!/usr/bin/python import RPi.GPIO as G import time G.setmode(G.BCM) G.setup(18, G.OUT) G.output(18, True) time.sleep(3) G.output(18,...
0
votes
1answer
2k views

./configure Permission denied - Compiling Qt

I'm new to Linux/Rasperry Pi and I was following this tutorial to create a native build of Qt. I got up to the ./configure step. But this gives me the error: bash: ./configure Permission denied I ...
1
vote
1answer
497 views

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 ...
1
vote
0answers
162 views

How do you use GPIO output with RPi and Google Coder?

I am trying to set up the "Blinky Lights" project with Google Coder v0.9. I have used the code from the example project, unaltered, as well as setting up my breadboard exactly as the instructions ...
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 ...
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, ...
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 ...
1
vote
1answer
3k views

Owncloud fails to create data folder

I'm trying to set up Owncloud on my Raspi following this howto: http://tech-blog.clericare.com/2013/08/how-to-deploy-owncloud-with-postgresql.html The Raspi should serve as an Owncloud server, a print ...
1
vote
0answers
604 views

Why is my usb flashdrive automatically mounted, without fstab?

I plugged in a usb storage device for the very first time, and it automatically mounted the FAT32 partition called "HMN"? At first i was pleasantly surprised, but it's mounted as root. Q: How can i ...
1
vote
1answer
1k views

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

How to make folders writable? [closed]

I just installed apache2 and wordpress on my RPi. I followed this tutorial. But after successful installation, I moved on to customization, but unable to upload any images, etc. I receive the ...
0
votes
0answers
377 views

Npm Install failes von raspbian

After installing node.js on a playground raspberry pi, i'm able to run node.js scripts. Now i had a folder which a packages.config which contains a dependency to express.js when running npm ...
0
votes
1answer
16k views

Permission denied, logged in with root user [closed]

I used root user to change a something in my directory and I typed in sudo -i followed by /etc/hostname and it says -bash: /etc/hostname: Permission denied
0
votes
0answers
158 views

Unable to share attached hard drive with samba

I've been looking at a number of different tutorials for sharing my attached external hard drive over my network, and can't seem to get any to work. Currently I have /home/pi accessible from my ...
1
vote
1answer
3k views

Permissions & Scripts

I am trying to run camera.sh which I made executable by chmod 755 camera.sh It works okay, but when I run it I get the error... root@raspberrypi:/home/pi/timelapse# ./camera.sh -bash: ./camera.sh: ...
8
votes
7answers
81k 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/...
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 ...
0
votes
1answer
13k views

/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 ...
2
votes
2answers
144 views

folder permissions changeing and i don't know why

I have a Python script that moves files from a folder on my pi to a mounted network drive folder, linked to a Box account. The script seems to intermittently stop moving the files, and on further ...
1
vote
1answer
1k views

Motion web control interface - which motion.conf file does it use?

When i use the web interface (mmaltest) on motion it doesn't appear to change the operation of motion. It remembers the values i change on the web interface, so looks like it's working, but is's not ...
1
vote
3answers
983 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 ...
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 ...
0
votes
1answer
73 views

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. ...
2
votes
2answers
104 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 ...
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" ...
0
votes
2answers
224 views

Only write to directory when USB is mounted

After following this answer a while back I have now run into some problems. My situation: I have a USB-HDD set up to get mounted to a directory on my SD card using fstab. Using the Raspebrry Pi ...
0
votes
2answers
2k views

Under what user is apache being run?

So I am trying to set up owncloud and the tutorial I've been following tells me this: Let's assume your apache runs as "www-data" (as it e.g. would under Ubuntu). Then you should change all files ...
1
vote
1answer
2k views

Motion save to usb hdd - no permissions [closed]

I'm wanting to use my Pi as a dashboard camera and I'm wanting motion to save its files to the usb but it doesn't have permissions to save to it. The usb is currently FAT32 so I can plug it into a ...
0
votes
1answer
2k views

How do I change the default permissions for device files (e.g. a gamepad)?

I have a gamepad that I am interested in using with the Pi. When I plug it into my development laptop running Lubuntu 13.04, I get the following: 418476 crw-rw-r--+ 1 root root 13, 0 Oct 12 22:55 ...
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
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 ...
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 ...

1 2
3