Set Password Account to NP or NL


 
Thread Tools Search this Thread
Operating Systems Solaris Set Password Account to NP or NL
# 1  
Old 04-20-2010
Set Password Account to NP or NL

Hi Everyone, my name`s Sergio.

I need your help please. I have a problem using Solaris 9. I create an account with the command line "useradd", with this I have no problem.

My problem is I need set the created account to NP (No Password or Non Login). For example:

Code:
cat /etc/shadow

UserAccount:NP:14719::::::

in Solaris 10 this is easy because I can use the command passwd -N UserAccount but in my solaris 9, I dont have this flag for passwd and I need to find the way to do that without using a vi editor for /etc/shadow

Anyone knows any command or other way to that?.

Regards.

Sergio.

PS: Sorry if my english is not very good.

Last edited by roswell; 04-20-2010 at 11:06 AM..
# 2  
Old 04-20-2010
why take the hassle? just set in the /etc/shadow file as above Smilie
# 3  
Old 04-20-2010
Yes, I know, but I'm creating a bash script for a client and I want to avoid editing the shadow file for security reasons. Smilie

Last edited by roswell; 04-20-2010 at 11:07 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Set account to NOT autounlock following login attempt failures

Well, my title pretty much says it. How do I "Set account to NOT autounlock following login attempt failures"? I've configured /etc/default/passwd to my organization's security policy but I have yet to work out how to set the account to stay locked after the user fails to authenticate a few times.... (2 Replies)
Discussion started by: DustinT
2 Replies

2. UNIX for Advanced & Expert Users

su to account set to NL

Greetings Forumers! I have created several Application accounts on servers that run cron jobs but should not allow direct logins. These accounts have a password set but have been modified with 'passwd -N'. Now my users are complaining that they cannot become that application account with... (3 Replies)
Discussion started by: bluescreen
3 Replies

3. HP-UX

how can find account without password

first I would like to find account that without password second I would like to find when account login fail ,account lock time third I would like to find when system idle ,force user logout time thanks (1 Reply)
Discussion started by: alert0919
1 Replies

4. UNIX for Dummies Questions & Answers

How do you set up an FTP user account?

1) How do you set up an FTP user account on a Solaris Unix box? Please show the steps (assuming I have root account access). 2) Where are the FTP user account information stored? For example: Unix user accouns are stored on /etc/passwd what about ftp user account where are they stored? Thanks... (3 Replies)
Discussion started by: XZOR
3 Replies

5. UNIX for Dummies Questions & Answers

Change Account to not lock account if password expires

I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired. I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Discussion started by: stringzz
1 Replies

6. Solaris

how can I change user name and password , of account ?

passwd only changes the password but i need to change the user name tnx (5 Replies)
Discussion started by: umen
5 Replies

7. UNIX for Dummies Questions & Answers

Ftp account change password

How can I change the password from an ftp user account on a ssh server? Please give me simple instructions for a users who hasn't a lot of experience. :D Just the words in form of a list thanks a lot. (1 Reply)
Discussion started by: m.seidenberg
1 Replies

8. UNIX for Advanced & Expert Users

Su To Diffent Account And Automate The Password

I Need To Switch To A Different Account Before A Shell Is Executed. Unforturnately I Have To Call This Shell Via A Third Party App And The User Account Of The Processes That I Need To Kill Is Not The Same As The Default Account Gui Signs In As. I Need The Password To Be Hard Coded When Prompted... (3 Replies)
Discussion started by: kingoice
3 Replies
Login or Register to Ask a Question