Forum Moderators: bakedjake

Message Too Old, No Replies

FTP Access to other user's directory.

Can't get the permissions working right

         

erikcw

7:03 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



Hi,

I am trying to setup a user account on my dedicated server to access another user's home directory.

Basically I need to be able to access /home/userb/some-folder/ with the ftp usera (/home/usera/) user account.

I have created a symbolic link /home/usera/symbolic-link => /home/userb/some-folder/. I've added usera to group userb. I've even tried to chown usera:usera /home/userb/some-folder/

But when I login to FTP, I keep getting "Could not retrieve directory listing".

What am I missing?

Thanks!

marcs

7:20 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



Your ftp server may not be set up to support symlinks.

The easiest thing may be to set the home directory for usera to /home/userb/some-folder/

erikcw

7:38 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



No, my ftp server does support symbolic links (it's a cpanel server, so /home/user/www is a symbolic link to => /home/user/public_html)

I just used the www symbolic link without problems.

I am thinking that this is either a permission problem, or some sort of restriction file keeping ftp users in their own /home/...

Changing the user home would probably work, but wouldn't solve my problem since I will need to setup symbolic links to user-c, user-d, etc....

Maybe something like php open_basedir in httpd.conf?

My ftp server is pure-ftp (cpanel) - up to date.

MattyMoose

10:39 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



Are you chrooting users? Probably not, since you can see /home/...

So, what happens when you try to go above your home manually without the symlink?

ie, when usera logs in, you

cd ..
to /home/ -- What happens?

erikcw

12:44 am on Sep 3, 2005 (gmt 0)

10+ Year Member



/home/ is empty... I think pure-ftp has a chroot function