- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Confused with useradd.sam
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2009 11:00 PM
тАО07-23-2009 11:00 PM
Confused with useradd.sam
Was looking for a way to create the useraccount in HP-UX with the password in the single command.
And the answer is useradd.sam ,in which we can give the encrypted passwd with -p option.
/usr/sam/lbin/useradd.sam
Now the question is how it actuly works coz it is calling the useradd command internally , then why the same option(i.e -p) do not work with useradd?
lrwxr-xr-x 1 root sys 17 Mar 30 2008 /usr/sam/lbin/useradd.sam -> /usr/sbin/useradd
Will wait for the Replies.
Thanks
Vivek Bhatia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2009 11:26 PM
тАО07-23-2009 11:26 PM
Re: Confused with useradd.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 12:40 AM
тАО07-24-2009 12:40 AM
Re: Confused with useradd.sam
Thanks for you reply. Is there anyone with some other opinion?
Thanks Guys,
Vivek Bhatia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 12:44 AM
тАО07-24-2009 12:44 AM
Re: Confused with useradd.sam
It should not be an issue assigning the password after the user is created, right?
However, choice is your's.
Cheers,
AL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 01:10 AM
тАО07-24-2009 01:10 AM
Re: Confused with useradd.sam
I think you didnt understand my question properly.
Please read the Question at the Top.
Thanks for reply.
Regards,
Vivek Bhatia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 01:38 AM
тАО07-24-2009 01:38 AM
Re: Confused with useradd.sam
Of course not. Hakki said how the multiple hardlink/softlink trick works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 01:56 AM
тАО07-24-2009 01:56 AM
Re: Confused with useradd.sam
Basically, the command will see the name used to start it, and can choose to work differently if a special name is used.
In the terminology of the C programming language, the program reads argv[0] and then uses it to decide what to do and how to interpret the rest of its arguments.
Many other groups of similar programs use the same trick; for example, gzip/gunzip/gzcat are often implemented by just one binary that does different things depending on the name used.
Also run "ll -i /sbin/vg*" in HP-UX: you'll notice that most/all vg* commands have the same attributes (permissions, size, date) and the same inode number, i.e. they are multiple hard links to the same binary.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 10:09 AM
тАО07-24-2009 10:09 AM
Re: Confused with useradd.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 01:18 PM
тАО07-24-2009 01:18 PM
Re: Confused with useradd.sam
Since useradd.sam IS useradd, there is no need for useradd.sam to talk about itself in the third person. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2009 10:56 PM
тАО08-25-2009 10:56 PM
Re: Confused with useradd.sam
If you are satisfied with the answers you have received it would be appreciated if you would assign points:
http://forums11.itrc.hp.com/service/forums/helptips.do?#28