How do you let users use usb devices?
Hi, Im using slackware 9.0 and I have a digital camera.
The kodak cx4300 to be exsact. I installed gphoto and libghoto. then I typed gphoto2 --auto-detect and the camera was detected :) I then installed digikam and I cant connect to the camera! I can connect to it as root, but not as a user. How can I give normal users permission to use and to connect to this usb device? any help would be greatly apreciated! |
also, how do you let users mount cdroms?
that is another big thing, as I dont want to su into root every time I want to view a cdrom =] |
Quote:
|
Re: How do you let users use usb devices?
Quote:
hope this helps :) |
Well, I wouldnt have a problem accessing it as root, but this is my dads pc, and I dont want him as root, because he doesnt know quite what hes doing :P
So a quick and easy guide as to how I can give him access to his usb camera would be a nice thing :) so could I just do a chmod 666 /dev/* ? |
Actually, the best way to do what you want is by editing
/etc/security/console.perms For example, I want anyone who is logged in on the console to be able to use all the local USB devices. I added the following lines: ----- <usb>=/proc/bus/usb/*/* <console> 0600 <usb> 0600 root.wheel ----- This means that when user "fred" logs into the console, all the usb devices are changed to be 600 perms and owned by fred. When fred logs out, the settings get put back to 600 owned by root, and in group wheel. By the way, some software may access the usb devices through /dev files rather than /proc/bus/usb/, so you may have to do things like this: <scanner>=/dev/scanner /dev/usb/scanner* |
Quote:
- wipe out the HD /dev/hd* with one single command. (cp /dev/zero /dev/hda1) ..or by accident, save a file as /dev/..., thereby overwriting it :p - everyone to read/write raw sectors from your hd, bypassing every security check - everyone direct to access any device, to for instance, your web-cam remotely. - even allow everyone to flash your bios or cpu microcode.... etc.. definitely not something I would recommend ;) here is the trick. (i'll give you the shell commands, but you could also try any other user-interface off course, following my description)
hope this helps ;) Quote:
It is indeed, easier, because you don't need to worry about file access, but there are far more complicated things you should be worried about. :D Being root offers viruses, or bad applications (such as an applet on a website) or command-typoo's a license to destroy your entire system, even destroy the hardware. When running as an unprivileged user, you still have enough freedom, all applications still work, and with the tips above, you can give yourself a little more permissions. (and 'su', or the kde-su are very helpful if you really have to be root) Any background program (daemon) should preferrably not run as root either. If it's being hacked, you again, give the program a license to kill. Unlike Microsoft Windows (xp), you don't have to be administrator all the time to be able to "do something useful". Installing a program under one kind of user, doesn't exclude other users from begin able to run the program too. |
All times are GMT -5. The time now is 06:57 PM. |