From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,ddda4889681cf24a X-Google-Attributes: gidf678f,public From: N Madden Subject: Re: login access? Date: 1998/04/03 Message-ID: <3524B7E9.167E@ucc.ie>#1/1 X-Deja-AN: 340475441 Content-Transfer-Encoding: 7bit References: <352483C6.6AB2B312@cica.fr> Mime-Version: 1.0 To: ics@cica.fr, sstiasni@irb.hr Content-Type: text/plain; charset=us-ascii Organization: Mathematics, UCC. Newsgroups: comp.unix.osf.misc Emmanuel Choquet wrote: > > > Is there something like login.access from logdaemon for Digital UNIX (4.0B) > > In fact, what I would like is to prevent a specified user to log on to the > > system from specified host. > > The other possibility is to restrict that user to telnet to somehost. > > Is there anything like that for DU? > write a function in /etc/profile which is a script that everybody executes, > and that you can't bypass (sh and ksh) > use 'w' command to know where does tha guy comes from > use $USER variable to know who's loging in. Sasha, Is the "specificed" user on the remote or local machine - I.e., do you want to 1) stop bob@remote from loging onto the local machine or 2) stop anyone @remote loging on as bob@local ? If (1), the the above won't work. In that case, you'll have to use a TCP wrapper to check the ident daemon on the remote machine. However, it may not have one running. If (2), then Emmanuel's suggestion should work but perhaps you could just change the login shell for the given user - i.e., in /etc/profile change their default shell to a script which you write to check where they are coming from before either kicking them out or running a real shell. Again, you might be able to configure TCP wrapper's "hosts.allow" and "hosts.deny" to do this, but I'm not sure exactly how. Regards, Niall. -- Mathematics Dept., University College, Cork. http://ogham.ucc.ie/~niall