Create a new user from using existing users profile


 
Thread Tools Search this Thread
Operating Systems HP-UX Create a new user from using existing users profile
# 1  
Old 04-09-2013
Create a new user from using existing users profile

Hello,

Just wanting to know if it is possible. Also I am new to command line. I am running 5.1b, if that matters.

Thanks in advance
# 2  
Old 04-09-2013
Don't know what 5.1b refers to, but please first consult the man pages
Code:
man useradd

It looks like there is -k existing_user
# 3  
Old 04-09-2013
Thanks for the advice

Oh, the version that I am running is 5.1b.

---------- Post updated at 08:20 AM ---------- Previous update was at 08:04 AM ----------

I looked through the man pages but I did not find -k switch. Does that switch just copy profile information and prompt for password?

Thanks
# 4  
Old 04-09-2013
For HP-UX 11 there is
Code:
SYNOPSIS
      useradd [-u uid [-o] ] [-g group] [-G group [, group...]] [-d dir]
           [-s shell] [-c comment] [-m [-k skel_dir]] [-f inactive]
           [-e expire] [-r update_homedir_ownership]  login
...
           -k skel_dir    Specifies the skeleton directory that contains
                          information that can be copied to the new login's
                          home directory.  This directory must exist.  The
                          system provides a skeleton directory, /etc/skel,
                          that can be used for this purpose.

# 5  
Old 04-10-2013
Seems you are on a linux box... 5.1b is not very HP-UX to me
What does command model return?

It looks like a tru64 OS which I have forgotten...
# 6  
Old 04-10-2013
Its coming back as not found

When I do a uname -a it come back V5.1 2650 Alpha

thanks
# 7  
Old 04-10-2013
Oh dear that's the old "True 64". Owned by HP but different from HP-UX.
Is there "skeleton" or "profile" mentioned in the useradd page, maybe a reference to another program? (That will have another man page.)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Email the users about their existing groups

Hi Guys, I want a script where in I need to send an email to individual users about their groups. OS:unix redhat Shell :Bash. The mail should be like,"Hi &username , you are in part of &group1,&group2 .." I need to mail to their personal email id mostly @outlook. Not to their UNIX.... (1 Reply)
Discussion started by: vijay2107
1 Replies

2. AIX

Do not allow bypassing users .profile

Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies

3. Red Hat

Connect Direct - XSMG242I -Create user profile - sdsc_create failed

HI, I have two Linux servers on which IBM Sterling ConnectDirect is installed. I want to transfer a file from server(abc20) to abc19. I have edited userfile.cfg & netmap.cfg on both the server still file transfer is not happening. Also the file is getting transferred from abc20 to abc20 itself... (5 Replies)
Discussion started by: ABM_CD
5 Replies

4. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

5. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

6. Solaris

Add existing user into an existing group

Pre: no gpasswd/adduser there is just usermod can be used, also there is no -a option for usermod. How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies

7. Solaris

[NewBie] Create User Profile

Hi i am a newbie on Sun Solaris system. for the above topic, creating a user profile for telnet, ftp through command line, may i know what the command is? and the way of creating the user profile.? (2 Replies)
Discussion started by: yewping
2 Replies

8. Shell Programming and Scripting

users with same .profile

guys i have a unix user (say "x") which is also an application owner ..thru this user i manage most (90 %) of my tasks related to application i.e application down/up,processes stop/start etc..in short i manage my "tuxedo" via this user.. now i want a new user to be created (on my name) which... (7 Replies)
Discussion started by: abhijeetkul
7 Replies

9. UNIX for Dummies Questions & Answers

Assigning existing users to a secondary group

Hi!!, I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them) Any ideas how to do it?? SAM doesnt seem to be working.. Any way of doing it from command line?? ... (1 Reply)
Discussion started by: jyotipg
1 Replies

10. UNIX for Dummies Questions & Answers

Want to create new users without using "useradd" command and user Interaction.

Don't want to use useradd command to create a new user I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now... (2 Replies)
Discussion started by: syedifti
2 Replies
Login or Register to Ask a Question