#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Beijing,China
    Posts
    17
    Rep Power
    0
    I want to and a new user of my red hat system.
    I tried to exec:
    system("useradd $newusern$newpasswordnrnrn");
    system("useradd -D -g webmail -b /home/mailbox/$newuser");
    ( i got it in this forum.)
    But i think i need to su root first?
    my code in subject is right?
    help me!
    thanks!
    ( sorry,there is a fault in subject, $rootname should be $rootpassword)

    [This message has been edited by jun.wang (edited August 25, 2000).]

    [This message has been edited by jun.wang (edited August 25, 2000).]
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    6
    Rep Power
    0
    you can use sudo to give the user nobody the rights to create and change password.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Beijing,China
    Posts
    17
    Rep Power
    0
    Thanks!
    But i am a newman of Linux and PHP.
    Can u give me the details? ( code is better)

IMN logo majestic logo threadwatch logo seochat tools logo