2
votes
1answer
18 views

How can I set device rw permissions permanetnly on raspbian?

Im using Raspbian (distribution made for Raspberry Pi based on Debian). I have some scripts that use i2c. Normally only root has read and write permissions for i2c. Im using this command to add i2c ...
0
votes
2answers
111 views

Can I change devices permissions with chmod?

Before read: I don't want to use any udev rule. I need to change (programmatically) the permissions of some device. But first in order to underestand what I have to do (in code) I want to make the ...
0
votes
2answers
441 views

Allow non-root user to read/write /dev files

In my /dev folder, I would like the following files to be user readable and writable: /dev/ttyUSB0 /dev/gpib0 How do I do this without using chgrp? I can edit /etc/udev/rules.d but I do not know ...
3
votes
2answers
157 views

Permissions to print directly to USB printer

I've a netbook with Linux. I've a usb/serial printer and I added the line chmod 666 /dev/tty* to rc.local and it prints straight after a reboot. When I close the lid of a netbook for a while and then ...
1
vote
1answer
552 views

“Permission denied” when writing to /dev/stdout

Why cannot I write to /dev/stdout? I am logged in as the root user, what greater permission could I have? root@ubuntu:/# tcpdump -i 2 -w /dev/stdout tcpdump: /dev/stdout: Permission denied The ...
3
votes
2answers
2k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
2
votes
1answer
74 views

Standard way to expose device file to userland applications running on an unprivileged user account?

I just finished the first version of a Linux kernel module I've written in C. The module creates a device file (/dev/wn0) that controls a USB device with three LED lights. For example, running as ...
3
votes
0answers
381 views

How do I let an SDL app (not running as root) use the console

I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
5
votes
1answer
144 views

Does the suid bit have any meaning for device files?

Does the suid bit have any special meaning for device files in Linux ?
4
votes
2answers
7k views

ttyUSB0 permission changes after restart

I'm trying to install a device. I plug in the device which creates a ttyUSB0 file. When I open it in the program I need it for, it says the permission is denied. I type in terminal sudo chmod 666 ...