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 19:30:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: "D. Aaron Sawyer" Newsgroups: comp.unix.tru64 Subject: Re: Force the user to "su" Date: Mon, 22 Oct 2001 22:29:43 -0400 Organization: Hardly Any Message-ID: <3BD4D617.94DBFECB@110.net> References: Reply-To: aaron@110.net NNTP-Posting-Host: a5.f7.3d.67 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 23 Oct 2001 02:29:43 GMT X-Mailer: Mozilla 4.77 (Macintosh; U; PPC) X-Accept-Language: en Xref: archiver1.google.com comp.unix.tru64:5487 Alternately, render the shared user account not-login-able. Edit /etc/passwd, the line, replace the encrypted password+salt (between 1st & 2nd ':') with something the encryption algorithm is _extremely_ unlikely to generate. E.g., '*', or '*NoLogin*'. shared_user:*:uid:gid:GCOS comment field:homedir:shell Specify /bin/rsh for the shell if you are feeling generous, /bin/true if nasty. Above to be modified appropriately in the presence/use of shadow password file and/or enhanced security. Should prevent 'su - shared_user' as well. =Aaron Adam Price wrote: > > "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