Unix Technical Forum

USB access as user

This is a discussion on USB access as user within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi all, I am not able to use my digital camera as a user, while I can do it ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:50 PM
Lorenzo
 
Posts: n/a
Default USB access as user

Hi all,

I am not able to use my digital camera as a user, while I can do it as a
root; how can I enable access for all users to usb devices?
I'm using udev, so until I do plug the camera in, there's no device to be
permanently chmodded...

Scanner works great by changing /etc/hotplug/usb/libusbscanner and setting
preference for the newly created device at 666.
I don't know how to force hotplug to give *all* the usb devices 666
status...

Anyone's got hints?

Ciao & thanks,

Lorenzo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:50 PM
Dominik L.. Borkowski
 
Posts: n/a
Default Re: USB access as user

Lorenzo wrote:

> Hi all,
>
> I am not able to use my digital camera as a user, while I can do it as a
> root; how can I enable access for all users to usb devices?
> I'm using udev, so until I do plug the camera in, there's no device to be
> permanently chmodded...


probably the easiest way would be to modify your /etc/fstab to include your
digital camera, this also means using 'user' option. this way you can mount
it as user, without the worries of accessing directly the device.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:53 PM
Nello Sola
 
Posts: n/a
Default Re: USB access as user

Lorenzo <lospam@mispaventa.com> wrote in message news:<gy_4d.6880$N45.150685@twister2.libero.it>...
>
> Anyone's got hints?
>


$ su
# echo '/dev/sda1 /mnt/camera umsdos noauto,user,ro 0 0' \
>> /etc/fstab


Nellinux
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:54 PM
Mario Berger
 
Posts: n/a
Default Re: USB access as user

> $ su
> # echo '/dev/sda1 /mnt/camera umsdos noauto,user,ro 0 0' \
> >> /etc/fstab


Bad idea. /dev/sda1 may be a flash card reader already (as with me).

~Mik

--
Top-Bottom Programming never gets you where you wanted to go.
Bottom-Top Programming gets you where you never wanted to go.

while not life:
sleep((sleep.normal_time - 5h)); eat(mode=fast); pc_mainloop()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:57 PM
Nello Sola
 
Posts: n/a
Default Re: USB access as user

Mario Berger <no_damned_spam@nospam.no> wrote in message
> Bad idea. /dev/sda1 may be a flash card reader already (as with me).



Yes, I occasionally have the same problem (camera + flash card) :-(

The kernel, I suppose, assigns /dev/sda1 to the first device connected.
Is it true ?

In this case, how can we work around it ?

Nellinux
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:57 PM
Joost Kremers
 
Posts: n/a
Default Re: USB access as user

Nello Sola wrote:
> Mario Berger <no_damned_spam@nospam.no> wrote in message
> The kernel, I suppose, assigns /dev/sda1 to the first device connected.
> Is it true ?


yes.

> In this case, how can we work around it ?


udev.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:57 PM
Joost Kremers
 
Posts: n/a
Default Re: USB access as user

Nello Sola wrote:
> Mario Berger <no_damned_spam@nospam.no> wrote in message
> The kernel, I suppose, assigns /dev/sda1 to the first device connected.
> Is it true ?


yes.

> In this case, how can we work around it ?


udev:

<http://www.reactivated.net/udevrules.php>

pay special attention to persistent naming.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com