php user registration on system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fifthelement
    New Member
    • Nov 2006
    • 2

    php user registration on system

    hello all
    I need a php script which allows people to register themselves on linux system. so they can have ssh access to my server. does anyone here know such a script ?
    Thanx
  • steven
    New Member
    • Sep 2006
    • 143

    #2
    Originally posted by fifthelement
    hello all
    I need a php script which allows people to register themselves on linux system. so they can have ssh access to my server. does anyone here know such a script ?
    Thanx
    I believe there's a PHP command that allows you to run shell commands. You could set this up to run the useradd command with the provided parameters provided by the visitors.

    See this entry in the manual
    Execute command via shell and return the complete output as a string


    and you could also look into this method too (through the site)


    Good luck and report back once you've implemented one of the features and let us know if it was successful. =)

    Comment

    • fifthelement
      New Member
      • Nov 2006
      • 2

      #3
      thank you for your reply , yes I found the solution.
      you can use shell_exec or system command in php , but first you need to configure sudoers file. so apache can run useradd command.
      Regards

      Comment

      Working...