ftp with smb shares

ftp with smb shares

Postby lintner » Tue Aug 25, 2015 10:23 pm

Hello, I am wondering if there is a possibility to add my smb shares from my openelec machine to my ftp server (running 16.1 firmware), the reason for doing this is because the ftp-server in the NAS is very much superior than the one you can use in openelec, so that would be awesome if I could somehow do ...

cheers from sweden !
lintner
 
Posts: 4
Joined: Sun Apr 19, 2015 8:48 pm

Re: ftp with smb shares

Postby fvdw » Wed Aug 26, 2015 5:00 pm

Why don't you just copy over those smb shares to your nas. The firmware let you use shared folders as well via ftp as samba
fvdw
Site Admin - expert
 
Posts: 13472
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ftp with smb shares

Postby lintner » Thu Aug 27, 2015 5:41 am

I'm not sure what you mean by shared folders, did you mean to copy all of the data from my openelec machines ? because I can't do that, my external drives on my openelec machines are total 12 GB ...
lintner
 
Posts: 4
Joined: Sun Apr 19, 2015 8:48 pm

Re: ftp with smb shares

Postby Jocko » Thu Aug 27, 2015 7:59 am

Hi lintner,

What you can try is to load this openelec smb shares.

1/ Create an 'openelec' share with FTP access (set the wanted user permissions)
2/ Create a folder for each openelec smb shares (I assume named elec_shrX)
You can set these folders from your laptop or directly with a shell command
Code: Select all
 mkdir -m 777 /direct-usb/openelec/elec_shrX

3/ Mount the remote openelec smb shares.
Code: Select all
mount -t cifs //openelechostname/elec_shrX /direct-usb/openelec/elec_shrX -o rw,iocharset=utf8,username='youreleclogin',password='yourpassword'
(where openelechostname is the hostname of your openelec or its IP address and youreleclogin is the login to get a samba access directly from the openelec)
Then elec_shrX content will be available (read or write access according the permission of the youreleclogin account.
(note you can only reduce user permissions with FTP permission and never grant them)

You can restore the openelec smb shares after a NAS rebooting by using the boot jobs menu.

After enabling it (read its help page) , create a file with these lines
Code: Select all
#!/bin/sh
if [ -f /direct-usb/openelec ]
then
 [ ! -d /direct-usb/openelec/elec_shrX ] && mkdir -m 777 /direct-usb/openelec/elec_shrX
 mount -t cifs //openelechostname/elec_shrX /direct-usb/openelec/elec_shrX -o rw,iocharset=utf8,username='youreleclogin',password='yourpassword'
fi
(repeat the last two lines for each openelec smb shares)
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Lacie cloudbox (white casing)

Who is online

Users browsing this forum: No registered users and 23 guests