![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| User creation | lbreddy | SUN Solaris | 7 | 03-08-2008 02:45 AM |
| User Creation in Sun Solaris | manoj.solaris | SUN Solaris | 1 | 09-12-2007 04:14 AM |
| user creation privileage | jarkvarma | UNIX for Dummies Questions & Answers | 4 | 11-09-2001 08:07 AM |
| user creation problem | jarkvarma | UNIX for Dummies Questions & Answers | 1 | 11-05-2001 10:11 AM |
| user creation using shell script for JSP | jarkvarma | Shell Programming and Scripting | 1 | 11-04-2001 08:27 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
user creation in 2nd server.
Dear frnds,
I have 2 hp ux 11i servers(S1 & S2) in cluster. In S1 I created all the users. Is it necessary to create the same users one by one in S2 also ? pls help me. |
| Forum Sponsor | ||
|
|
|
|||
|
thanks dear andryk,
my intension is a shortcut, i think it wont be possible, creation of user is not only in passwd file no? it needs to create the user directory entries too ? anyhow if there is any solution pls send me. regards |
|
|||
|
You have to do this:
1)Copy the passwd and group files to the second server ( first backup your files) 2) The you have to create manually each directory, but you can use the passwd file to do a little script to make all directorys with this scripts automatically. Have you ever have done any scripts?? Another solutions is to share with NFS the hard disk of your firts server, make a link for the passwd and group of second machine pointing to the firts machine. You will also need to share the home directory of users, but in this solutions you will lost some disk space. Hope it works.. |
|
|||
|
if your passwd file is like this:
smith:*:100:100:8A-74(office):/home/smith:/usr/bin/sh guest:*:200:0::/home/guest:/usr/bin/sh ... .... ..... your script should be like this(depending your shell, the header may change): #!/bin/sh mkdir /home/smith mkdir /home/guest .... .... maybe you should use also the command chown for each directorio to change the owner from root to the user:group If you use a replace tool you can change tha passwd file for the commands of the script very easy. Hope It helps you. |
|
|||
|
Dear moren,
thanks for the reply, but i am lazy to create all the user directories with induvidual entries, could you suggest me a script which takes the username from the passwd file and creates concerned user directory in /home? regards |
|||
| Google The UNIX and Linux Forums |