Changeset 435 for server/common/oursrc/accountadm
- Timestamp:
- Sep 29, 2007, 9:08:29 PM (17 years ago)
- Location:
- server/common/oursrc/accountadm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/accountadm/configure.in
r134 r435 42 42 LOCATE(setquota) 43 43 LOCATE(hesinfo) 44 LOCATE(sort) 45 LOCATE(head) 44 46 45 47 dnl Needed by mbash.in -
server/common/oursrc/accountadm/signup-scripts-backend.in
r432 r435 31 31 32 32 my $homedir; 33 my $filsys = `@hesinfo_path@ $username filsys `;33 my $filsys = `@hesinfo_path@ $username filsys | @sort_path@ -nk5 | @head_path@ -n1`; 34 34 # AFS /afs/athena.mit.edu/user/j/b/jbarnold w /mit/jbarnold 35 if($filsys =~ /^AFS\s(\/afs\/[\w\._\/-]+)\s.*\s\/mit\/$username $/) {35 if($filsys =~ /^AFS\s(\/afs\/[\w\._\/-]+)\s.*\s\/mit\/$username(?: [0-9]+)?$/) { 36 36 $homedir = $1; 37 37 } … … 67 67 # Add user to /etc/passwd 68 68 `@sudo_path@ -u root @groupadd_path@ -g '$gid1' '$username'`; 69 `@sudo_path@ -u root @useradd_path@ - d '$homedir' -s '/usr/local/bin/mbash' -u '$uid1' -g '$gid1' -G users '$username'`;69 `@sudo_path@ -u root @useradd_path@ -M -d '$homedir' -s '/usr/local/bin/mbash' -u '$uid1' -g '$gid1' -G users '$username'`; 70 70 # Add disk quota for user 71 71 `@sudo_path@ -u root @setquota_path@ '$username' 0 25000 0 10000 -a`;
Note: See TracChangeset
for help on using the changeset viewer.