Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Unlocking a user account
@ 1997-06-06  4:00 Anthony McGarr
  1997-06-06  4:00 ` Matt Cheek
  1997-06-06  4:00 ` Torsten Hehl
  0 siblings, 2 replies; 3+ messages in thread
From: Anthony McGarr @ 1997-06-06  4:00 UTC (permalink / raw)



Version 4.0b.C2 enabled .. How do you unlock a user account from the
command line.
Due to a bug in the cde we cannot use dxaccounts.


Thanks
Anthony



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

* Re: Unlocking a user account
  1997-06-06  4:00 Unlocking a user account Anthony McGarr
  1997-06-06  4:00 ` Matt Cheek
@ 1997-06-06  4:00 ` Torsten Hehl
  1 sibling, 0 replies; 3+ messages in thread
From: Torsten Hehl @ 1997-06-06  4:00 UTC (permalink / raw)
  To: delphig


Anthony McGarr wrote:
> 
> Version 4.0b.C2 enabled .. How do you unlock a user account from the
> command line.
> Due to a bug in the cde we cannot use dxaccounts.
> 
It's pretty simple:

dxaccounts puts a 'Nologin' string in front of the encrypted password.
Therefore you can use vi/sed or whatever you like to remove these
strings. Here is an example:

user:NologindnEKsA/UL7ho.:7119:9115:Mr. User:/home/user:/bin/tcsh

sed -e 's/user:Nologin/user:/' passwd > passwd.unlocked 

should do the job in this case.

Best wishes,

Torsten Hehl.



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

* Re: Unlocking a user account
  1997-06-06  4:00 Unlocking a user account Anthony McGarr
@ 1997-06-06  4:00 ` Matt Cheek
  1997-06-06  4:00 ` Torsten Hehl
  1 sibling, 0 replies; 3+ messages in thread
From: Matt Cheek @ 1997-06-06  4:00 UTC (permalink / raw)



Anthony McGarr (delphig@dsuper.net) wrote:
> Version 4.0b.C2 enabled .. How do you unlock a user account from the
> command line.
> Due to a bug in the cde we cannot use dxaccounts.

Anthony,

As root, run the following:

/usr/tcb/bin/edauth userid (of course substituting the user account name)

This should pop you into the editor specified by the $EDITOR environment
variable with the protected password entry for that account. Simply find
and remove the "u_lock" entry, then save quit the editor.

For example:

This account is locked:

mcheek:u_name=mcheek:u_id#201:u_pwd=VIyfrxO1cdD.Y:u_succhg#865377576:\
        :u_unsucchg#865347935:u_policy:u_pwchanger=mcheek:u_oldcrypt#0:\
        :u_suclog#865205124:u_suctty=ttyp7:u_lock:chkent:

After removing the "u_lock" parameter on the third line, now this
account is unlocked:

mcheek:u_name=mcheek:u_id#201:u_pwd=VIyfrxO1cdD.Y:u_succhg#865377576:\
        :u_unsucchg#865347935:u_policy:u_pwchanger=mcheek:u_oldcrypt#0:\
        :u_suclog#865205124:u_suctty=ttyp7:chkent:


Hope this helps.
Matt
--
MCI Telecommunications       | Matthew.Cheek@MCI.Com
2424 Garden of the Gods Road | MCI Mail: 201-2666
Colorado Springs, CO  80919  | Tel: (719) 535-6677



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

end of thread, other threads:[~1997-06-06  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-06  4:00 Unlocking a user account Anthony McGarr
1997-06-06  4:00 ` Matt Cheek
1997-06-06  4:00 ` Torsten Hehl

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