~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to lib/common/makeuser.py

  • Committer: mattgiuca
  • Date: 2008-02-05 01:51:26 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:411
Renamed lib/fileservice to lib/fileservice_lib (naming conflict).
Added new app: fileservice. This app replaces the old one that was deleted -
it simply calls fileservice_lib.handle, and that's it (so it functions exactly
the same).

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    homedir = make_jail(username)
51
51
    make_user_db(username, password, nick, fullname, rolenm, studentid)
52
52
    # TODO: -p password (need to use crypt)
53
 
    if os.system("useradd -d %s '%s'" % (homedir, username)) != 0:
54
 
        raise Exception("Failed to add Unix user account")
 
53
    #if os.system("useradd -d %s '%s'" % (homedir, username)) != 0:
 
54
    #    raise Exception("Failed to add Unix user account")
55
55
 
56
56
def make_jail(username, force=True):
57
57
    """Creates a new user's jail space, in the jail directory as configured in