- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sam and passwd on hpux 11.x and 10.x
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
Forums
Discussions
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
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
02-15-2002 09:07 AM
02-15-2002 09:07 AM
sam and passwd on hpux 11.x and 10.x
Program sam seems to behave differently on 11.x and 10.x in terms of using program passwd.
Do you know how does sam tell passwd which user's password to change? My customized passwd program doesn't work with sam, as if it doesn't understand the arguments passed in.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 09:18 AM
02-15-2002 09:18 AM
Re: sam and passwd on hpux 11.x and 10.x
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 09:21 AM
02-15-2002 09:21 AM
Re: sam and passwd on hpux 11.x and 10.x
Having done a quick 'man' on the 'passwd' command, I am suitably impressed at the number of options it supports.
How about this in your custom 'passwd' program? If the parameters passed do not validate against what the program expects, it passes $* (all parameters) to the real 'passwd' binary.
Share and Enjoy! Ian Dennison
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 10:58 AM
02-15-2002 10:58 AM
Re: sam and passwd on hpux 11.x and 10.x
from my 11.0 system, patched up through 12/2001:
-r-sr-xr-x 1 root bin 229376 Nov 7 1997 /sbin/passwd
from my 10.20 system, out of date and patched only through the Y2K patch sets (it's not a production box):
-r-sr-xr-x 1 root bin 520192 Jan 9 1998 /sbin/passwd
However, both systems show this in /usr/sam/lbin
lrwxr-xr-x 1 root sys 17 Jan 14 21:19 useradd.sam -> /usr/sbin/useradd
lrwxr-xr-x 1 root sys 17 Jan 14 21:19 userdel.sam -> /usr/sbin/userdel
lrwxr-xr-x 1 root sys 17 Jan 14 21:19 usermod.sam -> /usr/sbin/usermod
The good news is that there is a man page for each of this programs: useradd, userdel, usermod.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 11:53 AM
02-15-2002 11:53 AM
Re: sam and passwd on hpux 11.x and 10.x
What's strange is when I changed the user's password in sam, the root's password got changed. But if I run the command as in the samlog, i.e. /usr/bin/passwd test, test's password got changed, which is correct.
Any idea?
Executing the following command:\C/usr/bin/echo "Executing passwd(1)
command
to set password for user test";/usr/bin/passwd test\C
@!@2@1013799300@0
Command completed with exit status 0.