[SOLVED]nextcloud NAS

Re: nextcloud NAS

Postby adhemar » Dec 28th, '18, 17:50

What must I do? I give permission to access the NAS:
Everyone
Folder owner
Folder group
Admin
User avatar
adhemar
 
Posts: 38
Joined: Mar 1st, '15, 17:43
Location: Roeselare Belgium

Re: nextcloud NAS

Postby adhemar » Dec 28th, '18, 18:12

On the NAS, tab Network Access, I have the option to choose:
SMB, NFS, AFP, FTP, RSYNC, HTTP, DLNA and iTunes.

The authorizations are allowed for Everyone and admin.
Allow anonymous access is checked.

In tab File Access are Folder Owner and admin allowed to read/write.

I do not know what else I can do.
User avatar
adhemar
 
Posts: 38
Joined: Mar 1st, '15, 17:43
Location: Roeselare Belgium

Re: nextcloud NAS

Postby jiml8 » Dec 29th, '18, 07:16

Yes, I had the thought that the protocol supported was probably SMB because OP made a comment way back about this working with Windows.

But, in this case, it is the NAS being accessed and not the Nextcloud instance on the NAS because to access Nextcloud you use a web browser and http/https, or you use Webdav.

I know absolutely nothing about that Netgear NAS. Do you have an option somewhere to add modules to the webserver? If so, you can probably add a webdav module there.

My NAS runs Nas4Free (which is based on FreeBSD, not Linux) and it uses lighttpd as the web server that runs Nextcloud. I have configured this lighttpd instance to load a webdav module, which gives me webdav access to the Nextcloud instance.

Note the distinction here. The NAS is at the base, and I can access it in any of a number of different ways, including SMB. In the NAS is a webserver, and this webserver runs Nextcloud - which, by default, I can only access using a web browser and either http or https. I have added a module to the webserver which means that the webserver now understands the webdav protocol and I can access it that way.

So, to access your nextcloud instance from Mageia, use a web browser. Alternatively, add the webdav protocol to your NAS's webserver.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: nextcloud NAS

Postby jiml8 » Dec 29th, '18, 07:35

adhemar wrote:On the NAS, tab Network Access, I have the option to choose:
SMB, NFS, AFP, FTP, RSYNC, HTTP, DLNA and iTunes.

The authorizations are allowed for Everyone and admin.
Allow anonymous access is checked.

In tab File Access are Folder Owner and admin allowed to read/write.

I do not know what else I can do.

What you are doing when you access the nextcloud folder using SMB is you are accessing the NAS directly, and then browsing into the folder that holds your nextcloud data. When you do this, you are not - repeat NOT - accessing and using Nextcloud. Given your setup you can ONLY access nextcloud using a web browser.

Also, if you make changes in your nextcloud folder (which contains your data) you can screw up your nextcloud installation because nextcloud uses a database to keep track of everything and if you manually make changes...well...it can get ugly.

Also, as a basic security measure, anyone accessing your NAS via SMB or via http or https or any other protocol should NOT be able to gain access to the Nextcloud data. In fact, you should explicitly deny this capability in your permissions setup.

From the beginning, in this thread, I (and others who responded) were misled, thinking your NAS had a capability it does not have. Also, it does appear that Dolphin is broken in how it accesses using webdav, and this did not help.

But, now, I see what is going on. It is clear to me that you do not have a good understanding of what you are doing, and it also appears that you have a configuration on your NAS that is probably very vulnerable, and that puts you at risk.

To basically recap, Nextcloud is a group of programs that are run by the webserver on your NAS for your benefit. You can only access Nextcloud as a running environment using mechanisms that the NAS's webserver understands. These mechanisms are web browser mechanisms (HTTP and HTTPS, just as you would use for any other website), and optionally webdav...but you have to install the webdav capability on your NAS yourself, if the NAS supports that.

When you say it works with Windows 7, what you mean is that you can access the NAS using SMB (which is the mechanism used by Windows networking). This gives you access to the NAS but not to Nextcloud, though you CAN reach the Nextcloud data...and you should not do this. Your NAS's webserver does NOT understand SMB and you cannot access the webserver using SMB, hence you cannot access Nextcloud using SMB.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: nextcloud NAS

Postby adhemar » Dec 29th, '18, 12:12

I managed to activate webdav in my NAS.
In Dolphin Network, I see now a folder Nextcloud.

webdav://willy@nas1:80/Nextcloud/

nas1 is the name of the NAS equal to https://192.168.2.89

When I add a Network Folder, I continue to receive an error message like I shown before.
The konsole shows:
Code: Select all
[adhemar@localhost ~]$ su
Password:
[root@localhost adhemar]# mount -t davfs2 https://192.168.2.89/Nextcloud/remote.php/webdav/ /home/adhemar/Nextcloud -o rw,uid=willy,gid=willy
Please enter the username to authenticate with server
https://192.168.2.89/Nextcloud/remote.php/webdav/ or hit enter for none.
  Username: willy
Please enter the password to authenticate user willy with server
https://192.168.2.89/Nextcloud/remote.php/webdav/ or hit enter for none.
  Password: 
/sbin/mount.davfs2: the server certificate does not match the server name
/sbin/mount.davfs2: the server certificate is not trusted
  issuer:      US
  subject:     US
  identity:    nas-35-AE-07.local
  fingerprint: 04:ac:a9:78:2a:6f:ea:49:71:f9:46:2a:69:ec:5c:78:f3:4a:a7:47
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] y
/sbin/mount.davfs2: Mounting failed.
404 Not Found
[root@localhost adhemar]#

What can I correct here?
User avatar
adhemar
 
Posts: 38
Joined: Mar 1st, '15, 17:43
Location: Roeselare Belgium

Re: nextcloud NAS

Postby adhemar » Dec 31st, '18, 08:13

Because of the problems with the settings of the NAS I will have to go through that manual again.
With this I especially want to thank jiml8 for his clear explanation about webdav and SMB.
Wishing everyone a prosperous and healthy new year.
User avatar
adhemar
 
Posts: 38
Joined: Mar 1st, '15, 17:43
Location: Roeselare Belgium

Re: [SOLVED]nextcloud NAS

Postby xboxboy » Jan 2nd, '19, 07:17

Glad you made some progress. I learnt something too: Webdav isn't just there, it's a module. So, I apologise if I confused everyone. I've only ever run it on traditional PC's, so haven't had that issue. I'm not sure if that's why the clients wont hook up for you though.
xboxboy
 
Posts: 391
Joined: Jun 2nd, '13, 06:41

Previous

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron