|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
adding users another way?
Is there any other way to add a user to the system other than the "adduser" script?
FreeBSD 4.3... |
|
#2
|
|||
|
|||
|
>> 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? |
|
#3
|
|||
|
|||
|
sorry
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? Last edited by spinkick : October 27th, 2001 at 01:51 PM. |
|
#4
|
|||
|
|||
|
>> 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 |
|
#5
|
|||
|
|||
|
hmmm
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. |
|
#6
|
|||
|
|||
|
>> 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? |
|
#7
|
|||
|
|||
|
I'm not running linux
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. |
|
#8
|
|||
|
|||
|
>> 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. |
|
#9
|
|||
|
|||
|
adduser from web
i need to adduser on my slackware box from web. someone please help me.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > adding users another way? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|