Unix Technical Forum

Restricting Number of Logins

This is a discussion on Restricting Number of Logins within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello all, I want to restrict the number of concurrent logins for a particular userid. how can i achieve ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 07:52 PM
suhailh@yahoo.com
 
Posts: n/a
Default Restricting Number of Logins

Hello all,

I want to restrict the number of concurrent logins for a particular userid.

how can i achieve this?

Thanks in advance.

suhail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 07:52 PM
RobH
 
Posts: n/a
Default Re: Restricting Number of Logins


<suhailh@yahoo.com> wrote in message
news:bde918fd.0307212204.3b2dec2e@posting.google.c om...
> Hello all,
>
> I want to restrict the number of concurrent logins for a particular

userid.
>
> how can i achieve this?
>
> Thanks in advance.
>
> suhail


Setup an additional primary authentication method on the relevant user
account.
You'll need to define the additional primary authentication method in

/etc/security/login.cfg

and create somekind of secure script or program to return 0 or 1
depending on how many concurrent logins you want.

NB if you are accessing this account via some versions of ssh this won't
work because ssh tends to use generic Unix authentication and thus
ignores AIX authentication methods. AFAIK the latest version of OpenSSH
works correctly.

You could probably do something similar using PAM but I've never tried.


RobH


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 07:52 PM
Mark Taylor
 
Posts: n/a
Default Re: Restricting Number of Logins


this might help

http://groups.google.com/groups?q=ma....aix+group:co-
mp.unix.aix+group:comp.unix.aix&hl=en&lr=&ie=UTF-8&oe=UTF-8&group=comp.-
unix.aix&scoring=d&selm=33315046.25C%40xs4all.nl&r num=7

or just search for "maxlogin" on comp.aix.unix

Rgds
Mark

--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 07:52 PM
RobH
 
Posts: n/a
Default Re: Restricting Number of Logins


"Mark Taylor" <member20596@dbforums.com> wrote in message
news:3137473.1058867883@dbforums.com...
>
> this might help
>
>

http://groups.google.com/groups?q=ma....aix+group:co-
>

mp.unix.aix+group:comp.unix.aix&hl=en&lr=&ie=UTF-8&oe=UTF-8&group=comp.-
> unix.aix&scoring=d&selm=33315046.25C%40xs4all.nl&r num=7
>
> or just search for "maxlogin" on comp.aix.unix
>

Hi Mark,
ever used http://tinyurl.com ?

Are you in Basingstoke, UK by any chance?

RobH


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com