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

« back to all changes in this revision

Viewing changes to lib/common/makeuser.py

  • Committer: drtomc
  • Date: 2008-02-12 21:09:20 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:439
makeuser: Fix the default jail home directory permissions so that the
files therein can be served correctl.

trampoline: 022 is a better umask than 0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
        os.mkdir(userhomedir)
123
123
        # Chown (and set the GID to the same as the UID).
124
124
        os.chown(userhomedir, uid, uid)
125
 
        # Chmod to rwx------ (700)
126
 
        os.chmod(userhomedir, stat.S_IRWXU)
 
125
        # Chmod to rwxr-xr-x (755)
 
126
        os.chmod(userhomedir, 0755)
127
127
        return userhomedir
128
128
 
129
129
def linktree(src, dst):