Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!hsi!wright From: wright@hsi.UUCP (Gary Wright) Newsgroups: comp.windows.x Subject: group permissions and xdm Message-ID: <936@hsi86.hsi.UUCP> Date: 19 Dec 89 16:31:10 GMT Reply-To: wright@hsi.com (Gary Wright) Organization: Health Systems Intl., New Haven, CT. Lines: 40 MIT X11R3, VAX 4.3 BSD, NCD16 terminal: When using xdm, my group permissions as reported by groups(1) are not set correctly. I have done some debugging and have found that the groups are correct in XDM after the setgroups() call (determined by getgroups). After the execve of "/usr/local/lib/xdm/Xsession" the group permissions are incorrect. I though that group permissions are inherited across an exec. Has anyone else seen this behavior? Xdm is running at root. Also, Xsession is executable and is as follows: #!/bin/ksh # # Xsession # # This is the program that is run as the client # for the display manager. This example is # quite friendly as it attempts to run a per-user # .xsession file instead of forcing a particular # session layout # # # KornShell /etc/profile. This file is executed first for every # xdm login session, # export PATH=/usr/local/bin:/usr/local/bin/X11:/usr/hsi/bin:/usr/ucb:/bin:/usr/bin if [ -f $HOME/.xsession ]; then exec $HOME/.xsession else uwm & exec xterm -fn 10x20 -geometry 80x24+20+20 -ls fi Any help would be appreciated. -- Gary Wright ...!uunet!hsi!wright Health Systems International wright@hsi.com