- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: useradd.sam -m option not working
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
Forums
Discussions
Discussions
Discussions
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
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
04-18-2007 08:25 PM
04-18-2007 08:25 PM
useradd.sam -m option not working
I have a workaround to create the directory first, but am confused why it does not work
Here is the command I am running (after substitution).
ssh server "/usr/sam/lbin/useradd.sam -g support -c "Test User" -m -d "/home/testuser" -p `echo "PasswordM4"| tr -A " " "" | /usr/lbin/makekey` testuser"
I also have the same problem with remsh (where available), or running the command locally directly on the machine.
- Tags:
- useradd.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2007 10:21 PM
04-18-2007 10:21 PM
Re: useradd.sam -m option not working
earlier threads, such as:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=86995
seem to indicate that useradd.sam can be used with an EXISTING user, but not for things like directory creation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2007 03:28 PM
04-19-2007 03:28 PM
Re: useradd.sam -m option not working
Which operating system version are you running? The -m option is working for me on an 11.31 system (11iv3). Here is my output:
1131pa04# ./useradd.sam -m -d /home/ananda ananda
1131pa04# ls /home
ananda
1131pa04# ls /home/ananda
.cshrc .exrc .login .profile
1131pa04# tail /etc/passwd
tui_team:bbJKlmU2u2U.s:119:20::/home/tui_team:/sbin/sh
raji_ug:hAYJRjuaavmI.:120:20::/home/raji_ug:/sbin/sh
xyxy:0Dv7.Zkn51FnE:121:20::/home/xyxy:/sbin/sh
koko:.beKtfhF9woxo:122:20::/home/koko:/sbin/sh
hyhy:ne8O2HLI.ASeE:123:20::/home/hyhy:/sbin/sh
hyhy2:WgHt1s/pCjAPI:124:20::/home/hyhy2:/sbin/sh
uuuuuop:okxnt6s3ixtpc:125:20::/home/uuuuuop:/sbin/sh
asdf:YC2wrNzebNS4M:118:20::/home/asdf:/sbin/sh
lplpl:.C/MxsiJsZ5wE:126:20::/home/lplpl:/sbin/sh
ananda:*:109:20::/home/ananda:/sbin/sh
1131pa04#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2007 03:37 PM
04-19-2007 03:37 PM
Re: useradd.sam -m option not working
I think its a small syntax issue ..
-m -d should not be given together .. here is the regular useradd command that I would give ..
# useradd -g 20 -G 102 -d /home/ldbajxg -s /usr/bin/ksh -c " Name xyz " -m ldbajxg
( -m will create the home directory)
Try in this order ... -d first and then -m ..in this case .. -d "/home/testuser" -m ...
Good luck
James George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2007 07:45 PM
04-19-2007 07:45 PM
Re: useradd.sam -m option not working
Ananda: O/s HP-UX 11.11.
James: Changing the order of the options does not seem to work either. I have tried several combinations, including leaving off the -d option so it should use the default location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2007 08:02 PM
04-19-2007 08:02 PM
Re: useradd.sam -m option not working
Try removing the double quotes from -d option and maybe you need to supply the -u (uid) option.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2007 08:33 PM
04-19-2007 08:33 PM