What's new

[solved] mount.cifs from network to a Merlin curlftpfs location

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

amplatfus

Senior Member
Hi,

I installed curlftpfs on Merlin and mounted on router location available at /tmp/mnt/ftp.
Code:
asus@router:/# curlftpfs domain.com /mnt/ftp -o user=user@domain.com:password,allow_other
asus@router:/# mount
curlftpfs#ftp://domain.com/ on /tmp/mnt/ftp type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

Now I need to mount this as a network folder something like this entered on a network device:
Code:
root@linux:/home/guest# mount.cifs //192.168.0.1/domain.com /mnt/ftp -o username=usermerlin,password=password
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Could you please help me with a adivice? Is this possible?

Thank you!
 
Ok, thanks. And could you please show how this can be done?
BR!
 
In the normal way [USB Application > Network Place(Samba) Share]. If the filesystem doesn't show up there then it probably can't be done.
 
It doesn't. What I have found in the meantime is that smb.conf must be edited. The solution is to add something to this file in file /jffs/configs/smb.conf.add
Source: https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files
What I have found on other site is that I have to add something like into /jffs/configs/smb.conf.add:
Code:
[<folder_name>]
path = /home/<user_name>/<folder_name>
valid users = <user_name>
read only = no
Source: https://help.ubuntu.com/community/How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal) - Uncomplicated, Simple and Brief Way!
I added like this
Code:
[ftphand]
path =/tmp/mnt/ftp
valid users = root
read only = no
But now I do not know what to do next.
Thanks!
 
It's magic, is working. After service restart_ftpsamba I entered:
Code:
mount.cifs //192.168.0.1/ftphand/ /mnt/ftphand -o username=user,password=pass
And reading and writing are working both on /mnt/ftphand
PS: I will change the thread title into [solved]
Thank you so much! :)
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top