From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2a12bf3dd9c2285b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-10-22 16:29:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "Adam Price" Newsgroups: comp.unix.tru64 References: Subject: Re: Force the user to "su" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Tue, 23 Oct 2001 00:23:01 +0100 NNTP-Posting-Host: 213.105.81.105 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1003793058 213.105.81.105 (Tue, 23 Oct 2001 00:24:18 BST) NNTP-Posting-Date: Tue, 23 Oct 2001 00:24:18 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.unix.tru64:5483 "Bill" wrote in message news:be6c7217.0110221442.7291447d@posting.google.com... > Hello ALL, > > I have a question, How can force the user to login to his account and > "su" to another account (not root) on the system? > > NOTE: the user knows both passwords, for his account and for the > account he needs to "su" to, that's why i used the term "force". > > I want them not to login to that account, but instead to "su" to it, > so i have a trace on who is on the system, because this account is > used by a group of people, and when i do a "who" or "w" i see the same > username for all. Put an exit in the .profile for the shared user, that way users who log in directly as the shared user will get logged out straight away, but users who log in as themselves and su will get access. Adam