Date: Tue, 23 Jun 1998 02:17:54 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Bryce Newall <data@dreamhaven.net> Cc: FreeBSD Questions List <freebsd-questions@FreeBSD.ORG> Subject: Re: FTP drop box Message-ID: <Pine.BSF.3.96.980623021452.15375l-100000@resnet.uoregon.edu> In-Reply-To: <Pine.NEB.3.96.980622104029.9597U-100000@voyager.dreamhaven.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Jun 1998, Bryce Newall wrote: > The problem I'm running into is that when someone uploads a file, the file > is owned by "ftp", and not by the user whose account it's going into, so > the file doesn't count towards the user's quota. Consequently, outsiders > have been abusing this by uploading huge files and directories, probably > with the intent of filling up my filesystem. (Thankfully, /ftp is on its > own drive.) My question is, is there a way to get the OS to force > ownership on the file as soon as it's uploaded, so that outsiders cannot > upload more than will fit in the user's quota? Or does anyone have a > suggestion as to a better method of implementing these drop boxes than > what I'm currently doing? Sure, set the suid & sgid bits on the directories. This forces files created in them to aquire their owner/group and permissions. See `man 2 chmod' for info. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980623021452.15375l-100000>