<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dalibor Malek wrote:<br>
<blockquote cite="mid410E8E3F.1020303@zwickl.net" type="cite">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
Andy Green wrote:<br>
  <blockquote cite="mid200408021925.37251.fedora@warmcat.com"
 type="cite">
    <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 02 August 2004 18:45, Dalibor Malek wrote:

Hi -

  </pre>
    <blockquote type="cite">
      <pre wrap="">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?
    </pre>
    </blockquote>
    <pre wrap=""><!---->
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.

  </pre>
    <blockquote type="cite">
      <pre wrap="">P.S. I'm running FC2 with kernel-2.6.7-1.501.i586, on a VIA Eden Box.
    </pre>
    </blockquote>
    <pre wrap=""><!---->
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
<a class="moz-txt-link-freetext" href="http://warmcat.com/usbautocam">http://warmcat.com/usbautocam</a>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBDocgjKeDCxMJCTIRAhndAJ9T4EzlLHQbsCpdk0qq/1xG+nq2ygCeLOsF
QkO+x1wdLZFKowtKP931BQk=
=053D
-----END PGP SIGNATURE-----

  </pre>
  </blockquote>
  <span style="font-size: 12pt; font-family: "Times New Roman";"
 lang="EN-GB">Hi Andy,<br>
  <br>
I'm getting this on the logs by a plugout and plugin.<br>
  <br>
Aug  2 20:39:57 dmgsurface sshd(pam_unix)[4595]: session opened for
user
root by (uid=0)<br>
Aug  2 20:45:26 dmgsurface udev[4982]: removing device node '/udev/sg0'<br>
Aug  2 20:45:26 dmgsurface kernel: usb 1-2: USB disconnect, address 2<br>
Aug  2 20:45:27 dmgsurface udev[5000]: removing device node '/udev/sda1'<br>
Aug  2 20:45:27 dmgsurface udev[5011]: removing device node '/udev/sda'<br>
Aug  2 20:45:33 dmgsurface kernel: usb 1-2: new full speed USB device
using address 3<br>
Aug  2 20:45:34 dmgsurface kernel: scsi1 : SCSI emulation for USB Mass
Storage devices<br>
Aug  2 20:45:34 dmgsurface kernel:   Vendor:
LEXAR     Model:
JUMPDRIVE         Rev: 1.01<br>
Aug  2 20:45:34 dmgsurface kernel:   Type:  
Direct-Access                     
ANSI SCSI revision: 02<br>
Aug  2 20:45:34 dmgsurface kernel: SCSI device sdb: 251904 512-byte
hdwr
sectors (129 MB)<br>
Aug  2 20:45:34 dmgsurface kernel: sdb: Write Protect is off<br>
Aug  2 20:45:34 dmgsurface kernel: sdb: assuming drive cache: write
through<br>
Aug  2 20:45:35 dmgsurface kernel:  sdb: sdb1<br>
Aug  2 20:45:35 dmgsurface kernel: Attached scsi removable disk sdb at
scsi1, channel 0, id 0, lun 0<br>
Aug  2 20:45:35 dmgsurface kernel: Attached scsi generic sg0 at scsi1,
channel 0, id 0, lun 0,  type 0<br>
Aug  2 20:45:35 dmgsurface kernel: updfstab: Using deprecated /dev/sg
mechanism instead of SG_IO on the actual device<br>
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<br>
Aug  2 20:45:37 dmgsurface su(pam_unix)[5182]: session opened for user
root by (uid=0)<br>
Aug  2 20:45:38 dmgsurface udev[5236]: creating device node '/udev/sdb'<br>
Aug  2 20:45:38 dmgsurface udev[5237]: creating device node '/udev/sdb1'<br>
Aug  2 20:45:39 dmgsurface udev[5239]: creating device node '/udev/sg0'<br>
Aug  2 20:45:39 dmgsurface su(pam_unix)[5182]: session closed for user
root<br>
  <br>
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.<br>
I tried to make a new user with root rights but, it didn’t work.<br>
It would solve all my problems if I could auto login with root but this
isn’t
working either.<br>
  <br>
What else could I do?<br>
  <br>
Thank You.</span>
</blockquote>
P.S. As root I never com to sdb1 I always stay at sda1.<br>
<br>
</body>
</html>