Re: Help with TTY permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- John Meagher <jmeagher@xxxxxxxxxxx> wrote:
> 
> > Hi everyone,
> >
> > I am really baffled as to why a script of mine won't work. I used it
> with RH
> > 8.0 and now when I try it with 9.0 my boot.log shows a /dev/tty12
> permission
> > denied error. I have NO idea why I would be getting this. The script
> is as
> > follows:
> >
> > #!/bin/sh
> > #chkconfig: 345 99 99
> > #description:  Start | Stop | Restart | (Check the) Status of the FAH
> Linux
> > cons
> > ole client
> > source /etc/rc.d/init.d/functions
> > FAH="/home/mcdougrs/folding/FAH3Console-Linux.exe"
> > cd /home/mcdougrs/folding/ >/dev/tty12
> > RETVAL=1
> > case "$1" in
> >         start)
> >                 echo -n "Starting Folding@Home client ... "
> >                 su mcdougrs -c "$FAH >/dev/tty12 &"
> >                 RETVAL=$?
> >                 ;;
> >         stop)
> >                 echo -n "Stopping Folding@Home's FAH3Console-Linux.exe
> ... "
> >                 killproc FAH3Console-Linux.exe
> >                 RETVAL=$?
> >                 ;;
> >         restart)
> >                 $0 stop
> >                 /usr/bin/sleep 1
> >                 $0 start
> >                 RETVAL=$?
> >                 ;;
> >         status)
> >                 status FAH3Console-Linux.exe
> >                 RETVAL=$?
> >                 ;;
> >         *)
> >                 echo "Usage: $0 {start|stop|restart|status}"
> >                 exit 1
> >                 ;;
> > esac
> > exit $RETVAL
> >
> What are the permissions on the script?
> 
-rwxr-xr-x    1 root     root          995 Oct 14 15:00 folding

I did find a work around but I don't like how it is done, so if we can find an
"official" way that would be great. The work around was to add user mcdougrs to
the tty group.

The permissions of the tty12 are:
crw--w----    1 root     tty        4,  12 Oct 14 16:02 tty12



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux