Re: adduser on a Linux Redhat 7

From: Date: Fri, 29 Dec 2000 01:11:29 +0000
Subject: Re: adduser on a Linux Redhat 7
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32182@lists.php.net to get a copy of this message
>> how can i make a script to adduser to a linux redhat 7? > > That would be extremely dangerous unless you *really* know what you are > doing. heh, I can't think of anything less secure, actually. maybe passwd as root :) > You should only do this on a secure server. at home. with no connection to the outside world. behind a steel door that is locked most of the time. > You should be very, very, very careful about who has access to the page that > creates the user. > You probably can't even exec() adduser, because the OS knows you're not on a > real terminal, and the underlying code to get a password should only be done > under controlled circumstances (IE a "real" terminal)... So I think you > might need to alter the underlying files/directories by hand just to "fool" > the OS into thinking adduser was called... That means you'll need to get > the password and encrypt it using the same encryption method that your OS > uses, which depends on what got installed. > > Be afraid. Be very afraid. well said :) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32182) next »