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

what is the use of TCP wrappers

3 Answers   IBM,


How do you give a user access to an application or program that needs to run as root without giving them the root password?

3 Answers  


Performance monitoring tools?

3 Answers  


If root file system 100% full what you have to do?

5 Answers   Tech Mahindra,


vxdisk -o alldgs list o/p shows some disk groups in braces… What does that signify?

3 Answers  






How many secondary groups allows to add..?

5 Answers  


how to check network statstics..?

5 Answers  


Suppose if u want to reconfigure the kernel then how ur going to do?

3 Answers  


how u will recover the disk group

2 Answers   IBM,


I want to Know how many LUNs are in my Solaris10 server as well as NIC cards ?

7 Answers   Verizon,


how to repair /etc/system file with out using jump start and without using os software cd

4 Answers   IBM,


If ping command is not working then how to check the status of the server..?

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