usbautocam only as root?

Dalibor Malek maillist at zwickl.net
Mon Aug 2 18:55:59 UTC 2004


Andy Green wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Monday 02 August 2004 18:45, Dalibor Malek wrote:
>
>Hi -
>
>  
>
>>we talked a while ago about your usbautocam Script (which is absolutely
>>great).
>>I have one question to this script.
>>Is it really only possible to run that script as root?
>>I made a user with standard rights and run the script but when I try to
>>add a stick I get a failure message.
>>And then if I plug the stick in or out nothing happens.
>>When I do this as root its working fine.
>>Is it possible to run the script as normal user or if not is it possible
>>to auto login as root?
>>    
>>
>
>The usbautocam script sets up automount and hotplug and so on in /etc, starts 
>and stops the automount script and suchlike.  For these actions it needs to 
>have root powers.
>
>To be clear though, the usbautocam script is only run once to set up the 
>device.  After that you should be able to plug the device in while logged in 
>as a normal user without needing to touch usbautocam again.
>
>If that's not working, email me offlist with the errors and we'll see what we 
>can see.
>
>  
>
>>P.S. I'm running FC2 with kernel-2.6.7-1.501.i586, on a VIA Eden Box.
>>    
>>
>
>Those little VIA boards are very nice.  They should be a lot cheaper though.
>
>- -Andy
>
>- -- 
>Automatic actions for USB cameras, cardreaders, memory sticks, MP3 players
>http://warmcat.com/usbautocam
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.5 (GNU/Linux)
>
>iD8DBQFBDocgjKeDCxMJCTIRAhndAJ9T4EzlLHQbsCpdk0qq/1xG+nq2ygCeLOsF
>QkO+x1wdLZFKowtKP931BQk=
>=053D
>-----END PGP SIGNATURE-----
>
>  
>
Hi Andy,

I'm getting this on the logs by a plugout and plugin.

Aug  2 20:39:57 dmgsurface sshd(pam_unix)[4595]: session opened for user 
root by (uid=0)
Aug  2 20:45:26 dmgsurface udev[4982]: removing device node '/udev/sg0'
Aug  2 20:45:26 dmgsurface kernel: usb 1-2: USB disconnect, address 2
Aug  2 20:45:27 dmgsurface udev[5000]: removing device node '/udev/sda1'
Aug  2 20:45:27 dmgsurface udev[5011]: removing device node '/udev/sda'
Aug  2 20:45:33 dmgsurface kernel: usb 1-2: new full speed USB device 
using address 3
Aug  2 20:45:34 dmgsurface kernel: scsi1 : SCSI emulation for USB Mass 
Storage devices
Aug  2 20:45:34 dmgsurface kernel:   Vendor: LEXAR     Model: 
JUMPDRIVE         Rev: 1.01
Aug  2 20:45:34 dmgsurface kernel:   Type:   
Direct-Access                      ANSI SCSI revision: 02
Aug  2 20:45:34 dmgsurface kernel: SCSI device sdb: 251904 512-byte hdwr 
sectors (129 MB)
Aug  2 20:45:34 dmgsurface kernel: sdb: Write Protect is off
Aug  2 20:45:34 dmgsurface kernel: sdb: assuming drive cache: write through
Aug  2 20:45:35 dmgsurface kernel:  sdb: sdb1
Aug  2 20:45:35 dmgsurface kernel: Attached scsi removable disk sdb at 
scsi1, channel 0, id 0, lun 0
Aug  2 20:45:35 dmgsurface kernel: Attached scsi generic sg0 at scsi1, 
channel 0, id 0, lun 0,  type 0
Aug  2 20:45:35 dmgsurface kernel: updfstab: Using deprecated /dev/sg 
mechanism instead of SG_IO on the actual device
Aug  2 20:45:36 dmgsurface scsi.agent[5103]: disk at 
/devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2:1.0/host1/1:0:0:0
Aug  2 20:45:37 dmgsurface su(pam_unix)[5182]: session opened for user 
root by (uid=0)
Aug  2 20:45:38 dmgsurface udev[5236]: creating device node '/udev/sdb'
Aug  2 20:45:38 dmgsurface udev[5237]: creating device node '/udev/sdb1'
Aug  2 20:45:39 dmgsurface udev[5239]: creating device node '/udev/sg0'
Aug  2 20:45:39 dmgsurface su(pam_unix)[5182]: session closed for user root

The problems is my scripts is not getting started, when I do this as 
root my script is getting started. I already tried to change the rights 
and the owner of the script and of the directories but nothing worked.
I tried to make a new user with root rights but, it didn’t work.
It would solve all my problems if I could auto login with root but this 
isn’t working either.

What else could I do?

Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040802/3eb5a3ed/attachment-0001.htm>


More information about the fedora-list mailing list