--- jk_jailuser.orig 2005-11-10 23:06:07.000000000 +0100 +++ jk_jailuser 2005-11-10 23:21:02.000000000 +0100 @@ -146,7 +146,7 @@ print 'moving files from '+pw[5]+' to '+newhome try: shutil.move(pw[5], newhome) - excep Error: + except IOError: print 'FAILED TO MOVE '+pw[5]+' TO '+newhome+'. Possibly the target is full, or read-only' def user_exists(user): @@ -240,6 +240,8 @@ if user_exists(username): if (config['movehome'] == -1): movehome = getmovehome(jail, username, config) + else: + movehome = config['movehome'] jailuser(jail, username, movehome, config) else: print 'user '+username+' does not exist'