- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- User creation in multiple server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 05:48 PM
11-20-2005 05:48 PM
User creation in multiple server
I am facing problem in setting password, when i create a user in multiple server. Can anybody help me in acheiving this in script.
All my servers are linux.
can any body help.
thanks
siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 05:58 PM
11-20-2005 05:58 PM
Re: User creation in multiple server
1. create user on server 1
2. grep -i user /etc/passwd > /tmp/new-user
3. remsh/ssh if enabled,
4. for i in serverb serverc
do
ssh -q $i 'cp /etc/passwd /etc/passwd.bak'
cat /tmp/new-user | ssh -q $i 'cat - >> /etc/passwd'
This should do it. Backup files before you start. The scipt not tested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 06:22 PM
11-20-2005 06:22 PM
Re: User creation in multiple server
Create users on one Linux server, all other users authenticate to that server.
http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fdocs.hp.com%2Fen%2FT1417-90009%2Fch05s03.html%26qt%3D%2BHP-UX%2BLdap%2Bconfiguration%26hit%3D1&aid=SEARCH_MANUAL&pil=1&serStr=HP-UX+Ldap+configuration
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 10:45 PM
11-20-2005 10:45 PM
Re: User creation in multiple server
Or, you must copy the /etc/passwd and /etc/shadow entry for every new user on each server (too much effort).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 05:43 PM
11-21-2005 05:43 PM
Re: User creation in multiple server
Thanks for reply. I tried copying the shadow file password string, from one server to other server. It worked in one server with the same password. But in other it has not worked.
Finally, i used mkpasswd command (in linux) which is like modprpw -x (in hpux trusted system ) , which generates a random password for the user. and i captured the text.
still if somebody can help in writing a better script, where we can set our own password, it will be great. becoz copying the string, doesnot working across different version of OS it seems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 05:47 PM
11-21-2005 05:47 PM
Re: User creation in multiple server
LDAP / NIS , we cannot implement.
With the existing setup is there any way ?.
Is there any perl script which can do this job efficiently ?
thanks
sivakumar p.