Tech Support > Operating Systems > Linux / Variants > access usb port as non-root user
access usb port as non-root user
Posted by Walter on December 8th, 2003


Hello all,
I just downloaded a software from sourceforge that enables
me to communicated with my portable mp3 player on my Suse system. The
only problem is that I am obliged to run as root cause it needs to
access the usb port. Since the software doesn't mount the player as a
mass storage device, I know the solution os not to modify the fstab
file. What I want to know is how do I give privileges to the usb port
to a non-root user ?

Thanks in advance.

Walter

Posted by Dances With Crows on December 8th, 2003


On 8 Dec 2003 09:06:33 -0800, Walter staggered into the Black Sun and said:
Weird. What's the name of this software package, and what's the make
and model# of the mp3 player? (Always provide complete information,
like http://catb.org/~esr/faqs/smart-questions.html suggests.) What's
the output of "lsmod" when you're using this software?

Figure out which device node the program's accessing (easier if the
program's Open, but lsof might also work), and change the permissions of
that node to 0666 ?

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / Hire me!
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume

Posted by Amanda L. Rossmiller on December 9th, 2003


http://rioutil.sourceforge.net
mine does
would be nice to not have to su.



Posted by Walter on December 9th, 2003


The software can be found on sourceforge. It's called : iRiver iFP driver.

The model I have is the Iriver IFP-390T.

Walter


"Amanda L. Rossmiller" <sleepynyago@yahoo.com> wrote in message news:<4GaBb.276214$Dw6.947042@attbi_s02>...

Posted by Dave Brown on December 9th, 2003


In article <1e9c0481.0312080906.6c27b245@posting.google.com>, Walter wrote:
One solution would be to set the program up with 'sudo'?

--
Dave Brown Austin, TX

Posted by Walter on December 9th, 2003


I'm afraid I don't know what "sudo: is.

Dave Brown <dhbrown@hobbes.dhbrown.net> wrote in message news:<slrnbtc3tk.223.dhbrown@hobbes.dhbrown.net>.. .

Posted by Dave Brown on December 10th, 2003


In article <1e9c0481.0312091457.7cf9bb26@posting.google.com>, Walter wrote:
It's a program that allows designated users to run applications with
elevated privileges. (a la Windows "runas").

Having installed the "sudo" package (if it's not already), you'd edit
/etc/sudoers, adding a line like:

dhbrown sys1 = (root) /bin/some_command,/usr/bin/other_command
Defaults:dhbrown !authenticate

Then user dhbrown can execute:
sudo /bin/some_command
and it will execute with the authority of root. By adding the
"!authenticate" line, you allow dhbrown to do it without being
requested for his password. ("sys1" is the name of the host from
which dhbrown is allowed to execute the command.)

All described in the manpage for sudoers file, but that manpage is a bear
to understand. But sudo has many capabilities not shown by this simple
example. And you should use 'visudo' to edit /etc/sudoers; if you do,
it'll check your syntax and point out errors. You might also google for
a "sudo tutorial".

--
Dave Brown Austin, TX

Posted by Walter on December 10th, 2003


Thanks for the info Dave.
Dave Brown <dhbrown@hobbes.dhbrown.net> wrote in message news:<slrnbtd81r.f5b.dhbrown@hobbes.dhbrown.net>.. .