su to account set to NL

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users su to account set to NL
# 1  
Old 08-11-2009
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 /bin/su. They are entering the correct password for the account but are getting the access to the account.

Is this because of the 'passwd -N'?

# 2  
Old 08-11-2009
Never heard of a "-N" parameter to "passwd". What Operating System are you using and what does "passwd -N" do?
# 3  
Old 08-12-2009
Originally Posted by methyl
Never heard of a "-N" parameter to "passwd". What Operating System are you using and what does "passwd -N" do?
Sorry, I am running Solaris 10 u7 (05/09).

From passwd(1) man page:

Privileged User Options

      Only a privileged user can use the following options:


          Makes the password entry for name a value that cannot be used for login, but does not lock the account. See the -d option for removing the value, or to set a password to allow logins.

# 4  
Old 08-12-2009
Within the same "man" page it makes it clear:

Locking an account (-l option) does not allow its use for password based login or delayed execution (such as at(1), batch(1), or cron(1M)). The -N option can be used to disallow password based login, while continuing to allow delayed execution.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

What happens to your skype account if you close email account?

Hello, Does anyone know what happens to your skype account if you close the email account which are linked together? As you know they are both owned by Microsoft. Thanks (0 Replies)
Discussion started by: milhan
0 Replies

2. How to Post in the The UNIX and Linux Forums

Simultaneously try to execute commands after connecting to remote account to one account

I have made password less connection to my remote account. and i tried to execute commands at a time. but i am unable to execute the commands. ssh $ACCOUNT_DETAILS@$HOST_DETAILS cd ~/JEE/*/logs/ (1 Reply)
Discussion started by: kishored005
1 Replies

3. 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

4. Solaris

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: cat /etc/shadow ... (2 Replies)
Discussion started by: roswell
2 Replies

5. Linux

Apply disk quota to account(dedicate 3 GB to account).

Hi , I am faceing lot of problem due to "disk space is not enough". senerio is like as, In system has 5 account. a,b,c,d,e say account c if very critical. Due to other user's data, user 'c' is faceing disk space issue. I want to dedicate 3 GB for user 'c'. No user... (1 Reply)
Discussion started by: ashokd009
1 Replies

6. 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

7. 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
Login or Register to Ask a Question