+ Post New Thread
Results 1 to 3 of 3
*nix Thread, User provision script in Technical; Morning, Every year I'm approached to provide web space for our sixth form students undertaking a website development unit, and ...
  1. #1


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347

    User provision script

    Morning,

    Every year I'm approached to provide web space for our sixth form students undertaking a website development unit, and every year I seem to think of another way to do it.

    So, this year my intention is to use a VPS under Debian64 running Debian again and to re-write my provision script which does the following:

    a) Reads from supplied CSV for information (username,password,doe)

    1) Creates unix account and sets shell to customised ftp only shell.
    2) Creates mysql database and assigns correct permissions to user
    3) Creates a sub dir of their homedir www and logs
    4) Creates a new vhost.<unixname>.conf for Apache including redirection of logfiles to the homedir/logs directory. - Reloads Apache.
    5) I used to have it rewrite the bind zonefile but there's little point if I just use wildcarded dns in the format unixname.students.domain.org.

    Does anyone else have any ideas what one could include in this script, or alternatively, does anybody have a use for it and I'll post it?

    Cheers.

    PS. I did consider the webdav route picking up from their individual home directories but wondered whether this was making it too easy for them as part of the course dictates the use of an sFTP/FTP client to upload the files etc.

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    can you do this with autocreated samba homedrives on an AD integrated server and use mod_userdir ?

  3. #3


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    I can't see why not to be honest, I shall have a look.

SHARE:
+ Post New Thread

Similar Threads

  1. Script to track user logins
    By Gatt in forum Scripts
    Replies: 47
    Last Post: 2nd August 2013, 10:44 AM
  2. updating user information in AD via script.
    By Hedghog in forum How do you do....it?
    Replies: 2
    Last Post: 4th April 2008, 03:39 PM
  3. updating user information in AD via script.
    By Hedghog in forum How do you do....it?
    Replies: 0
    Last Post: 4th April 2008, 02:31 PM
  4. Replies: 21
    Last Post: 18th January 2006, 02:53 PM
  5. Script to create a local user on a XP box.
    By tosca925 in forum Scripts
    Replies: 3
    Last Post: 12th October 2005, 12:04 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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