Sponsored Content
Operating Systems HP-UX Temporarily Disable User Account Post 302104329 by sb008 on Wednesday 24th of January 2007 06:54:20 PM
Old 01-24-2007
Depending on your version of HP-UX, change the "crypted password" field in the /etc/passwd or /etc/shadow file in a string which never can be generated.

Commonly a "*" or something like "NP" is used.

Whatever the password is, it can never result in a crypted string which is equal to "*" or "NP".

Too unlock the account, simply set a new password for the locked account using, as "root", the command "passwd <user>"
 

10 More Discussions You Might Find Interesting

1. AIX

How to disable cd to other folder for a user

How to disable user for cd to some another folders other than his folders. AIX 5L 5.2 Thanks Dilip. (1 Reply)
Discussion started by: Dilippatel
1 Replies

2. UNIX for Dummies Questions & Answers

delete or disable the system generated account

I have this unix version 3.0 "UNIX_SV server 4.0 3.0 3425 Pentium II(TM)-ISA/PCI" can i delete or disable the system generated account as "daemon";"uucp";"sys";"adm";"listen";"bin" and if yes how can i do it? Regards (1 Reply)
Discussion started by: sak900354
1 Replies

3. AIX

how to block a user temporarily?

hi to all i'm a newbie on aix. how would i block temporarily a few users in accessing our aix server so that other users may not be affected by th cpu usage...because if all of them accessing our server the CPU utilization goes high... thanks winky (3 Replies)
Discussion started by: winky
3 Replies

4. Solaris

Root account - disable expiry

I couldnt find this in any other post - so hoping someone can help out. I want to set password expiry (or rather I have to) for a number of users on my solaris 9 system. I know i can set the following options in the /etc/default/passwd file to do it and then just type a passwd -f <username> to... (6 Replies)
Discussion started by: frustrated1
6 Replies

5. AIX

How to disable user login infor?

If user login and don't do anything in 15 mins, the user is kicked off from the server. how to disable it? (5 Replies)
Discussion started by: rainbow_bean
5 Replies

6. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

7. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

8. Solaris

Disable telnet for a particular user

On Solaris 8 is there anyway to disable telnet for a particular user and not for entire system altogether? I would like the user to retain a shell and so creating a noshell like ftp account is not an option. (14 Replies)
Discussion started by: boshyd
14 Replies

9. Shell Programming and Scripting

Grep: a better way to temporarily disable colors?

i was just using gnu grep grep (GNU grep) 2.20 and when running a command i kept getting really weird results, namely that eval and echo and various combinations would not run the command BIN="${FFMPEG} -i ${INPUT} ${setX265} ${videoCrop} ${audioOptions} ${OUTPUT}.mkv" with this... (7 Replies)
Discussion started by: f77hack
7 Replies

10. Solaris

Disable Inactive User in Solaris 11

Goal: To disable a Solaris user, after that user was inactive for X days. My understanding for linux was that there was no systematic way to disable inactive users, therefore we had to set a password expiration via /etc/default/passwd, MaxWeeks; then in /etc/default/useradd (/etc/shadow), the... (1 Reply)
Discussion started by: Drasavokian
1 Replies
AUTH_ENUMERATE(3)					      Double Precision, Inc.						 AUTH_ENUMERATE(3)

NAME
auth_enumerate - Obtain list of accounts SYNOPSIS
#include <courierauth.h> auth_enumerate(int (*callback_func) (const char *, uid_t, gid_t, const char *, const char *, const char *, void *), void *callback_arg); DESCRIPTION
auth_enumerate enumerates all of the available accounts. auth_enumerate repeatedly calls callback_func, once for each account. callback_func receives the following arguments: o Account name. o Account's numeric userid. o Account's numeric groupid. o Account's home directory. o Account's mailbox (if defined, may be NULL, which indicates the default mailbox location). o Account's options string (if defined, may be NULL) o callback_arg, verbatim. After invoking callback_func for the last account, auth_enumerate invokes callback_func one more time with all parameters set to NULL or 0. If auth_enumerate encounters an error it will terminate without calling callback_func with all NULL or 0 parameters. This can be used to determine whether a partial list of accounts was received. Note Some back-end Courier authentication modules do not implement account enumeration, so this function may not be available in all configurations. SEE ALSO
authlib(3)[1], auth_generic(3)[2], auth_login(3)[3], auth_getuserinfo(3)[4], auth_passwd(3)[5]. NOTES
1. authlib(3) authlib.html 2. auth_generic(3) auth_generic.html 3. auth_login(3) auth_login.html 4. auth_getuserinfo(3) auth_getuserinfo.html 5. auth_passwd(3) auth_passwd.html Double Precision, Inc. 08/23/2008 AUTH_ENUMERATE(3)
All times are GMT -4. The time now is 11:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy