#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    79
    Rep Power
    14
    How to add a nes user using PHP on linux?
    a function or what ?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    24
    Rep Power
    0
    What are you trying to do? add a user for your site to a database? add an actual user login for your system?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    79
    Rep Power
    14
    Ya,add an actual user login for my system.
    And, give PHP a pair of USER_ID & USER_PASSWORD to generate an account.
    But I can't find any system function to "adduser()" in PHP.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    I think there's a system() function where you can add users.

    try something like:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    system("adduser loginname -g groupname");
    [/code]

    I'm kinda new so if I'm dead wrong, feel free to tell me people.

    ReNeGaDe
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    1
    Rep Power
    0
    What about changing the user password?
    On Redhat linux, the command "passwd user" is interactive, so how can you pass data to and from the command with system() or exec()?

    Any other solution maybe in perl?

Similar Threads

  1. Can user A read user B's session?
    By Stupid Khor in forum PHP Development
    Replies: 9
    Last Post: May 11th, 2004, 05:19 AM
  2. Stopping form submittion until user clicks Agree button
    By leemeisner in forum HTML Programming
    Replies: 2
    Last Post: April 13th, 2004, 10:46 AM
  3. Multiple Cookies for user
    By Chris24 in forum HTML Programming
    Replies: 0
    Last Post: January 22nd, 2004, 09:27 AM
  4. php user levels
    By dynasty in forum PHP Development
    Replies: 1
    Last Post: January 20th, 2004, 02:01 PM
  5. How to get multiple sessions for one user working?
    By jkoerber in forum PHP Development
    Replies: 1
    Last Post: January 16th, 2004, 01:23 PM

IMN logo majestic logo threadwatch logo seochat tools logo