Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!seismo!uunet!van-bc!twg!bill From: bill@twg.bc.ca (Bill Irwin) Newsgroups: comp.unix.xenix.sco Subject: Can a user change groups? Instead of [s]et [u]ser - [s]et [g]roup Message-ID: <995@twg.bc.ca> Date: 2 Mar 91 00:23:22 GMT Reply-To: bill@twg.bc.ca (Bill Irwin) Organization: The Westrheim Group, Vancouver, B.C., Canada Lines: 16 I'm wondering if there is a way for a user to temporarily change their group. That is, register a user as a member of more than one group in the /etc/group file, then have one of the group id numbers set in /etc/passwd, so that they belong to their main group when they log in. If they later want to access some files that are not owned by them, nor their group, but are of a group that they are also a member of - they would change their group, work with the files, then return to their original group. The concept is exactly the way the su facility works. Could it be called "sg" for "set group"? -- Bill Irwin - The Westrheim Group - Vancouver, BC, Canada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uunet!van-bc!twg!bill (604) 431-9600 (voice) | Your Computer bill@twg.bc.ca (604) 430-4329 (fax) | Systems Partner