Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create user & group first' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create user & group first
Authored by: Anonymous on Apr 20, '01 07:43:28PM
Then you can create and copy everything so its owned by user ftp & group ftp which have been created with the same privileges as user and group nobody so its pretty hermetic.

[ Reply to This | # ]
Create user & group first
Authored by: sekalreed on Apr 23, '01 04:34:18PM
there is one problem with this, it allows ftp users read/write access to files they shouldn't have.

dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 System
dr-xr-xr-x 3 user ftp 58 Oct 4 15:30 bin
drwx-wx-wx 10 user ftp 296 Oct 30 02:06 incoming
drwxr-xr-x 6 user ftp 160 Nov 1 01:01 pub
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 usr

assuming you are user, this allows you to modify the pub and incoming directory, but doesn't let ftp users read the incoming directory, and they also cannot modify files in the pub directory. if you were to change user to ftp, you would allow ftp users to modify/delete files in your pub directory. they would also be able to view files in your incoming directory.
i have mine setup as follows:

dr-xr-xr-x 3 user ftp 264 Apr 23 02:09 System
d--x--x--x 3 user ftp 264 Apr 23 02:10 bin
d--x--x--x 3 user ftp 58 Apr 23 03:13 etc
drwx-wx-wx 3 user ftp 264 Apr 23 02:31 incoming
drwxr-xr-x 2 user ftp 264 Apr 23 02:09 pub
dr-xr-xr-x 3 user ftp 264 Apr 23 02:07 usr

you can see it in action at <ftp.david-s.net>


[ Reply to This | # ]