Can i create an session for command system or exec?!

Discussion in 'PHP' started by kuser, May 26, 2011.

  1. #1
    Can i create an session for command system or exec?! For example i would like to be able to log in as root and add a website into the /www and also create an username for it.

    Can I think?

    "su
    password
    adduser NEWUSER
    mkdir /www/NEWDIR
    etc,etc,etc
    "


    ?! I really don't want to use the sudo ... because i don't think it's very secure to allow to anybody who can run .php on my server to sudo
     
    kuser, May 26, 2011 IP
  2. dazst

    dazst Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #2
    Yes, with SSH.
     
    dazst, May 26, 2011 IP
  3. kuser

    kuser Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    i want to do it fro web
     
    kuser, May 26, 2011 IP