delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

FreeBSD 4.3...


Is there any other way to add a user to the system other than the "adduser" script?
FreeBSD 4.3...

TOP

>> Is there any other way to add a user
Yes. You can even alter /etc/group, /etc/passwd and /etc/mater.passwd manually.
Tell us what exactly are you trying to do?

TOP

I want to make a php script to add new users to the system. So I can just create a new user by adding new lines to those files?
Also, how do I encrypt the password?

TOP

>> I want to make a php script to add new users to the system
mod_php can never do this. Perl, being the all purpose scripting language, can do all sort of system tasks and do it more securely than standalone PHP.
>> So I can just create a new user by adding new lines to those files?
mod_php? No way.
>> how do I encrypt the password?
Depend on what language you wish to use.
Check out my following posts in Perl forum:
1) http://forums.devshed.com/showthrea...23249&forumid=6
2) http://forums.devshed.com/showthrea...23561&forumid=6

TOP

abstract:

FreeBSD 4.3...


I noticed that in the second location you posted, the script contains a line like this:
$result = system("/usr/sbin/useradd -m poophead -s /bin/bash");
the "adduser" script cannot do a "-m username" can it? I am able to do that with every other option but the username.
I have decided to use perl cgi to create the script. It does seem that perl is quite a bit more powerful than php for tasks such as this.

TOP

>> I noticed that in the second location you posted
I didn't post it, I was just copying the exact useradd's option from poster freakybutt.
>>  the "adduser" script cannot do a "-m username" can it?
I don't run Linux and don't have a need to as it wastes my time. Why don't you find out the available option of it from the manpage?

TOP

adduser, in FreeBSD, not linux. I did check the man pages, that's why I was making sure to see maybe I was missing something.
man adduser does not list any options for specifying the username in the command.

TOP

>> that's why I was making sure to see maybe I was missing something
All Linux distributions and different BSD might use different command with different syntax for adding user.
>> adduser, in FreeBSD, not linux
Use pw instead in FreeBSD.

TOP

i need to adduser on my slackware box from web. someone please help me.



FreeBSD 4.3...

TOP

Back Forum