返回列表 发帖
fc和aix差太多

aix只有这个命令可以不需要交互批量修改用户密码,限于root运行。
java的getruntime 得到的也只是jvm的运行环境。
exec不是用户sh解释器,这个方法有重构,更多的用法是:
string[] cmd={"user","add"};
exec(cmd);之类

你先确定你的pwdfile文件是否正确为 user:passwd  格式。
应该问题出在管道符上,至于怎么解决我也没这样的webshell环境测试,不能说出绝对正确的方法。好象你现在都没上传的方法吧,
有上传的话给你写个shell用。
关于chpasswd,man有如下内容:

To set passwords for users contained in a file named mypwdfile,
type the following:

cat mypwdfile | chpasswd
Note that mypwdfile must contain username:password pairs; one pair
per line. For example:

user1:passwd1
user2:passwd2www.cncert.net

帖子21 精华0 积分73 阅读权限40 性别男 来自WWW.HEUT.EDU.C 在线时间13 小时 注册时间2005-4-2 最后登录2008-7-2 查看个人网站
查看详细资料TOP

xi4oyu
荣誉会员

TOP

返回列表