LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to access usb ports as non-root user (https://www.linuxquestions.org/questions/linux-software-2/how-to-access-usb-ports-as-non-root-user-338377/)

m.harshavardhan 06-29-2005 09:26 AM

How to access usb ports as non-root user
 
hi
i am using linux fedora core 3.
I want to access to usb ports as a non-root user.because i want to run a
hardware circuit.
i can run my hardware as a root but not as a non-root user.
so i have changed the permissions of /proc/bus/usb to 777.
then if i run my hardware as a non-root user it is working.But when i
re-start the System
whatever changes i did for /proc/bus/usb (777) will gon and they are
resetted to original,so now i cannot run my hardware.
so what shall i do to make changes of /proc/bus/usb to 777 permanently.
or
how can a non-root user can access usb ports

Thanks in advance
M.Harshavardhan Reddy

dugas 06-30-2005 02:00 AM

try this
 
http://www.xena.uklinux.net/Linux/usb_perms.html

m.harshavardhan 06-30-2005 07:30 AM

thank u for ur reply
 
Hi
I am greately thankful to u.
u have sent very detailed information for my problem(query)
thank u onceagain

Regards
M.Harshavardhan Reddy

m.harshavardhan 07-01-2005 01:50 AM

Re: try this
 
HI,
Thanks for ur info.
But still i am finding some problems
1.The default resource file /etc/usb_perms is not there in my /etc folder
2.i am using Hardware circuit not any specific device like
scanner ,camera ,memorystick.
my hardware has usb port and by using usb cable we will connect our hardware circuit to usb port of my Linux FC3 PC(Harddisk)
Now i want all usb ports of my PC should be run under
non-root user mode.
even after installing libusb-0.1.10a ,usb-perms-0.1 into my PC i am unable to run my Hardware.
so any changes i need to make
Thank u
Regards
M.Harshavardhan Reddy

stefan_nicolau 07-01-2005 04:16 AM

Quote:

what shall i do to make changes of /proc/bus/usb to 777 permanently.
Add the permission change to your startup scripts.
The /proc filesystem is a virtual filesystem that stays in the memory. Since the memory is cleared at each reboot, /proc is created by the kernel when it starts up.

m.harshavardhan 07-07-2005 06:19 AM

Hi,
Finally I got solution for above my problem.
1.add ur user name in ur groups file.in the fallowing line
wheel:x:10:root,urusername
2.change the sudoers file as below
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL

# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
4.after that add the fallowing command in ur users bash_profile
sudo -H bash -login
5.now when u run the bash_profile u automatically becomes superuser .
thats all.

harsha


All times are GMT -5. The time now is 03:27 AM.