Re: How to disable that an user execute any command

2008-07-08 Thread Dez Accid

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]


Re: cant su to root

2008-07-01 Thread Dez Accid

Warren Liddell wrote:

When i try to su to root from konsole within kde it tells me..

$ su
su: Sorry

i got a feeling when i added my user client to operators group this may have 
done this an sadly now i cant run or do anything that requires root access.


Your user needs to be in wheel group to be able to su to root.

To add the user to wheel group, you can use pw(8):

# pw usermod your_username -G wheel



hth

--
Dez Accid

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


Re: audio on 5.3

2008-03-06 Thread Dez Accid

Andrew Pantyukhin wrote:

Try this:
cd /boot/kernel/kldload snd*ko
I think running kldload snd_driver.ko will achieve the same results, 
and less typing.


--
Dez Accid

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