su -c in command can not run in web-script,
because the command must input root passwd in <STDIN>.
Try to use "super":
ftp://ftp.mdtsoft.com/pub/super TO DOWNLOAD "super-3.14.0-1.i386.rpm"
Study the manual.
> Correct, but you can su -c the command to change the password.
>
> Adam Lang
> Systems Engineer
> Rutgers Casualty Insurance Company
> http://www.rutgersinsurance.com
> ----- Original Message -----
> From: "ËﱦÄ
" <perl@1...>
> To: "professional php" <pro_php@p...>
> Sent: Tuesday, November 13, 2001 2:34 AM
> Subject: [pro_php] Re: change password
>
>
> > I don't think the php can run as root.
> >
> > Unless the apache is running as root.
> >
> >
> >
> >
> >
> > > > Hi all,
> >
> > > > i want to develop a site where user can change the password for their
> >
> > > email
> >
> > > > account (pop3).
> >
> > > > Is this possible using php? And how do i do it?
> >
> > > You can use next code for administration using php:
> >
> > > <?php
> >
> > > system("useradd ".escapeshellarg("$username"));
> >
> > > system("echo $newpassword|passwd --stdin ".escapeshellarg("$username"));
> >
> > > ?>
> >
> > > In the first line we create new user and in second we create a password
> >
> > > for the user. In the same way you can do with other user command.
> >
> > > Eugene.
> >
> > > ---
> >
> >
> >
> > >
> >
> > >
> >
> > =============================================================
> > http://dating.163.com ÇãÐĵÄÔ¼»á¶ÔÏó£¬ÍêÈ«¿ÉÒÔÕâÀïÕÆÎÕ£¡
> > http://sms.163.com ÃÀºÃµÄ¸ÐÇéÔÚÓÚ²»¶ÏµÄÁªÏµ£¡
> > http://stock.163.com ½â¹ÉÊз³ÄÕ£¬´ò¿ª²Æ¸»Ö®ÃÅÓÉ´Ë¿ªÊ¼ ...
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
=============================================================
http://dating.163.com ÇãÐĵÄÔ¼»á¶ÔÏó£¬ÍêÈ«¿ÉÒÔÕâÀïÕÆÎÕ£¡
http://sms.163.com ÃÀºÃµÄ¸ÐÇéÔÚÓÚ²»¶ÏµÄÁªÏµ£¡
http://stock.163.com ½â¹ÉÊз³ÄÕ£¬´ò¿ª²Æ¸»Ö®ÃÅÓÉ´Ë¿ªÊ¼ ...