Re: How to disable that an user execute any command
On Tuesday 08 July 2008, DSA - JCR wrote: > but I think that if he/she want to make CTRL-C to the shell task, he can > stop the task and then enter in the system and look whatever he wants > (for example, how the things are done). Use "sudo" to allow non-root users to run that script as root. If they hit ^C, they get dropped right back to their own account. > I want this because there is intelectual propierty behind this. Don't put trade secrets in shell scripts. -- Kirk Strauser signature.asc Description: This is a digitally signed message part.
Re: How to disable that an user execute any command
DSA - JCR wrote: I want to make an user for the only task of remove/insert the usb copy disk. I have made a new user (operator group), and a shell task that ask for the GELI password and fsck and mount the USB disk. This work fine under root. but I think that if he/she want to make CTRL-C to the shell task, he can stop the task and then enter in the system and look whatever he wants (for example, how the things are done). How can I stop him from entering this CTRL-C (and others than could be) ? If I understand your question correctly, you want to prevent an interactive user running a shell script from breaking out of it via CTRL-C and entering the shell directly. In that case, you can achieve this functionality in your shell script with the use of trap command. E.g. this line will print "Ignoring CTRL-C" on CTRL-C keypress which generates an INT (number 2) signal: trap "echo 'Ignoring INT signal'" 2 This page http://www.shelldorado.com/goodcoding/tempfiles.html describes the shell signals quite well, you may want to give it a read. Thanks! -- Dez Accid ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to disable that an user execute any command
Hi all I use FreeBSD 6.2, and GELI I want to make an user for the only task of remove/insert the usb copy disk. I have made a new user (operator group), and a shell task that ask for the GELI password and fsck and mount the USB disk. This work fine under root. but I think that if he/she want to make CTRL-C to the shell task, he can stop the task and then enter in the system and look whatever he wants (for example, how the things are done). How can I stop him from entering this CTRL-C (and others than could be) ? I want this because there is intelectual propierty behind this. Thanks in advance Juan Coruña Desarrollo de Software Atlantico ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"