<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=Big5" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Michael Schwendt wrote:
<blockquote cite="mid20081119101630.46cf3fc6.mschwendt@gmail.com"
 type="cite">
  <pre wrap="">On Wed, 19 Nov 2008 12:52:30 +0800, edwardspl wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Dear All,

For /usr/bin/upasswd :

#!/bin/sh

# Validate that a username was given as an argument
[ -n "$1" ] || {
echo "Use: upasswd <username>" >&2
exit 64
}

# Validate that the username wasn't "root"
[ "$1" != "root" ] || {
echo "Can't set the root user's password" >&2
exit 77
}

# Use -- to make sure that the "username" given wasn't just
# a switch that passwd would interpret.
# THIS ONLY WORKS ON GNU SYSTEMS.
passwd -- "$1"

For visudo :
SYSADM MH = (ALL) /usr/bin/upasswd
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Even if you rely on sudo's default environment variables restrictions and
safety checks, prefer absolute paths when executing tools like
/usr/bin/passwd
  </pre>
</blockquote>
Hello,<br>
<br>
Sorry, I don't quite understanding what is your means...<br>
<br>
Thanks !<br>
<br>
Edward.<br>
</body>
</html>