Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
create linux user accounts over the internet
Results 1 to 4 of 4

Thread: create linux user accounts over the internet

  1. #1

    create linux user accounts over the internet

    I'm trying to create user accounts in redhat linux 9 over the internet. I am using a php script to create accounts. There i used sudo commands to create user accounts. I could create the user account but couldn't give the pasword for that user. I tried to use md5 command to encrypt pasword. But in shadow file it seems to be different from those passwords created using passwd command.
    Please help me !

  2. #2
    well what php script have u tried can u just put on the source code of it

    are u trying to create users or ru trying to give the existing users some priviledges

  3. #3
    Thanks a lot.
    I tried many many times and finally got the solution.
    this is the code I used. Hope would be help somebody else also.

    $stud="username";
    $group="Group";;
    $home="/home/".$stud;

    $enc=crypt($Passwd);

    $file = "sudo useradd -g $group $stud -c $group -e 2005-12-31 -p '$enc' -d '$home' ;sudo passwd $stud:$enc;sudo chown $stud:$group ";

    $resu = exec($file);

  4. #4
    Unless you need to use your PHP script to create user, you can check another useful tool from Webmin.com:

    http://www.webmin.com

    You can manage almost linux's function through its web interface (user management for example)

    Regards

Similar Threads

  1. How can I limit user accounts on Windows Server 2000?
    By AnthonyDamasco in forum Windows - General Topics
    Replies: 3
    Last Post: 12-21-2006, 12:20 PM
  2. user accounts
    By trace in forum Windows - General Topics
    Replies: 2
    Last Post: 07-06-2005, 08:47 PM
  3. NO ACCESS TO USER ACCOUNTS
    By anthrvictim in forum Windows - General Topics
    Replies: 1
    Last Post: 05-13-2005, 12:34 PM
  4. Create and Configure User Accounts in Windows XP
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 07:48 AM
  5. Backing up user accounts
    By tolstoy in forum Linux - General Topics
    Replies: 7
    Last Post: 11-28-2001, 08:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •