home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!europa.asd.contel.com!emory!nntp.msstate.edu!news
- From: fwp@CC.MsState.Edu (Frank Peters)
- Subject: Re: /dev/ttyp* modes and openwindows
- Message-ID: <1993Jan21.225607.2769@ra.msstate.edu>
- Sender: news@ra.msstate.edu
- Nntp-Posting-Host: jester.cc.msstate.edu
- Organization: Computing Center, Mississippi State University
- References: <1993Jan20.215257.3549@bradley.bradley.edu>
- Date: Thu, 21 Jan 1993 22:56:07 GMT
- Lines: 38
-
- In article <1993Jan20.215257.3549@bradley.bradley.edu> pwh@bradley.bradley.edu (Pete Hartman) says:
- : I've seen this problem several times over the last couple of
- : years of administering Suns of various types. It seems to be
- : getting to be more of a concern with the newer SunOS (4.1.2 and
- : 4.1.3), where /etc/rc has a chmod 644 /dev/tty[pqrs]*.
-
- Someone has been modifying your /etc/rc file then. As shipped by Sun
- in SunOS 4.1.3 it does a chmod 666, not 644.
-
- : Whenever ttyp* is mode 644, and someone starts OpenWindows,
- : they cannot open any shell or command tools. If I go in and
- : chmod 666 /dev/ttyp*, it works fine. Obviously, the problem
- : is that the windows can't write the device unless ownership is
- : changed or the mode is 666.
-
- This is correct. That's why the default is to chmod to 666.
-
- : Why doesn't openwin deal with this? Is there something I'm supposed
- : to configure that I haven't? I've looked at /etc/fbtab, but with machines
- : on a network, you can't just blindly assign ownership of /dev/ttyp* to
- : whoever logs onto the console.
-
- Well, keep in mind that openwin (cmdtool/shelltool in particular) DOES
- deal with the permissions as they are set by default.
-
- The ideal solution would be for cmdtool/shelltool to be setuid root so
- that they can change ownership and permissions on the device files.
- Unfortunately, they weren't written to be setuid. Problems occur if
- you make them setuid (and it would probably open security holes as
- well).
-
- So your best bet is probably to change the 644 in /etc/rc back to 666.
- That isn't ideal but it appears to be the best that you can get without
- modifying cmdtool/shelltool source or using some other terminal program
- like xterm.
- --
- Frank Peters - UNIX Systems Programmer - Mississippi State University
- Internet: fwp@CC.MsState.Edu - Phone: (601)325-7030 - FAX: (601)325-8921
-