Re: Help using scripts when USB devices plug-in
- From: Samuel Díaz García <samueldg@xxxxxxxxxxxx>
- Date: Sun, 30 Jul 2006 22:19:49 +0200
In case of /dev/video0, the user logged via gdm is the user must have the permissions.
In case of /dev/ttyACM0, all users logged in the machine (locally, remote ssh, remote x, local x, etc).
As you explained, perhaps for /dev/video0, the method will be console.perms (I don't know how to do it, but i'll take a look in google), and for /dev/ttyACM0, the method will be udev (as with console.perms, I don't know how to do it).
If somebody can put examples for the two cases, I'll apreciate a lot.
Thanks
Mikkel L. Ellertson escribió:
Samuel Díaz García wrote:Hi, I'm searching how-to use a script when I connect my webcam or myYour /dev/video0 settings will get probably get overridden by
movil USB cable.
For example, when I connect the USB movile cable, I need to put 666
permisions on /dev/ttyACM0 detected device, or when I plug-in my webcam
into my notebook, I need the same into /dev/video0 device.
Where I can add these scripts to allow all users to take control over
the pluged-in devices?
Thanks
/etc/security/console.perms.d/50-default.perms. You could it with a
udev rule, but the first time you logged in/out with the device
plugged in, it would get changed. You are better off changing it
there - probably adding a local rule file. Check "man console.perms"
for some additional information. You can write a udev rule for USB
device that controls the permission of /dev/ttyACMx, or you could
write a console.perms rule that will take set the owner to the
person logged in at the console.
It would help if you explained exactly what you are after. You say
you want all users to be able to take control of the plugged in
devices. Do you want it to be whoever gets to the device first gets
control, or would giving control to whoever is logged at the machine
work out better? The second approach is the way FC5 is set up,
because you normaly have to be at the local machine to plug things
in. But I can see where you might want to control a plugged in
device remotely...
Mikkel
--
Samuel Díaz García
Director Gerente
ArcosCom Wireless, S.L.L.
CIF: B11828068
c/ Romero Gago, 19
Arcos de la Frontera
11630 - Cadiz
http://www.arcoscom.com
mailto:samueldg@xxxxxxxxxxxx
msn: samueldg@xxxxxxxxxxxx
Móvil: 651 93 72 48
Tlfn.: 956 70 13 15
Fax: 956 70 34 83
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: Help using scripts when USB devices plug-in
- From: Mikkel L. Ellertson
- Re: Help using scripts when USB devices plug-in
- References:
- Help using scripts when USB devices plug-in
- From: Samuel Díaz García
- Re: Help using scripts when USB devices plug-in
- From: Mikkel L. Ellertson
- Help using scripts when USB devices plug-in
- Prev by Date: Re: k3b: cdrecord will be run without root privileges
- Next by Date: VDQ : Apple Airport Base Station and FC5.ppc
- Previous by thread: Re: Help using scripts when USB devices plug-in
- Next by thread: Re: Help using scripts when USB devices plug-in
- Index(es):
Relevant Pages
|