- Timestamp:
- Nov 19, 2010 12:10:06 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 547aa3b
- Parents:
- 881cd02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/smbmount.Linux.pl
r881cd02 r66a8e6d 61 61 my $ids = $FSTYPE == 'smbfs' ? ",uid=$uid,gid=$gid" : ""; 62 62 63 #We should be even more careful about creating these files securely, 64 #confirming ownership, etc., but this is run in an restricted 65 #environment. 63 66 open(PWDFILE, ">/tmp/$user.cifs_creds") || 64 67 warn "Can't create credentials for $user:$!\n"; 65 print PWDFILE "username=$user\npassword=$pswd\n";66 close(PWDFILE);67 68 chmod(0600, "/tmp/$user.cifs_creds") == 1 || 68 69 warn "Credential file /tmp/$user.cifs_creds may have " . 69 70 "bad permissions:$!\n"; 71 print PWDFILE "username=$user\npassword=$pswd\n"; 72 close(PWDFILE); 70 73 71 74 print FSTAB "//$SHARE/$user\t";
Note: See TracChangeset
for help on using the changeset viewer.