LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2005, 09:26 AM   #1
m.harshavardhan
Member
 
Registered: May 2005
Location: Bangalore(india)
Posts: 44

Rep: Reputation: 15
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
 
Old 06-30-2005, 02:00 AM   #2
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
try this

http://www.xena.uklinux.net/Linux/usb_perms.html
 
Old 06-30-2005, 07:30 AM   #3
m.harshavardhan
Member
 
Registered: May 2005
Location: Bangalore(india)
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
Old 07-01-2005, 01:50 AM   #4
m.harshavardhan
Member
 
Registered: May 2005
Location: Bangalore(india)
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
Old 07-01-2005, 04:16 AM   #5
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
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.
 
Old 07-07-2005, 06:19 AM   #6
m.harshavardhan
Member
 
Registered: May 2005
Location: Bangalore(india)
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can a non-root user access usb ports m.harshavardhan Linux - Software 2 06-29-2005 10:18 AM
External USB disks --access as USER not ROOT 1kyle Linux - Hardware 4 10-31-2004 01:55 PM
How to set user permissions for USB ports at boot? drazenko Linux - Hardware 1 07-27-2004 09:13 AM
non-root user unable to run tomcat with usb ports mar38 Linux - Software 0 07-21-2004 02:45 AM
trying to access usb ports SkiZzy Linux - Hardware 3 06-01-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration