Ignore:
Timestamp:
Sep 29, 2007, 9:08:29 PM (17 years ago)
Author:
andersk
Message:
Quick hack to support users with multiple filsys entries.
Location:
server/common/oursrc/accountadm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/accountadm/configure.in

    r134 r435  
    4242LOCATE(setquota)
    4343LOCATE(hesinfo)
     44LOCATE(sort)
     45LOCATE(head)
    4446
    4547dnl Needed by mbash.in
  • server/common/oursrc/accountadm/signup-scripts-backend.in

    r432 r435  
    3131
    3232my $homedir;
    33 my $filsys = `@hesinfo_path@ $username filsys`;
     33my $filsys = `@hesinfo_path@ $username filsys | @sort_path@ -nk5 | @head_path@ -n1`;
    3434# AFS /afs/athena.mit.edu/user/j/b/jbarnold w /mit/jbarnold
    35 if($filsys =~ /^AFS\s(\/afs\/[\w\._\/-]+)\s.*\s\/mit\/$username$/) {
     35if($filsys =~ /^AFS\s(\/afs\/[\w\._\/-]+)\s.*\s\/mit\/$username(?: [0-9]+)?$/) {
    3636        $homedir = $1;
    3737}
     
    6767# Add user to /etc/passwd
    6868`@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'`;
    7070# Add disk quota for user
    7171`@sudo_path@ -u root @setquota_path@ '$username' 0 25000 0 10000 -a`;
Note: See TracChangeset for help on using the changeset viewer.