LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can someone pls help me (https://www.linuxquestions.org/questions/linux-newbie-8/can-someone-pls-help-me-168952/)

pancake 04-11-2004 08:32 PM

Can someone pls help me
 
I am having problem with adding user from PHP page to Linux server anybody had successfully done that before? I tried using system("useradd username") and shell script to add it but failure just dun know why???

wolfe2554 04-11-2004 10:07 PM

So first of all do not put help pls in the subject line, it vauge and will result in no help, try adding user from php. or something to that extent. Second when you are in the server and type useradd username does it give you an error? then when you add an user with just useradd username it just creates the username, not the password or home directory, or anything else. Check you /etc/passwd file to see if the user has been added.

J.W. 04-12-2004 03:24 AM

Like wolfe said, posts with titles such as "please help me" are totally useless. In the future please use more descriptive language.

The adduser command is pretty basic, so I'm surprised that you are having trouble with it Are you running it as root? -- J.W.

pancake 04-13-2004 12:22 AM

I'm sorry for the subject posted, will be using more descriptive word. I have no problem executing useradd command in Linux but not php.


All times are GMT -5. The time now is 09:26 AM.