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

user trying to login the system says invalid passwd but when u see the user in the nis master the user exists so what will be the problem and how to fix it

1 Answers   IBM,


If you mistype a password, how do you clear it out to retype the password again?

11 Answers   Genpact, WNS,


how to know OS release?

4 Answers  


how to add swap space?

2 Answers   CSC,


How to quickly mirror a volume, if the volume is empty?

4 Answers  






how can u crete snapshot

1 Answers   HCL,


u have 10 solaris boxes and u have given to add 200 users? At fast how can u add the 200 users?

3 Answers   IBM,


in RAID 5 and RAID 0+1 which u will preffer (Veritas)

1 Answers   IBM,


How do you create a solaris package?

2 Answers  


You can ping servers on the subnet your workstation is on, but not other subnets. Why?

2 Answers  


what is the major problem u faced in u r carrier or in u r present company

1 Answers   IBM,


how to chk who r the users currently ogged in to the system..?

4 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)