Hi: I made a script (for tcsh shell) which add a printer to the system (made directories, files, security and made some validations) but need root access to accomplish this task.
my solution was to setuid the scripts been root # chown root:admin-hmo *.tcsh # chmod u=swrx,g=rx,o= *.tcsh # ls -l total 4 -rwsr-x--- 1 root admin-hmo 2024 Aug 3 04:07 impresora.tcsh -rwsr-x--- 1 root admin-hmo 275 Jul 30 02:26 seguridad.tcsh The first line of the script is #!/bin/tcsh -fb But when I run the script been other user I had problem with the permissions > impresora.tcsh oc81p8707 p1ct203 psct203 raw mkdir: /var/spool/lpd/oc81p8707: Permission denied touch: /var/spool/lpd/oc81p8707/filter-errors: No such file or directory touch: /var/spool/lpd/oc81p8707/accounting-file: No such file or directory /var/spool/lpd/oc81p8707/minfree: No such file or directory. did I miss something? maps ******************************************************************************************************************************************************************************** Con Prodigy Infinitum navega y habla al mismo tiempo sin ocupar tu teléfono por sólo $349 al mes. Además, al contratar llévate un mes de renta gratis. ¿Qué esperas? Conéctate 01 800 123 2222 o ven a tu Tienda Telmex. Precio más I.V.A. http://www.hits.telmex.com/app/ad_Mgr/ad_mgrN.jsp?ad=157 Prodigy Infinitum la conexión más rápida [EMAIL PROTECTED] a telmex.com http://www.telmex.com _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"