On 3/8/21 5:37 PM, George N. White III wrote:
On Mon, 8 Mar 2021 at 12:33, Robert McBroom via users <users@lists.fedoraproject.org mailto:users@lists.fedoraproject.org> wrote:
~]# showmount -e 192.168.1.248 Export list for 192.168.1.248 <http://192.168.1.248>: /mnt/HD/HD_a2/mcstuffy * /mnt/HD/HD_a2/SmartWare * /mnt/HD/HD_a2/Public * Apparently both smb and nfs access are provided to the shares. As was suggested in another response adding the user and password of the client system to the NAS allowed access. Also it was suggested that ssh access had been noted elsewhere. The web page for the NAS provides a check box to enable ssh access with a disclaimer about any changes voiding the warranty. To be explored.See: https://community.wd.com/t/mounting-mycloud-ex2-on-a-linux-desktop/98215 https://community.wd.com/t/mounting-mycloud-ex2-on-a-linux-desktop/98215 was able to mount the NAS using nfsv4.
See the client parts of https://fedoraproject.org/wiki/User:Renich/HowTo/NFS https://fedoraproject.org/wiki/User:Renich/HowTo/NFS and https://access.redhat.com/solutions/3773891 https://access.redhat.com/solutions/3773891 and leave the server config alone for now. The first thing to check is the NFS version support. On the client run:
|# rpcinfo -p <NAS-ip> |
You may need id mapping if user and group ID's differ (to check, use "id username").
~]# rpcinfo -p 192.168.1.248 program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100003 3 tcp 2049 nfs 100227 3 tcp 2049 nfs_acl 100003 3 udp 2049 nfs 100227 3 udp 2049 nfs_acl 100021 1 udp 34321 nlockmgr 100021 3 udp 34321 nlockmgr 100021 4 udp 34321 nlockmgr 100021 1 tcp 35321 nlockmgr 100021 3 tcp 35321 nlockmgr 100021 4 tcp 35321 nlockmgr 100005 1 udp 37101 mountd 100005 1 tcp 57249 mountd 100005 2 udp 38322 mountd 100005 2 tcp 44879 mountd 100005 3 udp 49287 mountd 100005 3 tcp 59055 mountd 100024 1 udp 47505 status 100024 1 tcp 50765 status
Trying the ssh login gives
~]# ssh -l sshd 192.168.1.248 sshd@192.168.1.248's password:
BusyBox v1.30.1 (2020-09-04 02:41:28 UTC) built-in shell (ash) Enter 'help' for a list of built-in commands.
root@MyCloudEX2Ultra ~ # help Built-in commands: ------------------ . : [ [[ alias bg break cd chdir command continue echo eval exec exit export false fg getopts hash help history jobs kill let local printf pwd read readonly return set shift source test times trap true type ulimit umask unalias unset wait root@MyCloudEX2Ultra ~ #
Seems like BusyBox has been modified to remove all of the really useful commands. Looked at the list of commands for ash and tried a few but they were not there. Not even ls