How to prompt for the new password during the first login


 
Thread Tools Search this Thread
Operating Systems Solaris How to prompt for the new password during the first login
# 1  
Old 09-02-2010
How to prompt for the new password during the first login

Hi All,

I have created a new user. Using the below command I have created the user successfully.

Code:
useradd -c "Test user" -d /tmp/test -g Testgroup -s /bin/ksh -u 601 Test


I don't want to set the password using “passwd” command after creating a user.

I want to prompt for the new password during the first login or su to that user.
What flag I want to set for enabling this option.

Please help me.

Regards,
Kalai Smilie

Last edited by Scott; 09-02-2010 at 04:57 AM.. Reason: Code tags, please...
# 2  
Old 09-02-2010
passwd -f Test

see man page for details.
# 3  
Old 09-03-2010
Bug

Hi ,

passwd -f Test will work when we set the password and then when we issue passwd -f Test , then it will prompt for new password during login before that we need to provide the existing password.



I tried the below command after creating the new user.
passwd -d test
passwd -x 0 test

When I login it asks for the new password and does not prompt for existing password.

Regards,
Kalai
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

Only get login prompt and nothing else

When I login as root or any user it prompts for the Login again. never prompts for password.login: root Login incorrect login: Does not matter what user login I try I get the same response (3 Replies)
Discussion started by: KMRWHUNTER
3 Replies

2. HP-UX

Not getting prompt after login

Hi, I'm a normal user in hp-ux box. today i'm unable to get prompt after i successfully logged in into the hp-ux box. what could be the problem? what should should i check? (4 Replies)
Discussion started by: sam_bd
4 Replies

3. Solaris

Not getting command prompt after entering the login password

Hi All, I am not able to get the command prompt after entering the login password on solaris server Only access is through console. Server type : sun4u sparc SUNW,Netra-T12 bsnl-north-in > ssh 10.147.17.207 jtoin Connecting to 10.147.17.207 as user jtoin Password: Last login: Wed Mar 5... (1 Reply)
Discussion started by: sandeep_kmehra
1 Replies

4. Red Hat

Not getting login prompt

Hi, we have a server that runs on redhat linux. It was working fine until last year and all of sudden we are not able to ssh on to that server. we are getting the ping response but not getting the login prompt when tried to connect via ssh. Port 22 is opened and i have tested it out using... (6 Replies)
Discussion started by: phanidhar6039
6 Replies

5. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

6. Solaris

expired password prompt at ssh login

Hi, I am using DSEE 6.3 to authenticate and authorize my Solaris 9 and 10 users. Everything works fine except password expiration. I use built-in global password policy for all users. The policy works well. However I could not find the right pam configuration in order to prompt users at ssh... (2 Replies)
Discussion started by: niyazi
2 Replies

7. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

8. AIX

Root login does not prompt for password

I've an LPAR set up on a P690. The LPAR ran AIX v5.2. I then did an upgrade (using the migration option) to AIX v5.3. I've now encountered the problem that, at the console, I cannot log in as root (or as anyone else that matter). I get the login prompt, enter "root " and then the shell returns to... (1 Reply)
Discussion started by: morgan_g
1 Replies

9. UNIX for Dummies Questions & Answers

No login prompt

Hi, I am not getting login prompt when connecting to the red hat linux 7.2 server from windows machine and i am unable to login to server, after giving username at login prompt cusor blinks, no respnse. I can able to login to server thro ssh. Pl can i know how to solve this problem. Very badly... (4 Replies)
Discussion started by: bache_gowda
4 Replies
Login or Register to Ask a Question