devfs problem (was: Re: 5.x usb gphoto

2003-06-17 Thread Jesse Guardiani
Jesse Guardiani wrote:

 Howdy list,
 
 I'm trying to get gphoto2 to connect to my digital
 camera as a NON root user. (it works fine when root,
 but that's a security risk)
 
 Under 4.x, all I had to do was make the appropriate
 USB devices group readable and writeable, then add
 users to the appropriate group (operator, usually).
 
 Under 5.x, I'm having more trouble. The /dev/usb*
 devices have the appropriate group permissions out
 of the box, but I apparently also need group write
 permission to the /dev/ugen* devices.
 
 Here are the ugen permissions when my camera is attached
 to the usb port:
 
 [11:[EMAIL PROTECTED]:[/etc]# ls -al /dev/ugen*
 crw-r--r--  1 root  operator  114,   0 Jun 13 09:07 /dev/ugen0
 crw-r--r--  1 root  operator  114,   1 Jun 13 09:07 /dev/ugen0.1
 crw-r--r--  1 root  operator  114,   2 Jun 13 09:07 /dev/ugen0.2
 
 
 The problem is that I'm unfamiliar with devfs, and
 I can't figure out how to get the ugen devices to
 appear with group writable permissions.
 
 
 Any help appreciated! Thanks.
 

Anyone? Anyone at all? Surely someone here has a wee bit of
experience with devfs...



-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devfs problem (was: Re: 5.x usb gphoto

2003-06-17 Thread Thomas T. Veldhouse
I just looked in /etc/devfs.conf ... so here is a guess ;)

# Allow members of group operator to cat things to the speaker
perm   ugen0 0664

Tom Veldhouse

- Original Message -
From: Jesse Guardiani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 10:56 AM
Subject: devfs problem (was: Re: 5.x  usb  gphoto


 Jesse Guardiani wrote:

  Howdy list,
 
  I'm trying to get gphoto2 to connect to my digital
  camera as a NON root user. (it works fine when root,
  but that's a security risk)
 
  Under 4.x, all I had to do was make the appropriate
  USB devices group readable and writeable, then add
  users to the appropriate group (operator, usually).
 
  Under 5.x, I'm having more trouble. The /dev/usb*
  devices have the appropriate group permissions out
  of the box, but I apparently also need group write
  permission to the /dev/ugen* devices.
 
  Here are the ugen permissions when my camera is attached
  to the usb port:
 
  [11:[EMAIL PROTECTED]:[/etc]# ls -al /dev/ugen*
  crw-r--r--  1 root  operator  114,   0 Jun 13 09:07 /dev/ugen0
  crw-r--r--  1 root  operator  114,   1 Jun 13 09:07 /dev/ugen0.1
  crw-r--r--  1 root  operator  114,   2 Jun 13 09:07 /dev/ugen0.2
 
 
  The problem is that I'm unfamiliar with devfs, and
  I can't figure out how to get the ugen devices to
  appear with group writable permissions.
 
 
  Any help appreciated! Thanks.
 

 Anyone? Anyone at all? Surely someone here has a wee bit of
 experience with devfs...



 --
 Jesse Guardiani, Systems Administrator
 WingNET Internet Services,
 P.O. Box 2605 // Cleveland, TN 37320-2605
 423-559-LINK (v)  423-559-5145 (f)
 http://www.wingnet.net


 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devfs problem (was: Re: 5.x usb gphoto

2003-06-17 Thread Thomas T. Veldhouse
It should have read something nicer in the comment though:

# Allow members of group operator to write to ugen0
perm   ugen0 0664

 Tom Veldhouse

- Original Message -
From: Thomas T. Veldhouse [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: FreeBSD-Questions [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 11:20 AM
Subject: Re: devfs problem (was: Re: 5.x  usb  gphoto


 I just looked in /etc/devfs.conf ... so here is a guess ;)

 # Allow members of group operator to cat things to the speaker
 perm   ugen0 0664

 Tom Veldhouse

 - Original Message -
 From: Jesse Guardiani [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 10:56 AM
 Subject: devfs problem (was: Re: 5.x  usb  gphoto


  Jesse Guardiani wrote:
 
   Howdy list,
  
   I'm trying to get gphoto2 to connect to my digital
   camera as a NON root user. (it works fine when root,
   but that's a security risk)
  
   Under 4.x, all I had to do was make the appropriate
   USB devices group readable and writeable, then add
   users to the appropriate group (operator, usually).
  
   Under 5.x, I'm having more trouble. The /dev/usb*
   devices have the appropriate group permissions out
   of the box, but I apparently also need group write
   permission to the /dev/ugen* devices.
  
   Here are the ugen permissions when my camera is attached
   to the usb port:
  
   [11:[EMAIL PROTECTED]:[/etc]# ls -al /dev/ugen*
   crw-r--r--  1 root  operator  114,   0 Jun 13 09:07 /dev/ugen0
   crw-r--r--  1 root  operator  114,   1 Jun 13 09:07 /dev/ugen0.1
   crw-r--r--  1 root  operator  114,   2 Jun 13 09:07 /dev/ugen0.2
  
  
   The problem is that I'm unfamiliar with devfs, and
   I can't figure out how to get the ugen devices to
   appear with group writable permissions.
  
  
   Any help appreciated! Thanks.
  
 
  Anyone? Anyone at all? Surely someone here has a wee bit of
  experience with devfs...
 
 
 
  --
  Jesse Guardiani, Systems Administrator
  WingNET Internet Services,
  P.O. Box 2605 // Cleveland, TN 37320-2605
  423-559-LINK (v)  423-559-5145 (f)
  http://www.wingnet.net
 
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devfs problem (was: Re: 5.x usb gphoto

2003-06-17 Thread Jesse Guardiani
Thomas T. Veldhouse wrote:

 It should have read something nicer in the comment though:
 
 # Allow members of group operator to write to ugen0
 perm   ugen0 0664

Is that supposed to work for devices that always exist, or
for devices that are created on the fly?

The ugen device is created when I plug my camera in.

The above doesn't effect it (because I think it is only
run at boot).

I haven't rebooted my machine to test, but I shouldn't have
to, right? I should just have to plug my camera in, which
I did, and it didn't effect the ugen device.

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devfs problem (was: Re: 5.x usb gphoto

2003-06-17 Thread Jesse Guardiani
Jesse Guardiani wrote:

 Thomas T. Veldhouse wrote:
 
 It should have read something nicer in the comment though:
 
 # Allow members of group operator to write to ugen0
 perm   ugen0 0664
 
 Is that supposed to work for devices that always exist, or
 for devices that are created on the fly?
 
 The ugen device is created when I plug my camera in.
 
 The above doesn't effect it (because I think it is only
 run at boot).


This works:

devfs ruleset 10
devfs rule add path 'ugen*' mode 664

I had tried that before I posted to the list, but I think
I forgot to quote my globbing.

Does anyone know the appropriate place to put this so it
will execute at system boot?

/etc/rc.conf?

Thanks.

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


5.x usb gphoto

2003-06-16 Thread Jesse Guardiani
Howdy list,

I'm trying to get gphoto2 to connect to my digital
camera as a NON root user. (it works fine when root,
but that's a security risk)

Under 4.x, all I had to do was make the appropriate
USB devices group readable and writeable, then add
users to the appropriate group (operator, usually).

Under 5.x, I'm having more trouble. The /dev/usb*
devices have the appropriate group permissions out
of the box, but I apparently also need group write
permission to the /dev/ugen* devices.

Here are the ugen permissions when my camera is attached
to the usb port:

[11:[EMAIL PROTECTED]:[/etc]# ls -al /dev/ugen*
crw-r--r--  1 root  operator  114,   0 Jun 13 09:07 /dev/ugen0
crw-r--r--  1 root  operator  114,   1 Jun 13 09:07 /dev/ugen0.1
crw-r--r--  1 root  operator  114,   2 Jun 13 09:07 /dev/ugen0.2


The problem is that I'm unfamiliar with devfs, and
I can't figure out how to get the ugen devices to
appear with group writable permissions.


Any help appreciated! Thanks.

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]