user creation in 2nd server.


 
Thread Tools Search this Thread
Operating Systems HP-UX user creation in 2nd server.
# 1  
Old 02-15-2007
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.
# 2  
Old 02-15-2007
Just check /etc/passwd in both nodes, it is likely that you will do the same on the 2nd node (creating users)
# 3  
Old 02-17-2007
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
# 4  
Old 02-17-2007
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..
# 5  
Old 02-19-2007
thank you very much moren,

can u email me the sample script to create user directories.

regards
# 6  
Old 02-21-2007
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.
# 7  
Old 02-21-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

User creation in CentOS

I am trying to create 10 users, each with a mydocuments directory in their home directory and this month's calendar in each mydocuments directory. I know there is a way using /etc/skel, but do not understand how. Any and all help will be appreciated. If you could give me the command lines with... (1 Reply)
Discussion started by: anick420
1 Replies

2. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

3. Shell Programming and Scripting

User creation script

Hi Gems.. I am working out on project of creating a mass user on 100 server. Please help me with script where i can create an user id of new 80 user using shell script Thanks in advance. Indrajit Bhagat (1 Reply)
Discussion started by: indrajit_renu
1 Replies

4. AIX

User creation

hi seniors i want to create the users like when the user try to login it should not should not promt for passwd is it possible to create users like this please help me (6 Replies)
Discussion started by: senmak
6 Replies

5. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

6. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

7. Solaris

Reg. user creation

Hi Friends, I want to create a user along with user name,user id,home directory,group and shell in single command is it possible and i want to assign root permission to a user eg- to create user permission,format and creating slices, cron jobs. Thanks in Advance. (3 Replies)
Discussion started by: kurva
3 Replies

8. Solaris

User Creation

i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Discussion started by: raynu.sharma
4 Replies

9. Solaris

User creation

Hi all, I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin. Name for the user Tivoli Thanks & Regards Babu (7 Replies)
Discussion started by: lbreddy
7 Replies

10. UNIX for Dummies Questions & Answers

user creation problem

hello, Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux). I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Discussion started by: jarkvarma
1 Replies
Login or Register to Ask a Question