Re: HOWTO : Create a FTP server with user access (proftpd)
Hello
Thanks Frodon. But Im not exactly sure on how to go about it (still a newbie :)). How do i make the rights for my source directory (media/sda5/Stuff) the same as the /home/FTP-shared/download since it doesnt support Unix commands as you said.
Can you please give me a few instructions on how to proceed. Im using Gutsy so it auto mounts my NTFS drive (which is /dev/sda5) into /media/sda5.
Thanks again
G. Mathews
Re: HOWTO : Create a FTP server with user access (proftpd)
Auto-mount you said, um could you paste a sample of the output of the "ls -l /media/sda5/" command just to see how the automount mount your partition.
More likely the solution will be to either mount manualy your drive with the suitable command when you want to use it for your ftp or leave an autoexec script at the root of this drive containing the mount command to apply then select in your system mount options to execute autoexec files on removable devices when they exist.
Re: HOWTO : Create a FTP server with user access (proftpd)
Hello again
Sorry about the late reply was Valentines :lolflag:
Ok i was having a look at my /etc/fstab and i saw a line saying that my /dev/sda5 was mounted on /media/sda5 with Umask=007. I changed that to 022 saved it and rebooted.
I ran
Code:
sudo mount -o bind /media/sda5/Stuff /home/FTP-shared/download
and then restarted the ftp server.
I tried connecting with an ftp client again, and guess what, IT WORKED!!
I could access my mounted NTFS drive in the download folder.
But there is a slight problem. Since i have mounted it with the 022 rights I cant even copy anything onto my /media/sda5 partition on my machine.
Is it possible to mount something twice, as in create another line in fstab, using the same UUID as the /dev/sda5, then mount it in lets say for example /media/sda7, but this time using umask=022. Then i can leave the original line (the one with umask=007). using this way i can bind /media/sda7/Stuff onto /home/FTP-shared/download, but at the same time i have write access on the same drive using /media/sda5. In this way i can serve the partition with read access(/media/sda7) but I will have read and write access on my machine (/media/sda5)
Please let me know if it is safe to do so? It was just an idea, makes sense to me but lol, i just wanted to confirm before i tried it.
Thanks again mate
G. Mathews
Re: HOWTO : Create a FTP server with user access (proftpd)
I think you can just find a mask option which allows you to use your partition in all cases, maybe 777 i don't know. I have never used NTFS under linux so i can't really help you on this anyway i'm sure the solution exist.
Re: HOWTO : Create a FTP server with user access (proftpd)
i m unable to start my ftp server.....it shows fail....pls help me:confused:
Re: HOWTO : Create a FTP server with user access (proftpd)
Provide full error message and some proftp config details if you wish help please.
Re: HOWTO : Create a FTP server with user access (proftpd)
i performed all the steps you had said...
but when i gave start command...
it showed startin n then gave fail
Re: HOWTO : Create a FTP server with user access (proftpd)
- IPv6 getaddrinfo 'reehan-laptop' error: No address associated with hostname
reehan-laptop -
Re: HOWTO : Create a FTP server with user access (proftpd)
Are you kidding ?
Sorry reehan10, it is not you in particular but i'm a bit tired to answer this question every 10 posts, search in this thread the answer is everywhere.
To be exact you will find last iteration of this question just 9 post before !
Re: HOWTO : Create a FTP server with user access (proftpd)
Hey sorry friend....actually i m new to this site..so didnt read it...sorry and thanks...i ll read it
:-)