Results 1 to 4 of 4
I am using a hardware USB key, and when I am logged in as root everything works fine. I can access it, read its memory, write to it, everything...
When ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-19-2004 #1Just Joined!
- Join Date
- Jul 2004
- Location
- Belgrade
- Posts
- 20
How to access a USB hard key as ordinary user?
I am using a hardware USB key, and when I am logged in as root everything works fine. I can access it, read its memory, write to it, everything...
When I log in as different user (not root), I get the message as though the key is not in the USB port or the daemon for the USB port is not running.
I tried several things:
I do have execute permissions for the daemon,
I am getting a response from the key when I type
cat /proc/bus/usb/devices, so the system does see the key, only, I can't access it from my program.
In my /etc/fstab the line is:
usbdevfs /proc/bus/usb usbdevfs noauto,user,exec 0 0
Can anyone help?
- 07-19-2004 #2Just Joined!
- Join Date
- Jul 2004
- Location
- Belgrade
- Posts
- 20
In the meantime, I found out what is the problem.
In the directory /proc/bus/usb there is a directory for each of the USB ports, and the user permissions for the files in these directories are rw-r--r-- by default.
When I change them to rw-rw-rw- and then log in as different user without restart of the PC, I can access the USB port and everything is working just fine.
Thus, can anyone help me by telling me how to make my SuSE Linux set user permissions for these files in /proc/bus/usb to rw-rw-rw- by default, at boot?
Regards,
Drazen
- 07-19-2004 #3Just Joined!
- Join Date
- Jul 2004
- Location
- Sarajevo
- Posts
- 15
edit /etc/rc.d/rc.local or /etc/rc.local (im not familliar with SuSE) and add the chmod XXX path-to-file
- 07-19-2004 #4Just Joined!
- Join Date
- Jul 2004
- Location
- Belgrade
- Posts
- 20
I don't have neither /etc/rc.d/rc.local nor /etc/rc.local.
Maybe /etc/rc.d/boot.local ?
Thanks for the help,
regards,
Drazenko


Reply With Quote
