Results for elifo translation from Spanish to English

Computer translation

Trying to learn how to translate from the human translation examples.

Spanish

English

Info

Spanish

elifo

English

 

From: Machine Translation
Suggest a better translation
Quality:

Human contributions

From professional translators, enterprises, web pages and freely available translation repositories.

Add a translation

Spanish

English

Info

Spanish

![cdata[ #!/bin/bash # # /etc/hotplug/usb/consoleuserperms # # configura nuevamente la conexión del dispositivo usb para el usuario propietario # de la consola de acuerdo a pam_console pueda acceder desde el espacio de usuario # # tenga en cuenta que para que este script funcione, necesitará todo lo siguiente: # a) una línea en el archivo /etc/hotplug/usb.usermap u otro archivo usermap # en /etc/hotplug/usb/que corresponda al dispositivo que esté utilizando. # b) una configuración que utilice pam_console y que cree los respectivos archivos de bloqueo # conteniendo el nombre del usuario. puede comprobar esto # ejecutando «echo `cat /var/{run,lock}/console.lock`» y # verificando que aparece aquí el usuario mencionado anteriormente. # c) un núcleo de linux que soporte conexión en caliente (hotplug) y usbdevfs # d) el paquete hotplug (http://linux-hotplug.sourceforge.net/) # # en el archivo usermap, el primer campo «usb module» debería llamarse # «consoleuserperms» para que llame a este script. # if [ "${action}" = "add" ] [ -f "${device}" ] then # nuevo código, utilizando los archivos de bloqueo en lugar de copiar los archivos de /dev/console # esto también funciona con los accesos sin kdm (ejem: en un terminal virtual) # idea y code de nalin dahyabhai nalin\@redhat\.com if [ -f /var/run/console.lock ] then consoleowner=`cat /var/run/console.lock` elif [ -f /var/lock/console.lock ] then consoleowner=`cat /var/lock/console.lock` else consoleowner= fi if [ -n "$consoleowner" ] then chmod 0000 "${device}" chown "$consoleowner" "${device}" chmod 0600 "${device}" fi fi ]]

English

![cdata[ #!/bin/bash # # /etc/hotplug/usb/consoleuserperms # # sets up newly plugged in usb device so that the user who owns # the console according to pam_console can access it from user space # # note that for this script to work, you'll need all of the following: # a) a line in the file /etc/hotplug/usb.usermap or another usermap file # in /etc/hotplug/usb/that corresponds to the device you are using. # b) a setup using pam_console creates the respective lock files # containing the name of the respective user. you can check for that # by executing "echo `cat /var/{run,lock}/console.lock`" and # verifying the appropriate user is mentioned somewhere there. # c) a linux kernel supporting hotplug and usbdevfs # d) the hotplug package (http://linux-hotplug.sourceforge.net/) # # in the usermap file, the first field "usb module" should be named # "consoleuserperms" to invoke this script. # if [ "${action}" = "add" ] [ -f "${device}" ] then # new code, using lock files instead of copying /dev/console permissions # this also works with non-kdm logins (e.g. on a virtual terminal) # idea and code from nalin dahyabhai nalin\@redhat\.com if [ -f /var/run/console.lock ] then consoleowner=`cat /var/run/console.lock` elif [ -f /var/lock/console.lock ] then consoleowner=`cat /var/lock/console.lock` else consoleowner= fi if [ -n "$consoleowner" ] then chmod 0000 "${device}" chown "$consoleowner" "${device}" chmod 0600 "${device}" fi fi ]]

Last Update: 2008-03-04
Usage Frequency: 1
Quality:

Warning: Contains invisible HTML formatting

Get a better translation with
7,740,353,162 human contributions

Users are now asking for help:



We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Learn more. OK