Professional Web Applications Themes

Account is disabled - SCO

Hello,   scoadmin account -> unlock How can i unlock a account from the shell ? S.Marquardt...

  1. #1

    Default Account is disabled

    Hello,
     

    scoadmin account -> unlock

    How can i unlock a account from the shell ?

    S.Marquardt

    Stefan Guest

  2. #2

    Default Re: Account is disabled

    Stefan Marquardt <de> wrote: 
     [/ref]
     
     


    http://aplawrence.com/Bofcusm/1.html


    --
    com Unix/Linux/Mac OS X resources: http://aplawrence.com
    Get paid for writing about tech: http://aplawrence.com/publish.html
    tony@aplawrence.com Guest

  3. #3

    Default Re: Account is disabled

    Stefan Marquardt <de> wrote in message news:<com>... 
    >
    > scoadmin account -> unlock
    >
    > How can i unlock a account from the shell ?
    >
    > S.Marquardt[/ref]

    I don't know if this will help but here it is anyway:
    On the machine which created the account ID, as root,
    type as one single line (substituting the real user ID for <userid>:

    usermod -x '{administrativeLockApplied 0} {unsuccessfulLoginAttempts 0}' <userid>

    DDinAZ
    Dave Guest

  4. #4

    Default Re: Account is disabled

    On Fri, 10 Oct 2003 11:22:33 +0200, Stefan Marquardt
    <de> wrote:
     
    >
    >scoadmin account -> unlock
    >
    >How can i unlock a account from the shell ?[/ref]

    By shell, I assume you mean a script or command line.
    I scribbled this mess to test for locked accounts. It might give you
    some clues. I have a similar version that runs from cron and sends me
    email every time an account gets mysteriously locked.

    :
    # (#) lock+bagels. Reports login and tty C2 locks.
    # by Jeff Liebermann 03/12/95
    #
    # test for user login locks
    cd /tcb/files/auth
    users=`find . -type f -print` # get list of users.
    for i in $users # for each user.
    do
    if (grep ':u_lock:' $i > /dev/null ) # any acct locks?
    then # tell someone
    echo "Acct: `basename $i` is locked"
    fi

    if (grep ':u_type=retired:' $i > /dev/null ) # is the account
    retired?
    then # tell someone
    echo "Acct: `basename $i` is retired"
    fi
    done

    :
    # test for tty locks?
    if (grep ':t_lock:' /etc/auth/system/ttys > /dev/null)
    then
    # get the ttys with the locks
    echo "Terminals:`grep ':t_lock:' /etc/auth/system/ttys \
    | cut -d: -f1`\nare locked"
    fi


    --
    Jeff Liebermann 150 Felker St #D Santa Cruz CA 95060
    (831)421-6491 pgr (831)336-2558 home
    http://www.LearnByDestroying.com AE6KS
    santa-cruz.ca.us com
    Jeff Guest

Similar Threads

  1. User Account Disabled
    By GM in forum Linux / Unix Administration
    Replies: 7
    Last Post: September 11th, 05:24 PM
  2. Disabled Administrative Account
    By Brian Sponcil in forum Windows Setup, Administration & Security
    Replies: 2
    Last Post: July 5th, 10:57 PM
  3. administrative account disabled
    By in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 5th, 09:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139