473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

user creation in HP-UX

hello everybody,

i tried to create a user on HP-UX by this command..

useradd -m test..

but it did not work..

please help me in this regard..
Dec 9 '07 #1
3 3350
prn
254 Expert 100+
I guess I should preface this with a comment to the effect that I have had very little experience with HP-UX. However, I have had a lot more with Solaris and Linux and I don't really think that useradd should be all that different on the various flavors of *ix.

What kind of "did not work" are you seeing? Is there an error message? Did you check /etc/passwd to see if the new user is there? Did you check /home (or is it /export/home on HP-UX?) What are you seeing that you didn't expect and what are you not seeing that you did expect?

Have you read the man page for useradd? If you are just planning to take all the defaults, perhaps you would be better off with

useradd -D test

and say explicitly that you want all the defaults. Personally, I normally believe in specifying all or most of what I care about, e.g.:

useradd -c "A test account" -u 512 -g staff -G printer-admin -s /bin/tcsh -m -d /home/test test

and then I control all the variables in the account-creation process, especially the group(s) that the user is assigned to.

Let us know what you can find that went wrong in the creation process. It's hard to help without any additional information beyone "It didn't work".

Best Regards,
Paul
Dec 11 '07 #2
eggi
9
Hey There,

The previous post was dead-on. useradd works almost exactly the same way in HP-UX as it does in Solaris.

The issue you had (I'm surprised you didn't get an error message) is that you told useradd (with the -m flag) that you wanted to make the home directory, but not what that directory you wanted created.

The problem was that, by adding the option you were being just specific enough for HP-UX to expect you to a lot of other info and not give you the defaults.

As above - useradd -D user1 - or just - useradd user1

should do the trick for you. If you want to modify attributes later, you can use usermod - same as Solaris also.

Best Wishes,

, Mike

http://linuxshellaccount.blogspot.com
Dec 12 '07 #3
Hey There,

The previous post was dead-on. useradd works almost exactly the same way in HP-UX as it does in Solaris.

The issue you had (I'm surprised you didn't get an error message) is that you told useradd (with the -m flag) that you wanted to make the home directory, but not what that directory you wanted created.

The problem was that, by adding the option you were being just specific enough for HP-UX to expect you to a lot of other info and not give you the defaults.

As above - useradd -D user1 - or just - useradd user1

should do the trick for you. If you want to modify attributes later, you can use usermod - same as Solaris also.

Best Wishes,

, Mike

http://linuxshellaccount.blogspot.com
Hi you seem to be an expert compared to what I know of HP-UX, do you know where I can find a nice tutorial, or what should I read to know more commands for HP-UX, I'm not very good with UNIX, so any tutorial which would help me is more than welcome!
Dec 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: rbt | last post by:
Hello there, Depending on the firmware version of the HP printer and the model type, one will encounter a myriad of combinations of the following strings while reading the index page: hp HP...
2
by: MLH | last post by:
I would like to allow users to set, as an application default, a specific printer to send reports to. I don't know how to bring up a list of valid print devices in A97, nor do I know how to...
1
by: andrew queisser | last post by:
I've been trying to dynamically create a class DevT that's derived from a generic base GenBase<T>. It doesn't seem to work. I'm attaching a code sample below that illustrates the problem. ...
2
by: Technical Group | last post by:
Friends, Can anybody help me out by sending a piece of C# code showing how to add an active directory user to a particular user group? If the group does not exist, then create it. Thanks in...
5
by: mg | last post by:
The following .exe and its parameters work correctly from the command prompt (it prints x.pdf without prompting the user. acrord32.exe /t "c:\exportfiles\x.pdf" "HP LaserJet 3300 Series PCL 6"...
3
by: HP | last post by:
Hi there I've asked about it few times, and seen it asked more times, but no one ever replied. The question is: is it possible to use a control inside of user control (eg. dropdownlist) as a...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
2
by: =?Utf-8?B?am9obnByZW1p?= | last post by:
Hi there, I have a web app that adds user into w2k3 server and adds it to the administrator group. The code snippet is something like this: try { DirectoryEntry AD = new...
0
by: recruiterforitjobs | last post by:
Hi, Hope you are doing great, My name is Sumit Kumar, and I am a technical recruiter for Okaya Inc, a technical staff augmentation firm located in NY. I am currently in search of an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.