LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Problems - Want non-root Access (https://www.linuxquestions.org/questions/linux-hardware-18/usb-problems-want-non-root-access-129651/)

Fade_to_Blah 12-28-2003 09:12 PM

USB Problems - Want non-root Access
 
I have a digital camera and everything works fine as root. Get images, delete images. But I do NOT want to run things as root. How can I access (easily:)) usb devices as a non-root user.

Redhat 9

Thanks in advance

titanium_geek 12-29-2003 04:37 PM

umm... could this be something to do with permissions?
try the chmod command (changes user permissions)
or if that fails, use the su command. (will "emulate" any user, root as default)

agree with you on the running as root. see my distro to the left to see why I agree with you... it wasn't a pretty sight.

titanium_geek

Fade_to_Blah 12-29-2003 04:48 PM

I dont want to have to change permissions on the usb devices /dev or wherever they are in /proc manually. There is some other way (yet to be discovered). Su works ofcourse, but again I dont want to run this thing as root.

titanium_geek 12-29-2003 05:05 PM

clarify why you don't want to change the permissions?

titanium_geek

hw-tph 12-29-2003 05:15 PM

You could specify the umask to use when mounting the device, but that would actually change the permissions (from a user point of view that is, no physical change would be made to the medium until written to).

If your USB device is mounted as /dev/sda1, try something like this: mount -t vfat -o rw,umask=0007 /dev/sda1 /mnt/mp3player or something to the same effect. The rw and umask options can be entered in /etc/fstab so the device will always be mounted with those options.


Håkan


All times are GMT -5. The time now is 02:45 AM.