FTP server on 5.3

Charles Swiger cswiger at mac.com
Wed Mar 16 13:30:25 PST 2005


On Mar 16, 2005, at 3:56 PM, Joshua Lewis wrote:
> I was trying to setup an FTP server last night on my 5.3 box. I was 
> using
> the handbook and was instructed to make a new user ftp. So that worked
> fine and I was able to upload to ftp's home dirrectory but wanted to 
> know
> if I can safley delete the .* files in his home dirrectory.

Yes.

> I was also curious, if I change the permissions on /home/ftp to 755 
> then
> people will be able to read but not write to the dirrectory (do they 
> need
> x permission to download a file?). But how do I make it so everyone can
> read but only certain users can write. My goal would to not use local
> accounts but pull usernames and passwords from a MySQL database. I 
> would
> rather not transfer the username and password in clear text.

If you want to permit certain users to write, the normal way of doing 
so is to create standard Unix user accounts for them, and use a shell 
of /usr/sbin/nologin.

However, if you care about account security, do not use FTP.
SSH and scp are the way to go....

-- 
-Chuck



More information about the freebsd-questions mailing list