LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   pure-ftpd help mounting (https://www.linuxquestions.org/questions/linux-general-1/pure-ftpd-help-mounting-233387/)

Tinku 09-21-2004 11:12 AM

pure-ftpd help mounting
 
I use Suse and Pure-ftpd as my ftp server.
I am having the problem....
When i mount say a directory xxx as follows

mount --bind xxx /srv/ftp/

and when an anonymous user connects to my ftp,he can see all the files and directories of xxx ,but he cannot go inside any directory(it says permission denied)

can someone plz help

tia
tinku

trickykid 09-21-2004 11:15 AM

What's the permissions of the mount and or directory? Do they have access? I'm assuming not.

Tinku 09-21-2004 11:26 AM

by default the /srv/ftp has the root permissions for writing.But well,to copy something,u dont need the write permissions.

wat permissions are u exactly referring to?

trickykid 09-21-2004 11:27 AM

Quote:

Originally posted by Tinku
by default the /srv/ftp has the root permissions for writing.But well,to copy something,u dont need the write permissions.

wat permissions are u exactly referring to?

If your mounting another drive or network share, what are the given permissions of that mount? If your doing it as root and not specifying the permissions, I'm assuming only root is going to be able to read from it, etc.

man mount

Tinku 09-21-2004 11:40 AM

Quote:

Originally posted by trickykid
If your mounting another drive or network share, what are the given permissions of that mount? If your doing it as root and not specifying the permissions, I'm assuming only root is going to be able to read from it, etc.


yeah ,i am mounting the directory as root.
all the directories that i am binding to another directory have read permissions for all users..So they should be able to travel through the directory hierarchy ,i guess,,,,,,

how to specify the permissions,(just view and copy) say of directory x

mount --bind /home/gh/tin /srv/ftp/

here say i give $ chmod 755 /home/gh/tin ,is it ok?or should i do something else?if yes,wat

tia


All times are GMT -5. The time now is 05:51 PM.