1832087 Members
3028 Online
110037 Solutions
New Discussion

user with no password

 
SOLVED
Go to solution
Shivkumar
Super Advisor

user with no password

How to create a user with no password ?
11 REPLIES 11
Arunvijai_4
Honored Contributor
Solution

Re: user with no password

Create a user with normal password then, edit /etc/passwd and remove the entries in the second field (separated by colons) for the particular user.

But, Its a big security hole :(

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: user with no password

Hi,

For any existing user or new user after creating account do

#passwd -d username


For this to work the system shall not be a trusted one.

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: user with no password

One more way to do this as follows,

# passwd -d where in -d Allow user to login without a password by deleting it. In untrusted mode this unlocks/activates the user account if found locked/deactivated.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Prabu.S_1
Trusted Contributor

Re: user with no password

Hi,

use passwd -d


HTH,
prabu.s
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Muthukumar_5
Honored Contributor

Re: user with no password

When you create user as,

# useradd

then it will not have any username.

You can check it as,

# passwd -s

NP will be the status that it is not having any password.

You can use logins -uax to get the status also.

-Muthu
Easy to suggest when don't know about the problem!
Sivakumar TS
Honored Contributor

Re: user with no password

#passwd -d

is the way !

Nothing is Impossible !
Cem Tugrul
Esteemed Contributor

Re: user with no password

hi Shiv,
As the others's mentioned ;
passwd -d
but it is really unsecure
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Frank de Vries
Respected Contributor

Re: user with no password

This to delete a password:

passwd -d (Allow user to login without a password by deleting it)
Thus:
passwd -d

We often use just a carriage return for
a password, this still requires
either an action by the keyboard or
a standard input < CR when scripted.

It is a little bit more secure, as the
CR is a non printable character.
So it looks like there is nothing.

see what is best for you.



Look before you leap
Yogeeraj_1
Honored Contributor

Re: user with no password

hi shiv,

why would you want to create user with no password?


Note that you may also wish to use SAM to specify the user cannot change his/her password..

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Raj D.
Honored Contributor

Re: user with no password

Hi Shiv ,

You can use # passwd -d username


-d Allow a user to login without a password by deleting it.
In untrusted mode this unlocks/activates the user
account if found locked/deactivated.



To check if your system is trusted or not , you can use this command:
# cd /usr/lbin
# ./getprdef -r



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Indrajit_1
Valued Contributor

Re: user with no password

Hi,

#useradd -d /export/home -s /usr/bin/ksh

#passwd -d

or..

vi /etc/passwd
user_name:xxx:

(erase the characters "xxx" b/w two colon"

save and come out..

This will help to resolve ur issue..

cheers
indrajit
Never Ever Give Up