scripts/gestion/gen_confs/home.py
bernat 6626a44f15 Import initial !
darcs-hash:20040831131446-d1718-0734aa73d3b8481b3b4b861e447e85128e488e8a.gz
2004-08-31 15:14:46 +02:00

14 lines
509 B
Python

home
home = args[0]
os.mkdir(home, 0755)
os.mkdir(home + '/Mail', 0700)
os.lchown(home, int(args[1]) ,config.gid)
os.system('/usr/sbin/edquota -p pauget %s' % arg[3] )
ML-ENS
if os.system("echo '%s' | /usr/sbin/add_members -r - com-ens" % mail) :
# Il y a eu une erreur
arg = u'--title "Inscription Mailing liste de communiquation ENS" '
arg+= u'--msgbox "Une erreur s\'est produite lors de l\'ajout à la mailing liste.\n\n\n" 0 0'
dialog(arg)