equal
deleted
inserted
replaced
262 |
262 |
263 def _make_home(self, account): |
263 def _make_home(self, account): |
264 """Create a home directory for the new Account *account*.""" |
264 """Create a home directory for the new Account *account*.""" |
265 domdir = account.domain.directory |
265 domdir = account.domain.directory |
266 if not lisdir(domdir): |
266 if not lisdir(domdir): |
267 raise VMMError(_(u"No such directory: %s") % domdir, |
267 self._make_domain_dir(account.domain) |
268 NO_SUCH_DIRECTORY) |
|
269 os.umask(0007) |
268 os.umask(0007) |
270 uid = account.uid |
269 uid = account.uid |
271 os.chdir(domdir) |
270 os.chdir(domdir) |
272 os.mkdir('%s' % uid, self._cfg.dget('account.directory_mode')) |
271 os.mkdir('%s' % uid, self._cfg.dget('account.directory_mode')) |
273 os.chown('%s' % uid, uid, account.gid) |
272 os.chown('%s' % uid, uid, account.gid) |