Si je chmod mon /mnt/DISQUE en 777 et mon /etc/fstab en: /dev/sdb2 /mnt/DISQUE ntfs defaults 0 1
Jây accĂšde depuis lâautre machine, mais Nextcloud nâest plus utilisable, jâai le message:
Votre dossier âdatadirectoryâ nâa pas les droits â007â
Hi,
Im a new user of Nextcloud, i install Ubunntu 22.04 and Nextcloud 28.0.1.1
I got a hard drive 4To and i want use as âdatadirectoryâ,
i have modified the var in /nextcloud/config/config.php
i have install the file .ocdata, but im stuck on rights of â/mnt/DISQUEâ.
The result of ls: drwxrwx--- 1 www-data www-data 4096 janv. 10 13:20 DISQUE
and the /etc/fstab: /dev/sdb2 /mnt/DISQUE ntfs defaults,gid=33,uid=33,umask=007 0 1
With this config, Nextcloud its ok , but:
I would, from an second PC Ubuntu access on folder //mapremiereip/mnt/DISQUE in goal to do copy/save
but with this rights: umask=007 i cant do it.
If i do: chmod /mnt/DISQUE in 777 and my /etc/fstab en: /dev/sdb2 /mnt/DISQUE ntfs defaults 0 1
I can from the other PC, but Nextcloud is now un usable, i got the error:
You folder âdatadirectoryâ must have rights â007â
the data folder âbelongsâ Nextcloud, it does not expect manual changes, so accessing in parallel through other processes should be avoided. Use the external folder feature instead.
For backup it is ok to access it. I would just use it with a backup process, that for the mounts e.g. windows does not create thumbnails, etc. but perhaps with SMB it can be done.
chmod 777 should not be used at all. It gives access to your data for everybody on your system. It should only be granted to users that should have access. You can adjust the user/group permissions. E.g. you have a backup user www-backup and this user is in the group www-data it will be able to access the data folder.
In an even better world, you can use ACLs on Linux (Access Control Lists - ArchWiki) so that the backup user has only read access.
Perhaps , its impossible âŠ
⊠and i have to pass on a âlocalâ backup, like that:
On 10.92.1.205 ,should i copy /mnt/DISQUE to /mnt/DISQUE_SAVE
and after what , on 10.92.1.208 sudo mount //10.92.1.205/DISQUE_SAVE /mnt/205_NEXTCLOUD -o username=ubuntu,password=password