TTY Permissions
Ryan McDougall
mcdougrs at yahoo.com
Mon Dec 15 21:32:07 UTC 2003
Hey All,
Forgive me if you have seen this post on the RH9 list but I find this a rather
strange issue and would to find out what is at the heart of it.
I wrote a script to forward output to tty6 BUT it wouldn't let me until I added
the tty group to my user's permissions. However in RH8 I was able to just
simply forward the output with the '>' operator. Maybe my script will shed some
light on the subject.
*********************Folding script***************************
#!/bin/sh
#chkconfig: 345 99 99
#description: Start | Stop | Restart | (Check the) Status of the FAH client
source /etc/rc.d/init.d/functions
FAH="/home/USER/folding/FAH3Console-LinuxB.exe"
cd /home/USER/folding/ >/dev/null
RETVAL=1
case "$1" in
start)
echo -n "Starting Folding at Home client ... "
su USER -c "$FAH >/dev/tty6 &"
RETVAL=$?
;;
stop)
echo -n "Stopping Folding at Home client ... "
killproc FAH3Console-LinuxB.exe
RETVAL=$?
;;
restart)
$0 stop
/usr/bin/sleep 1
$0 start
RETVAL=$?
;;
status)
status FAH3Console-LinuxB.exe
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit $RETVAL
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
More information about the fedora-list
mailing list