Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!unizh!gorgo!meyer From: meyer@gorgo.ifi.unizh.ch (Urs Meyer) Newsgroups: comp.sys.sgi Subject: Re: rsh (remote shell) -- undocumented(?) feature(?) Keywords: umask Message-ID: <1990Aug29.111752.18145@gorgo.ifi.unizh.ch> Date: 29 Aug 90 11:17:52 GMT References: <1406@contex.UUCP> Organization: University of Zurich, Department of Computer Science Lines: 35 In article <1406@contex.UUCP> bill@contex.UUCP (Bill Phillips) writes: > >I just discovered an apparently undocumented feature of the remote >shell rsh (not to be confused with the restricted shell of the same >name). rsh imposes a umask of 022 on all programs run through it. > [...] >Questions: [...] > - might this be under the control of some configuration file? > I have definitely determined that neither ~/.profile nor > /etc/profile was responsible. umask 22 is set in /etc/profile and /etc/cshrc. > - if this is a known "feature", is there some flag for rsh, > or some other way of turning it off (other than prepending > "umask 0;" to every command line sent through rsh)? Probably not. >We'll be turning off the umask from within the programs run by rsh >now, but that only applies to our own software, of course. Try if changing /etc/{cshrc,profile} helps before changing your software. >Thanks, >bill >-- >William F Phillips, Sr. Engr., Development Systems Development Group, > Xyvision Design Systems + 101 Edgewater Drive + Wakefield, MA, USA > uunet!contex!bill (formerly wfp@well & wfp@dasys1) Urs Meyer ---------- meyer@ifi.unizh.ch, {uunet,...}!mcsun!cernvax!unizh!meyer University of Zurich, Dept of Computer Science, Multimedia Lab, CH-8057 Zurich