Results 1 to 10 of 10

Thread: Creating new users in ubuntu server

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Beans
    115

    Smile Creating new users in ubuntu server

    Hi, I want to be able to create a new user on the server through a web interface.

    This is for a hosting solution I am creating for my work.

    Is it possible to do this in php or something similar?

    Many thanks Dan

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Creating new users in ubuntu server

    Webmin would work, I suppose. I just ssh in and create the users that way, but that's just me.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Oct 2008
    Beans
    115

    Re: Creating new users in ubuntu server

    Hi, Thanks for the reply

    This process needs to be automated, I am creating a hosting system where a student, at the college where I work, can navigate to a web server and create an account.

    This would then give them FTP access because proftpd is installed, and will also create them a MySQL account.

    All that I need to do after is work out how to create a symlink from their home directory to "/var/www/".

    Any Ideas?

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Creating new users in ubuntu server

    I don't know how you'd be able to do that without having them run a script themselves.

    I know there is such a thing as a webshell, but that would be a huge security risk.

    EDIT: I guess you could have the student update a database and have a script that pulls that data from the db. Not sure how to do that though.
    Last edited by CharlesA; December 5th, 2011 at 06:23 PM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Oct 2008
    Beans
    115

    Re: Creating new users in ubuntu server

    Quote Originally Posted by CharlesA View Post
    I don't know how you'd be able to do that without having them run a script themselves.

    I know there is such a thing as a webshell, but that would be a huge security risk.
    Ok, ill do some more research.

    Is there a way of almost forwarding variables from php to bash, because then I could write a simple bash script which creates an account with the name and password the user provided.

    The whole point of this new system is to eliminate the need of admin staff to create each user account on the server.

    Cheers

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Creating new users in ubuntu server

    Quote Originally Posted by DanHorniblow View Post
    Ok, ill do some more research.

    Is there a way of almost forwarding variables from php to bash, because then I could write a simple bash script which creates an account with the name and password the user provided.

    The whole point of this new system is to eliminate the need of admin staff to create each user account on the server.

    Cheers
    I think you can do that, but it would be a lot of work as you would need to sanitize the input to ensure that your box doesn't get owned.

    In the end, you'd have to weigh the risks. How many students register per day?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Creating new users in ubuntu server

    Besides webmin, here is another solution:

    https://help.ubuntu.com/10.04/serverguide/C/ebox.html

Tags for this Thread

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
  •