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
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
Don't know what 5.1b refers to, but please first consult the man pages
man useradd
It looks like there is -k existing_user
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
For HP-UX 11 there is
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.
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...
Its coming back as not found
When I do a uname -a it come back V5.1 2650 Alpha
thanks
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.)
Sorry about all the confusion, I thought they were one in the same. Anyway, I see not mention of skeleton or profile in the man pages. I can't post links but If you search "useradd(8) tru64" the first result is the same as what I get.
Thanks for everything
I don't have Tru64, and
http://nixdoc.net/man-pages/Tru64/man8/useradd.8.html is hardly readable.
But it looks like a "default user" can be listed with
useradd -D
Perhaps it works to create|edit a suitable .profile in the default user's home directory? And a subsequent adduser will copy it to the new user's home directory?
Correct if I am wrong but first, I am going to have to find the default home directory, then create .profile in that directory; will that get me started
Thanks for all the help
Yes, that's my idea|hope.
(I have never met the Tru64 OS.)