- Timestamp:
- Nov 19, 2010 12:09:47 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 66a8e6d
- Parents:
- 403a5ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/smbmount.FreeBSD.pl
r403a5ba r881cd02 43 43 } 44 44 45 # open(TM, "$TMCC accounts windows |") or die("Failed to execute TMCC");46 45 open(TM, "/usr/local/federation/etc/userconf")or die("Failed to open userconf"); 47 46 open(CONFIG, ">/etc/nsmb.conf") or die("Failed to open /etc/nsmb.conf"); 48 #open(MAP, ">$AMDMAP") or die("Failed to open $AMDMAP");49 #open(PMAP, ">$PAMDMAP") or die("Failed to open $PAMDMAP");50 47 open(FSTAB,">>$FSTAB") or die("Cannot Open File $FSTAB"); 51 48 52 49 print FSTAB "\n# SMB Configuration Generated by smbmount.pl\n"; 53 #print MAP "# AMD Configuration Generated by smbmount.pl\n";54 50 print CONFIG "# SMB Configuration Generated by smbmount.pl\n\n"; 55 51 print CONFIG "[$SHARE]\naddr=$ADDR\n\n"; … … 79 75 print FSTAB "rw,-N,-f744,-d755,-u$uid,-g$gid\t0\t0\n"; 80 76 81 #print MAP "\n$userlc type:=program;fs:=$AMDROOT$homedir;\\\n";82 #print MAP "mount:=\"$MOUNT mount $AMDROOT$homedir\";\\\n";83 #print MAP "unmount:=\"$UMOUNT unmount $AMDROOT$homedir\";";84 85 77 # 86 78 # If we are PUSER, the user assigned to mount the project directory, … … 94 86 print FSTAB "rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n"; 95 87 96 #print PMAP "$PNAME type:=program;fs:=$AMDROOT/proj;\\\n";97 #print PMAP "mount:=\"$MOUNT mount $AMDROOT/proj\";\\\n";98 #print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/proj\";\n";99 100 88 if(! -d "/proj/$PNAME") { 101 89 system("$MKDIR -p /proj/$PNAME") && … … 106 94 print FSTAB "/share\t$FSTYPE\t"; 107 95 print FSTAB "rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n"; 108 109 #print PMAP "$PNAME type:=program;fs:=$AMDROOT/share\\\n";110 #print PMAP "mount:=\"$MOUNT mount $AMDROOT/share\";\\\n";111 #print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/share\";\n";112 96 113 97 if(! -d "/share") { … … 124 108 print("Mounting the $FSTYPE versions of everything\n"); 125 109 system("$MOUNT -a -t $FSTYPE"); 126 #close(MAP);127 #close(PMAP);128 129 #print "Starting the automounter: $AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP\n";130 #system("$AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP") && die("Unable to start amd");
Note: See TracChangeset
for help on using the changeset viewer.