[8758] in Athena Bugs
rsaix 7.3M: ftp: .netrc protection problem
daemon@ATHENA.MIT.EDU (Calvin Clark)
Fri Dec 13 13:46:14 1991
Date: Fri, 13 Dec 91 13:45:35 -0500
From: Calvin Clark <ckclark@Athena.MIT.EDU>
To: bugs@Athena.MIT.EDU
Cc: jefft@Athena.MIT.EDU, lwvanels@Athena.MIT.EDU, timkwan@Athena.MIT.EDU,
Reply-To: ckclark@mit.edu
This is a followup to:
bugs [8080]: .netrc mode on the rios (jefft)
bugs [8082]: more rios ftp problems (jefft)
bugs [8083]: re: more rios ftp problems (lwvanels, in response to 8082)
bugs [8387]: .netrc files on the rs6000 (jefft)
rs-comments [188]: no subject found in mail header (timkwan)
The problem you report does exist for .netrc files on AFS, but it is not
a problem for files on NFS or on the local disk. I am not sure what ftp
is trying to do. I compiled the BSD ftp on the RS/6000, and it does not
have this problem. I have not yet discovered a combination of file mode
or AFS directory acl which will permit the vendor ftp to work. It seems
you just have to kludge it by copying you .netrc into /tmp and setting
$HOME to look there for the ftp session.
I do not have access to the AIX source for the program they call
/usr/ucb/ftp, and it is certainly different from the UCB implementation.
Lucien: could you look and see what vile trick it is trying to pull? I
realize that in 8083 you claimed that it worked for you, but I have not
been able to reproduce your success with a .netrc on AFS. (Were you
using a local account on an RS/6000 or your AFS homedir when you wrote
[8083]?) There is certainly more to it than just being mode 600.
Dec 13 (12:53) rosebud:~
[89]% cat .netrc
machine ftp.uu.net login ftp password ckclark@mit.edu
Dec 13 (12:53) rosebud:~
[90]% cmp .netrc /mit/bitbucket/ckclark/.netrc
Dec 13 (12:53) rosebud:~
[91]% ls -l .netrc /mit/bitbucket/ckclark/.netrc
-rw------- 1 ckclark system 54 Dec 13 11:32 .netrc
Frw------- 1 ckclark system 54 Dec 13 12:03 /mit/bitbucket/ckclark/.netrc
Dec 13 (12:53) rosebud:~
[92]% pwd
/afs/athena.mit.edu/user/c/ckclark
Dec 13 (12:54) rosebud:~
[93]% ftp ftp.uu.net
Connected to uunet.UU.NET.
220 uunet FTP server (Version 5.100 Mon Feb 11 17:13:28 EST 1991) ready.
Error - .netrc file not correct mode.
Remove password or correct mode.
221 Goodbye.
ftp> bye
Dec 13 (12:54) rosebud:~
[94]% set home = /mit/bitbucket/ckclark
Dec 13 (12:54) rosebud:/mit/ckclark
[95]% ftp ftp.uu.net
Connected to uunet.UU.NET.
220 uunet FTP server (Version 5.100 Mon Feb 11 17:13:28 EST 1991) ready.
331 Guest login ok, send ident as password.
230 Guest login ok, access restrictions apply.
ftp> bye
221 Goodbye.
Dec 13 (12:54) rosebud:/mit/ckclark
[96]% fs la .
Access list for . is
Normal rights:
system:anyuser rl
ckclark rlidwka