Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disabling user id on AIX

4,909 views
Skip to first unread message

Hasan Quadri

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hi,

Can someone tell me how to disable a user id on AIX? On other UNIX
platforms I can do it with "passwd -l", but looking at the man pages on
AIX there is no -l switch.

Thanks in advance,
Hasan

Norman Levin

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hasan Quadri wrote:
>
> Hi,
>
> Can someone tell me how to disable a user id on AIX? On other UNIX
> platforms I can do it with "passwd -l", but looking at the man pages on
> AIX there is no -l switch.
>
** you can go in thru smitty and 'lock' the account. Don't remember what
file that hits.
OR - you can go into /etc/passwd and change the ! to an * in the 2nd field.

--
Norman Levin

Rob Kouwenberg

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hasan Quadri <hqu...@yahoo.com> wrote:

> Can someone tell me how to disable a user id on AIX? On other UNIX
> platforms I can do it with "passwd -l", but looking at the man pages on
> AIX there is no -l switch.

smitty user

Or to dev-null him or her :
smitty rmuser

John Jaszczak

unread,
May 2, 2000, 3:00:00 AM5/2/00
to

"Hasan Quadri" <hqu...@yahoo.com> wrote in message
news:390E5140...@yahoo.com...
> Hi,

>
> Can someone tell me how to disable a user id on AIX? On other UNIX
> platforms I can do it with "passwd -l", but looking at the man pages on
> AIX there is no -l switch.
>
> Thanks in advance,
> Hasan
>
>

To lock an individual user account use the following syntax:

chuser account_locked=false <userid>

The nice thing about AIX is you can lock the user's account, but not remove
the password information. So, if you have someone who you wish to allow
access to your system, you can create an account and then enable and disable
the account as you wish. When I create new users, I always lock their
accounts until I am certain they are ready to login for the first time. That
way I can set a deafult password for them, but that account with the default
password is not available for use until I decide to unlock it.

-JAZZ

John Jaszczak

unread,
May 2, 2000, 3:00:00 AM5/2/00
to

"John Jaszczak" <jjas...@harmonic.com> wrote in message
news:J0zP4.1903$24.7...@news7.onvoy.net...

Jazz, you big dough-head!
Try this instead:

chuser account_locked=true <userid>

The first example unlocks an account. Time for some coffee.

-JAZZ

Meinolf Sondermann

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hasan Quadri wrote:
>
> Hi,
>
> Can someone tell me how to disable a user id on AIX? On other UNIX
> platforms I can do it with "passwd -l", but looking at the man pages on
> AIX there is no -l switch.
>
> Thanks in advance,
> Hasan


Hello Hasan,

here is a third suggestion:

chuser account_locked=true username

--
Bye
Meinolf

Jim Cullum

unread,
May 16, 2000, 3:00:00 AM5/16/00
to
On Tue, 02 May 2000 03:54:02 GMT, Hasan Quadri <hqu...@yahoo.com>
posted in comp.unix.aix:

>Hi,
>
>Can someone tell me how to disable a user id on AIX? On other UNIX
>platforms I can do it with "passwd -l", but looking at the man pages on
>AIX there is no -l switch.
>
>Thanks in advance,
>Hasan
>
>

chuser account_locked='true' [username]

Regards,
Jim Cullum

jcu...@marssupply.com Phone: 952.703.8658
WP & RS Mars Co. 215 E. 78th St. Bloomington, MN 55420
Fax: 952.884.1329 Main: 952.884.9388 800.862.6093

0 new messages