Ask Your Question
0

How to assign one password to one user on all server ?

asked 2015-04-23 04:25:14 -0500

Ranjit Rajput gravatar image

For example,xyz user on 50 nodes & my requirement is to assign default password to xyz on all server.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-23 08:47:01 -0500

JohnsonEarls gravatar image

Assuming that all 50 nodes run puppet and that you want to force user xyz to exist on all nodes... you need to have a common class assigned to all nodes, then within that class you can create the xyz user resource:

user { 'xyz':
    ensure => present,
    password => sha1('xyz'),
}

Along with whatever other defaults you want for uid, gid, home, shell, etc.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-04-23 04:25:14 -0500

Seen: 129 times

Last updated: Apr 23 '15