Write into samba shared dirs via FTP

View: New views
2 Messages — Rating Filter:   Alert me  

Write into samba shared dirs via FTP

by Big Boss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I need sometimes to backup some litle files via internet , so I use
vsftpd on my Nslu2 and with it, I can write into my home dir.

But I would write these files into a samba shared dir and so give access
to them for PC under windows.

After a very long reflexion, I choose a very simple solution:

I create a sub dir in my home dir: '/home/toto/newdir' and with samba I
mount the shared dir 'shareddir' on this new dir with :

'smbmount //localhost/shareddir /home/toto/newdir'

The 'newdir' now show the contents of the 'shareddir' and this with
write permissions

Vsftpd does'nt see anything... and now peoples at home can use
immediatly the files I have backuped.
Bye



Re: Write into samba shared dirs via FTP

by Sébastien Lorquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

nice trick :)

thanks for sharing!

sebastien

On Sun, Jun 14, 2009 at 6:10 PM, maisondouf <maisondouf@...> wrote:

>
>
> Hi,
>
> I need sometimes to backup some litle files via internet , so I use vsftpd
> on my Nslu2 and with it, I can write into my home dir.
>
> But I would write these files into a samba shared dir and so give access to
> them for PC under windows.
>
> After a very long reflexion, I choose a very simple solution:
>
> I create a sub dir in my home dir: *'/home/toto/newdir'* and with samba I
> mount the shared dir *'shareddir'* on this new dir with :
>
> *'smbmount //localhost/shareddir /home/toto/newdir'
>
> *The 'newdir' now show the contents of the 'shareddir' and this with write
> permissions
>
> Vsftpd does'nt see anything... and now peoples at home can use immediatly
> the files I have backuped.
> Bye
>
>
>
>
>