Sponsored Content
Operating Systems AIX Setting root pasword to null with force change on first login Post 302994536 by milegrin on Friday 24th of March 2017 08:44:01 AM
Old 03-24-2017
Greetings
Quote:
Originally Posted by rbatte1
Would it not be easier to have a procedure that blanks the root password after the recovery from the GI is done?
Either would be work; do you have the code to do so (or can point me to a doco I may use to build my own)?

m
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Force Password Change...RedHat 7.1

Hello, I just finished adding a bunch of new users to the linux servers I administer. I add users either via command line or via linuxconf, but I can't seem to find out how to force users to change their passwords on their first login to the system. Anyone know how to do that? My HP-UX... (1 Reply)
Discussion started by: vancouver_joe
1 Replies

2. UNIX for Advanced & Expert Users

Force to change to a different password

Hi, I notice in my Sun Solaris 8 sparc worstation, I am able to change my password to same existing password. That is, right now my password is abc, and I change it with "passwd" command and change it abc again. It will accept. How can I make it such that it will not accept same password?... (3 Replies)
Discussion started by: champion
3 Replies

3. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

4. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

5. Shell Programming and Scripting

force to change password(shell script)

hi How can I force user to change of password by modifying the password expiry and the grace period so that the user has at least 1 week to login and change the password...... (3 Replies)
Discussion started by: tjay83
3 Replies

6. Shell Programming and Scripting

force to change password(by modifying /etc/shadow)

hi by modifying /etc/shadow how can I Force a change of password so that user has at least 1 week to login? I did it by using: echo "enter username to force password change" read user; chage -M 7 $user; How can I do it by modifying /etc/shadow?? (6 Replies)
Discussion started by: tjay83
6 Replies

7. Solaris

Force user to change passwd on first login

Hello All, How to force user to change his login passwd on his first login in solaris 10 ? while adding user do we need to set the password in theis case?? (7 Replies)
Discussion started by: saurabh84g
7 Replies

8. UNIX for Dummies Questions & Answers

Setting up VSFTPD (force SSL?)

Hi all, Im having trouble setting up an FTP server and forcing SSL. At the moment i can connect to the server externally using normal FTP but when i try FTP with SSL i get STATUS:> Connected. Exchanging encryption keys... ERROR:> SSL: Error in negotiating... (5 Replies)
Discussion started by: mokachoka
5 Replies

9. Red Hat

how to force a user to change the password

RHEL 5 update 4. How to force a user to change the password at his next logon. Thanks in advance. (8 Replies)
Discussion started by: uxadmin007
8 Replies

10. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies
passwd(5yp)															       passwd(5yp)

Name
       passwd - password file description with the Yellow Pages service implemented

Description
       The  file  stores  initial login information, including passwords for each user in the system.  Regardless of whether or not the system has
       the Yellow Pages service implemented, the file contains the following information:

       Name (login name, contains no uppercase)
       Encrypted password
       Numerical user ID
       Numerical group ID
       User's real name, office, extension, home phone.
       Initial working directory
       Program to use as Shell

       The name can contain an ampersand (&), meaning insert the login name.  This information is set by the command and used by the command.

       This is an ASCII file.  Each field within each user's entry is separated from the next by a colon.  Each user is separated from the next by
       a new line.  If the password field is null, no password is demanded; if the shell field is null, the system defaults to the shell.

       This  file resides in the directory.  Because of the encrypted passwords, it can and does have general read permission and can be used, for
       example, to map numerical user IDs to names.

       Appropriate precautions must be taken to lock the file against simultaneous changes if it is to be edited with a text editor.  The  command
       does the necessary locking.

       In  a Yellow Pages environment, the file can also have a line beginning with a plus (+), which means to incorporate entries from the Yellow
       Pages data base.  There are three styles of + entries: by itself, + means to insert the entire contents of the Yellow Pages  password  file
       at  that  point;  +name means to insert the entry (if any) for name from the Yellow Pages at that point; +@name means to insert the entries
       for all members of the network group name at that point.  If a + entry has a nonnull password, directory, gecos, or shell  field,  it  will
       override what is contained in the Yellow Pages.	The numerical user ID and group ID fields cannot be overridden.

Examples
       Here is a sample file:
       root:q.mJzTnu8icF.:0:10:Privileged Account:/:/bin/csh
       jcj:6k/7KCFRPNVXg:508:10:JC Javert:/usr2/jcj:/bin/csh
       +john:
       +@documentation:no-login:
       +:::Guest

       In  this  example,  there  are  specific entries for users root and jcj, in case the Yellow Pages are temporarily out of service.  Alterna-
       tively, a user may need specific login information on a given system that differs from the information contained in the	Yellow	Pages  map
       for that user.  The user, john, will have his password entry in the Yellow Pages incorporated without change.  Anyone in the netgroup docu-
       mentation will have their password field disabled, and anyone else will be able to log in with their usual password, shell, and home direc-
       tory, but with a gecos field of Guest.

Files
See Also
       chfn(1), finger(1), login(1), passwd(1), crypt(3), getpwent(3), group(5), adduser(8), vipw(8)

																       passwd(5yp)
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy