Useradd and passwd in HP-UX | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Useradd and passwd in HP-UX

HP-UX


Tags
useradd and passwd in hp-ux

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-11-2013
yadavricky yadavricky is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 16 October 2014, 8:07 AM EDT
Posts: 43
Thanks: 21
Thanked 0 Times in 0 Posts
RedHat Useradd and passwd in HP-UX

Dear All,
I have Perl Script which previously running on solaris and now our system is moved to HP UX.

The script is creating the users on unix and database.

1. When we are creating the new user, useradd keep newly created account in locked state
2. In script we were using Passwd -u to unlock the account.

Now the issue is that in HP UX we don't have -u option with passwd cmd.

Can somebody guide me if we have some other utility which is replaced by passwd -u in HP UX.

Thanks
Sponsored Links
    #2  
Old 04-11-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 20 November 2014, 3:13 PM EST
Location: Switzerland - GE
Posts: 5,911
Thanks: 164
Thanked 431 Times in 403 Posts
Its passwd d ... in HP-UX... look at the man pages...
The Following 2 Users Say Thank You to vbe For This Useful Post:
Dheepak s (07-05-2013), yadavricky (04-11-2013)
Sponsored Links
    #3  
Old 04-11-2013
yadavricky yadavricky is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 16 October 2014, 8:07 AM EDT
Posts: 43
Thanks: 21
Thanked 0 Times in 0 Posts
RedHat passwd -u and passwd -d

Quote:
Originally Posted by vbe View Post
Its passwd d ... in HP-UX... look at the man pages...
From Solaris
-d Deletes password for name and unlocks
the account. The login name is not
prompted for password. It is only appli-
cable to the files and ldap reposi-
tories.

-u Unlocks a locked password for entry
name. See the -d option for removing the
locked password, or to set a password to
allow logins.

From HP UX

-d Allow user to login without a password by deleting it.
This option unlocks/activates the user account if found
locked/deactivated.


But the strange thing is that if i try to login with after
passwd -d username

it ask for password when i provide the password it again ask for password with Access denied message

when i do
su myuser
it does not ask for password
and when i use id command it show the

uid=132(myuser) gid=107(myc)

Last edited by yadavricky; 04-11-2013 at 01:16 PM..
    #4  
Old 04-12-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 20 November 2014, 3:13 PM EST
Location: Switzerland - GE
Posts: 5,911
Thanks: 164
Thanked 431 Times in 403 Posts
I think you would have to tell us more about your HPUX box: What OS version and how it is configured ( rusted? or using /etc/shadow ? etc...), how far it/they have been customized (users .profile... Custom /etc/profile etc...)
And how you connect: xterm dtterm etc... using X, or via VT ? ...
Sponsored Links
    #5  
Old 04-12-2013
yadavricky yadavricky is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 16 October 2014, 8:07 AM EDT
Posts: 43
Thanks: 21
Thanked 0 Times in 0 Posts
RedHat Passwd -d HP UX

Quote:
Originally Posted by vbe View Post
I think you would have to tell us more about your HPUX box: What OS version and how it is configured ( rusted? or using /etc/shadow ? etc...), how far it/they have been customized (users .profile... Custom /etc/profile etc...)
And how you connect: xterm dtterm etc... using X, or via VT ? ...

What OS version
HP-UX - B.11.31 U ia64

it configured using
/etc/shadow

We connect using
Putty

i didn't understand other things..
Sponsored Links
    #6  
Old 04-15-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 20 November 2014, 3:13 PM EST
Location: Switzerland - GE
Posts: 5,911
Thanks: 164
Thanked 431 Times in 403 Posts
I just tested:

Code:
ant:/home/vbe $ date
Mon Apr 15 16:12:22 METDST 2013
ant:/home/vbe $ grep psa /etc/shadow
psa:EazGfRgdWAIj2:15771::::::
ant:/home/vbe $ passwd -d psa
ant:/home/vbe $ grep psa /etc/shadow
psa::15810::::::
ant:/home/vbe $

Then tried to connect, it logs in without asking passwd...
But this is a HP-UX 11.11 pa-risc...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? Anne Neville AIX 1 03-09-2012 09:05 PM
useradd w/o write permission on /etc/passwd guruprasadpr Red Hat 3 01-25-2012 04:14 PM
passwd - useradd issues karlochacon UNIX for Dummies Questions & Answers 15 10-05-2011 12:49 PM
passwd cmd reenables passwd aging in shadow entry BG_JrAdmin Solaris 3 01-04-2011 04:28 PM
useradd Selma Solaris 4 06-13-2005 08:33 AM



All times are GMT -4. The time now is 10:18 PM.