Restrict access to a Directory for a SINGLE user
as the subject says, how do i do it ??
I'll explain my problem ... i am using vsftpd with LOCAL Login enabled.
i hav two ftp dirs, :
i hav 2 ftp users : myguest ( the 1st dir is the home dir for this user )
winguest ( the 2nd dir is the home dir for this user )
both myguest and winguest hav primary group as "ftp-users".
i also hav 2 other normal users : "prosen" and "prosenjit".
both belongs to "thepro" group
$ ls -l /home
drwx--x--x 4 prosen ftp-users 4096 Feb 1 17:16 ftp
drwx------ 58 prosen thepro 4096 Feb 17 12:29 prosen
drwx------ 40 prosenjit thepro 4096 Feb 17 12:30 prosenjit
the thing is suppose i browse by firefox ftp://firstname.lastname@example.org/ ,
it opens in /home/ftp/ftproot/, but if i now browse to ftp://email@example.com/../../ ,
it will open the /home dir, showing the dirs prosen and prosenjit as well ..
this I DO NOT want, it shud show at most the ftp dir .
i hav taken care of the /home/ftp/ dir by chmod 711 .. but cant do the same for /home dir,
since tht will render the users "prosen" and "prosenjit" unable to access /home dir ..
( and i DONT want these 2 users to hav "root" as their group ),
so i just want to - "r" permission for /home dir for ONLY the users
"winguest" and "myguest" . How do i do it ??