Commit 83363f12 authored by Benjamin Graillot's avatar Benjamin Graillot Committed by root

OwnCloud has mode 0700

parent baa23788
......@@ -64,10 +64,10 @@ def reconfigure(api_client):
os.chown('/home-adh/mail/' + user['pseudo'], int(uid), 8)
# Owncloud dans le home
if not(os.path.exists(home + '/OwnCloud')) and not(os.path.islink(home + '/Owncloud')):
if not(os.path.exists(home + '/OwnCloud')) and not(os.path.islink(home + '/OwnCloud')):
os.makedirs(home + '/OwnCloud')
os.chown(home + '/OwnCloud',int(uid),grp.getgrnam('user').gr_gid)
os.chmod(home + '/OwnCloud', 0o770)
os.chmod(home + '/OwnCloud', 0o700)
# Simlink
link = '/home-adh/{}'.format(user['pseudo'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment