home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:15408 comp.unix.pc-clone.32bit:1012
- Path: sparky!uunet!usc!news.service.uci.edu!cerritos.edu!swc!wndrsvr!andyb
- Newsgroups: comp.unix.questions,comp.unix.pc-clone.32bit
- Subject: can't open /dev/tty
- Message-ID: <C0oHB8.3o6@wndrsvr.la.ca.us>
- From: andyb@wndrsvr.la.ca.us (Andy Brager)
- Date: Mon, 11 Jan 1993 07:11:31 GMT
- Organization: Wonder Server - Public Access for SoCal
- Lines: 42
-
-
- ISC V3 3.0
-
- I have written a program to do a chroot(2), and then exec
- a program passed to it as an argument. If I pass it "csh"
- as the argument, it does indeed exec a csh, but I get the
- error message:
- "Warning: no access to tty; thus no job control in this shell..."
-
- If I pass it rn or trn as the argument, I get: "Can't open /dev/tty"
- and it exits.
-
- Well, the obvious answer is that my chroot'ed environment is
- incomplete. This is what's in /dev there.
-
- total 4
- drwxrwxr-x 2 root sys 96 Jan 7 22:46 ./
- drwxr-xr-x 11 bbs other 192 Jan 7 23:29 ../
- crw-rw-rw- 1 root other 2, 2 Jan 6 00:46 null
- crw-rw-rw- 1 root other 16, 0 Dec 19 12:31 tty
- crw-r--r-- 1 root other 5,128 Jan 7 22:44 vt04
-
-
- I don't see the problem. Do you? Any other ideas?
- (vt04 is where I run this program from. I doubt it's necessary,
- but I was grasping at straws. )
-
- Another interesting thing that I just discovered is if I try
- to do "echo x > /dev/tty" (in the chroot'ed csh environment of course)
- I get "tty: no such device or address". If the permissions are changed
- to 644, then I get "permission denied". ("echo x > /dev/null" works
- just fine). This is probably something really simple and really obscure.
- Anyone?
-
- Thanks in advance!
-
- - Andy
- --
- DO NOT BUY TOUCHE COMPUTERS -email for details
- Large Packages (10K+ Total) to: cerritos.edu!swc!wndrsvr!andyb
- -I don't know but I been told; two sides to every story - Joe Walsh
- [ This Space For Rent - No children, pets, or toxic waste dumps please. ]
-