how will u create user with out asking a password?

Answers were Sorted based on User's Feedback



how will u create user with out asking a password?..

Answer / ksr

root@guestws # useradd -c "test user" -d
/export/home/test123 -m -s /bin/ksh test123
64 blocks


This is the entry from /etc/passwd file

test123:x:14006:1:test user:/export/home/test123:/bin/ksh


root@guestws # tail /etc/shadow
test123:*LK*:::::::

root@guestws # passwd -u test123
passwd: password information changed for test123

root@guestws # tail /etc/shadow
test123::14642::::::

Here you can login to "test123", but it won't ask you any
password.

root@guestws # su - test123
Sun Microsystems Inc. SunOS 5.10 Generic January 2005

$ pwd
/export/home/test123

$ id -a
uid=14006(test123) gid=1(other) groups=1(other)

Is This Answer Correct ?    3 Yes 0 No

how will u create user with out asking a password?..

Answer / r

Generate SSH keys for the user and update it under user
home directory/.ssh/authrization_keys.

Is This Answer Correct ?    1 Yes 1 No

how will u create user with out asking a password?..

Answer / lawrance

Create a user & passwd -u user

Is This Answer Correct ?    2 Yes 2 No

how will u create user with out asking a password?..

Answer / dhawal

echo "newuser::0:0::/:/bin/bash" >> /etc/passwd

Is This Answer Correct ?    2 Yes 3 No

how will u create user with out asking a password?..

Answer / neelakanteswara reddy

Create user first and use the below command


# passwd -u user1
The above command will make the password null for user.

Is This Answer Correct ?    0 Yes 2 No

how will u create user with out asking a password?..

Answer / pavani

useradd -u 345 user1.

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More Solaris AllOther Interview Questions

How to merge solaris partition

2 Answers   TCS,


how to add swap space?

2 Answers   CSC,


how to test and Failover services to every node in vcs tell me step by step?

1 Answers   Mphasis,


how u can perform security to users?

1 Answers   IBM,


difference between terminal & console?

3 Answers   Satyam,






What is the profile file for ordinary user, when those will execute..?

2 Answers  


What is LOM and how ur going to access it?

3 Answers  


what is RBac and how to create a role?

1 Answers   IBM,


What is the difference between initialization & encapsulation in VXVM?

7 Answers   HCL, HSBC,


What does init 5 do?

10 Answers  


I AM MR SAGAR HAVING SUN SOLARIS 10, I AM NOT ABLE TO BROWSE THE INTERNET... I AM NOT HAVING NETWORK DRIVER WHICH SUPPORT SUN SOLARIS 10. I AM HAVING RTL 8111B GB LAN .BUT I AM HAVING RT8111B GB LAN DRIVERS WHICH SUPPORT XP,VISTA,UNIX,LINUX ...BUT IT NOT SUPPORTING FOR SUN SOLARIS 10 ...PLEASE GIVE A DETAILS FOR HAVING DRIVER AND HOW TO ACTIVATE THE NETWORK TO BROWSE THE INTERNET THROUGH SUN SOLARIS 10 THROUGH MOZILLA FIRE FOX ....MY E_MAIL ADDRESS IS \r\nsagar_nithin@yahoo.com

1 Answers  


what is the 3rd field of /etc/inittab file..? what are the possible values of that field...?

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)