[sysadmin-bin] create-auth: use LDAP info to change ownership
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] create-auth: use LDAP info to change ownership
- Date: Sat, 2 Apr 2011 12:49:49 +0000 (UTC)
commit 5f11cd5889d7cb027bdce4e3d8b03f2baf3229a2
Author: Olav Vitters <olav vitters nl>
Date: Sat Apr 2 14:49:42 2011 +0200
create-auth: use LDAP info to change ownership
create-auth | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index f644e74..25e8614 100755
--- a/create-auth
+++ b/create-auth
@@ -124,7 +124,7 @@ def create_home_directories(uids_data):
continue
shutil.copytree(src, dst, True)
- subprocess.call(['/bin/chown', '-R', '%s:%s' % (uid, uid), dst ])
+ subprocess.call(['/bin/chown', '-R', '%s:%s' % (user['uidNumber'], user['gidNumber']), dst ])
created_uids.add(uid)
return created_uids
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]