Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* restricting certain users from loggin in
@ 2001-09-21 15:28 Joshua Romero
  2001-09-21 20:57 ` Newbie JrSysAdmin
  2001-09-23 22:58 ` Emma
  0 siblings, 2 replies; 6+ messages in thread
From: Joshua Romero @ 2001-09-21 15:28 UTC (permalink / raw)


I need help writing a script to restrict user logins to specific
userids.  If anyone other than users in the group 'privusr' tries to
login, they get a message saying "SORRY, You are not authorized to
access this system...

Any help would be greatly appreciated.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: restricting certain users from loggin in
  2001-09-21 15:28 restricting certain users from loggin in Joshua Romero
@ 2001-09-21 20:57 ` Newbie JrSysAdmin
  2001-09-23 23:02   ` Emma
  2001-09-24 15:52   ` Joshua Romero
  2001-09-23 22:58 ` Emma
  1 sibling, 2 replies; 6+ messages in thread
From: Newbie JrSysAdmin @ 2001-09-21 20:57 UTC (permalink / raw)


jlkromero@yahoo.com (Joshua Romero) wrote in message news:<3bc0730e.0109210728.63f7422c@posting.google.com>...
> I need help writing a script to restrict user logins to specific
> userids.  If anyone other than users in the group 'privusr' tries to
> login, they get a message saying "SORRY, You are not authorized to
> access this system...
> 
> Any help would be greatly appreciated.

i apologize, but i'm trying to figure out how silly this post is.

why don't you simply remove invalid users from the system? (ie, delete
their entries from /etc/passwd)

if you want to "keep them around" but not permit logins for now, then
change their attribute to "no password- setuid only"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: restricting certain users from loggin in
  2001-09-21 15:28 restricting certain users from loggin in Joshua Romero
  2001-09-21 20:57 ` Newbie JrSysAdmin
@ 2001-09-23 22:58 ` Emma
  2001-09-24 15:53   ` Joshua Romero
  1 sibling, 1 reply; 6+ messages in thread
From: Emma @ 2001-09-23 22:58 UTC (permalink / raw)




Joshua Romero wrote:

> I need help writing a script to restrict user logins to specific
> userids.  If anyone other than users in the group 'privusr' tries to
> login, they get a message saying "SORRY, You are not authorized to
> access this system...
>
> Any help would be greatly appreciated.

You could modify /etc/profile, or /etc/csh.login to check for 'privusr'
membership (e.g. using the "groups" command).

Emma



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: restricting certain users from loggin in
  2001-09-21 20:57 ` Newbie JrSysAdmin
@ 2001-09-23 23:02   ` Emma
  2001-09-24 15:52   ` Joshua Romero
  1 sibling, 0 replies; 6+ messages in thread
From: Emma @ 2001-09-23 23:02 UTC (permalink / raw)




Newbie JrSysAdmin wrote:

> jlkromero@yahoo.com (Joshua Romero) wrote in message news:<3bc0730e.0109210728.63f7422c@posting.google.com>...
> > I need help writing a script to restrict user logins to specific
> > userids.  If anyone other than users in the group 'privusr' tries to
> > login, they get a message saying "SORRY, You are not authorized to
> > access this system...
> >
> > Any help would be greatly appreciated.
>
> i apologize, but i'm trying to figure out how silly this post is.
>

Maybe the administrator wants to prevent non-'privusr' users from logging in at specific times, e.g. during
month-end closings.  It'd be rather cumbersome to remove and later re-add or to modify all your other user
accounts.

Emma



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: restricting certain users from loggin in
  2001-09-21 20:57 ` Newbie JrSysAdmin
  2001-09-23 23:02   ` Emma
@ 2001-09-24 15:52   ` Joshua Romero
  1 sibling, 0 replies; 6+ messages in thread
From: Joshua Romero @ 2001-09-24 15:52 UTC (permalink / raw)


utlonghornsrule@yahoo.com (Newbie JrSysAdmin) wrote in message news:<2de05464.0109211257.77fdf355@posting.google.com>...
> jlkromero@yahoo.com (Joshua Romero) wrote in message news:<3bc0730e.0109210728.63f7422c@posting.google.com>...
> > I need help writing a script to restrict user logins to specific
> > userids.  If anyone other than users in the group 'privusr' tries to
> > login, they get a message saying "SORRY, You are not authorized to
> > access this system...
> > 
> > Any help would be greatly appreciated.
> 
> i apologize, but i'm trying to figure out how silly this post is.
> 
> why don't you simply remove invalid users from the system? (ie, delete
> their entries from /etc/passwd)
> 
> if you want to "keep them around" but not permit logins for now, then
> change their attribute to "no password- setuid only"


Sorry. I guess i did not make myself clear.  I cannot delete users
because they still need access through a 3rd-party program (which by
the way uses the /etc/passwd to check access.)  But I've figured it
out now.  I modifyed the /etc/profile and now prevents non -privusr's
from loggin in to the terminal.  But still lets them log in through
NT.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: restricting certain users from loggin in
  2001-09-23 22:58 ` Emma
@ 2001-09-24 15:53   ` Joshua Romero
  0 siblings, 0 replies; 6+ messages in thread
From: Joshua Romero @ 2001-09-24 15:53 UTC (permalink / raw)


Emma <evdhn@advalvas.be> wrote in message news:<3BAE6976.D4738F4C@advalvas.be>...
> Joshua Romero wrote:
> 
> > I need help writing a script to restrict user logins to specific
> > userids.  If anyone other than users in the group 'privusr' tries to
> > login, they get a message saying "SORRY, You are not authorized to
> > access this system...
> >
> > Any help would be greatly appreciated.
> 
> You could modify /etc/profile, or /etc/csh.login to check for 'privusr'
> membership (e.g. using the "groups" command).
> 
> Emma


Thanks Emma!  That's exactly what I did.  Fortunately I figured it out myself.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-24 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-21 15:28 restricting certain users from loggin in Joshua Romero
2001-09-21 20:57 ` Newbie JrSysAdmin
2001-09-23 23:02   ` Emma
2001-09-24 15:52   ` Joshua Romero
2001-09-23 22:58 ` Emma
2001-09-24 15:53   ` Joshua Romero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox