I would like to create users and the users account should be
locked after 3 login attempts. How to create ? And where
these locked information has been stored.
Environment : NIS
and if LDAP also

Answers were Sorted based on User's Feedback



I would like to create users and the users account should be locked after 3 login attempts. How to ..

Answer / akash

on Solaris 10
in /etc/default/login

SYSLOG_FAILED_LOGINS=5

set this variable , it mean take 5 times to wrong passwd and
after that user locked by wrong passwd.

Is This Answer Correct ?    0 Yes 0 No

I would like to create users and the users account should be locked after 3 login attempts. How to ..

Answer / anurag dhingra

To create a new user :

useradd -u uid -g gid -G{Gid1, Gid2,...} -d home dir -m -s shell -c "comment field" -l loginname

For user account should be locked after 3 login attempts:

2 Files should be configured like this

file1 : /etc/security/policy.conf
parameter : LOCK_AFTER_RETRIES=YES

file2 : /etc/default/login
parameter: RETRIES=3 (Default value=5)

Thanks @

Is This Answer Correct ?    0 Yes 0 No

I would like to create users and the users account should be locked after 3 login attempts. How to ..

Answer / saravanan

the locked info is stored in /etc/shadow .. file
login attempt is stored in /var/adm/loginlog...
the admin set to new password for user....
#passwd username

Is This Answer Correct ?    8 Yes 9 No

I would like to create users and the users account should be locked after 3 login attempts. How to ..

Answer / tapas jana

Edit the RETRIES parameter in the /etc/default/login file.
By default it is set as 3.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Solaris Commands Interview Questions

What are the minimum hardware requirements for cluster configuration?

4 Answers  


Explain /etc/system file

1 Answers  


How ill you create a subdisk and plexus

1 Answers  


Options in ufsrestore

1 Answers  


What is the difference between container and zones?

1 Answers   IBM,






How will you find the number of hard disk

4 Answers  


If NIC card is failed how can troubleshoot it?

2 Answers   EDS,


What does pkgadd command do?

0 Answers  


How will you clear the soft error on disk

1 Answers  


Hello Everyone, One of our servers is showing a strange issue, let me paste the output Code: root # uptime 4:37pm 3 users, load average: 0.00, 0.04, 0.04 Its been running since months but you can see after time there isn't any output like up 191 days(s). Even the who command with b and r option isn't giving any output. Code: root # who -b root # root # who -r root # the date command displays correct output. I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have. Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.

1 Answers  


Were will be the configuration for metadevice

1 Answers  


Which file to be configuring the logs messages (like: /var/adm/message etc…)

1 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)