From man passwd_security (nicely hidden away, thanks IBM)
Quote:
password Specifies the encrypted password. The system encrypts the password
created with the passwd command or the pwdadm command. If the password is empty,
the user does not have a password. If the password is an * (asterisk), the user
cannot log in. The value is a character string. The default value is *.
I don't seem to be able to find a documented way to nullify it. Perhaps a quick and cautious edit would be best.
If the user you are wanting to set a null password for is RBATTE1 (for want of a better example) you can try this:-
You would be sensible to try this on a copy of the file first to assure yourself that it does what you expect.
The bit in red is a single escape character. It is generated by pressing Cntl-V then Escape whilst typing in the command.
I hope that this helps.
Robin
Liverpool/Blackburn
UK
Last edited by rbatte1; 08-02-2013 at 08:19 AM..
Reason: Pressed submit too early!
I have to agree to XrAy on this: even though there are ingeníous ways to "massage" the system to do whatever, like the one rbatte1 has provided, it is generally better to use the provided utilities. This sometimes helps and never hurts.
It is good to know these workarounds (if for no other reason than to know your system better), so i think there is value in rbatte1's contribution, but one should stick to the supported methods as long as possible at any rate. (For the same reason, i.e., i would always use "chinet" to modify lasting routing entries instead of using "route" and then patch them into the ODM, even if i might succeed in doing so.)
Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
HI all,
I have wrongly given a wrong home directory to a user. This dir is very critical for my production environment(Can;t afford to lose it for a single minute)
Now i want to delete that user,
Whenever i try to delete user it tries to delete its home dir.
Commnd i use:
userdel
... (9 Replies)
I am new to shell scripting, and have not done much programming in several years. So I am very rusty at this at best. I know my way around the linux command line, but actually scripting is something I have not done too much of.
I have been tasked to come up with a script that will pull all... (5 Replies)
Hi there, normally if I want to remove a user tht I have added to a specific group, i would do the following
this is what my group2 looks like
# grep group2 /etc/group
group2:x:7777:user2,user1,user4
user1 has been defined in a few groups
# id -nG user1
group1 group2 group3
So... (3 Replies)
I have multiple .prm files that contain user ID's. The .prm files reside in multiple directories that allow users access to different areas of the system. (see below)
current directory /apps/fourgen/accounting/menu
drwxrwxrwx 16 phil infotech 512 Sep 7 2002 apmenu... (8 Replies)
Hello everyone and let me start off by thanking anyone who can help with this.
I work for a company that uses Unix as one of their servers. I'm not at all familar with Unix beyond logging after I restart the server:rolleyes: I'm looking for some command that will bring me up a list of current... (3 Replies)
Helo ,
I m using linux pam library for user and its password authentication.
I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me
$ su - ram
Password:
You are required to change your password immediately... (12 Replies)
Hello,
I am trying to remove an employing from our database, I have removed all her files but can't remove the directory because of the hidden files.
How do I remove the user?
Thanks, (1 Reply)