From: hedrick@geneva.rutgers.edu (Charles Hedrick) Subject: Re: KA9Q ftp problem Date: 28 Feb 1993 21:34:52 GMT
ee89jje%ee.surrey.ac.uk (Ed) writes:
>I set up ka9q between two 486's using cslip. Everything works fine,
>except when ftping to the other machine. I get the Name: prompt ok, then
>the password prompt, but no matter what I put in for the password it gives
>a login incorrect error. I tried setting a null password in the
>/etc/passwd, but it still didn't work.
>Also, do I need to make the 'net' binary setuid root? It certainly doesn't
>work unless I run it as root.
It doesn't use /etc/passwd. Remember: it's ported PC program. I
believe the file is ftpusers, in the same directory as startup.net.
Here an file (which is in the source distribution):
anonymous * /net/public 3
hedrick xxxx /usr/hedrick 3
* means no password, I believe. xxxx would be the password for
hedrick. The directory name is the default directory.
The last field are permissions, which OR together
1 read
2 create
4 overwrite or delete
The directory is prepended to all file specs that don't start
with /. Those that do start with / had better match the directory.
Note that you can specify several directories, e.g.
hedrick xxxx /net/public 1 /usr/hedrick 3
This specifies that hedrick can read /net/public, read or write
/usr/hedrick, and the default is /usr/hedrick (the last one).
I'll try to remember to add this stuff to READ.ME next time. Sorry.
There should be no need for it to be root, except if you are doing
incoming telnet (i.e. telunix), and even then only to update
/etc/utmp. Maybe the serial line or some critical file is not
protected so you can access it.