You are here: Re: how create system users with php « PHP « IT news, forums, messages
Re: how create system users with php

Posted by M. Sokolewicz on 02/02/05 13:54

shell_exec('pw useradd username -g groupname -d /home/username -m');
however, you'd need to be running as root, or atleast need to su to
root; which is quite a security hazard

Umar Draz wrote:
> Hi dear members!!
>
> i want a script that i can add system user through
> php. For example i
> have FreeBSD 5.3 for adding a user in freebsd i use
> this command
>
> pw useradd username -g groupname -d /home/username -m
>
> now i want creating user through php what kind of
> script will be
> required
>
> thanks and regards
>
> Umar Draz
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Easier than ever with enhanced search. Learn more.
> http://info.mail.yahoo.com/mail_250

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация