LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Allow user to access /dev/xyz (https://www.linuxquestions.org/questions/linux-general-1/allow-user-to-access-dev-xyz-226052/)

theonebeyond 09-03-2004 04:16 AM

Allow user to access /dev/xyz
 
Hi there!

I would like to know how I make a file from /dev accessible to a normal user?

I tried to chmod +s /dev/xyz but it didn't work.

Need that to access my Webcam or my gps ...

Thanks, greeting Sascha

/bin/bash 09-03-2004 06:03 AM

One common way is to make devices accessible to a group. For instance make /dev/video0 owned by root:video
chown root:video /dev/video0
then
chmod 0660 /dev/video0
Now you edit /etc/group and add all the users which require access to /dev/video0 to the video group.

theonebeyond 09-03-2004 07:08 AM

Hi!
Thanks /bin/bash ...

I could bite my own ass if I could reach it... it's that simple and I didn't get it myself...

Thank you a lot!

GReetz, Sascha


All times are GMT -5. The time now is 05:21 PM.