LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   making a restricted group (https://www.linuxquestions.org/questions/linux-newbie-8/making-a-restricted-group-21677/)

Nyc0n 05-23-2002 09:43 PM

making a restricted group
 
i dont know if this is a newbie question....but here is goes....i run an ftp server with game updates for my friends and such, but when you log in via ftp you can always go up a level or 2 to root....i was wondering if there was a way to make an ftp group and make some directories and add those dirs to the ftp group....is this possible? cause i just dont want people being able to see my apache configs and stuff like that and other config files i have on there....i run slack 8.0 with kernel 2.4.something......i thought there was a way to make is so they can still go into the dirs not in the group but they would show up empty if they tried to view the contents......the "jail" dir wont work cause the dirs i need them to access are all branches off root....actually HD's mounted in dirs...for example /60gig/files/..../80gig/files/...../40gig/files/....etc...the files dirs are the ones i want the ftp group to be able to access but nothing outside of those dirs.....any suggestions? im stumped.....

nyc0n

Mik 05-24-2002 04:16 AM

How about mounting all those harddrives into something like /hds and then create a chroot jail in /hds for that group of users.
If you still use the /80gig and /60gig etc for other things you can just make those symbolic links to /hds/80gig and /hds/60gig etc.
If you want the users only to access the files directory on each of those drives then you'll have to set the permissions so they can't view the contents of any of the other files or directories.

Nyc0n 05-24-2002 01:08 PM

what permissions do i take off so that they cant view the contents? another problem im having...cause i tried just using symbolic links to the places i wanted them to go....but when you ftp in...the links dont show up....but they do when you ssh in....i dont know if its proftpd or what....but every ftp client i have used does it....cute...wsftp...smartftp etc....


All times are GMT -5. The time now is 01:20 PM.