Nextcloud over the internet - Can't access config.php permission denied

Discussion about CloudSync.
Locked
User avatar
korani
Posts: 4
Joined: 27 Apr 2021, 08:05

Nextcloud over the internet - Can't access config.php permission denied

Post by korani »

Hi,
I was following the steps in this post:
viewtopic.php?f=41&t=1135&p=6127&hilit= ... ted+domain
to be able to access Nextcloud over the internet but when I tried to access config.php I got Permission denied message
I am using root username to SSH into the NAS
SSH.png
I am not professional with SSH so any help is appreciated :)
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by TMSupport »

What's your TNAS model number and current TOS version?
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
korani
Posts: 4
Joined: 27 Apr 2021, 08:05

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by korani »

my TNaAS is F5-221 and TOS version is 4.2.09 which is the latest when I try to run Software update
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by TMSupport »

Please set the permission to the config.php file using the cmd line chmod rwx
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
korani
Posts: 4
Joined: 27 Apr 2021, 08:05

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by korani »

Would you please provide the full command that I need to run? I tried to find the syntax online but I am not an expert
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by outkastm »

Why do you want to access the file ? You want to read it or edit it ? You don't need to change his permission.
Open it with an editor, like vi for editing

Code: Select all

vi /mnt/md0/application/web-ext/nextcloud/config/config.php
if you want to just read it

Code: Select all

cat /mnt/md0/application/web-ext/nextcloud/config/config.php
User avatar
korani
Posts: 4
Joined: 27 Apr 2021, 08:05

Re: Nextcloud over the internet - Can't access config.php permission denied

Post by korani »

[at=outkastm post_id=10339 time=1620982001 user_id=2797][/at]

Thank you, I managed to edit the file as needed :)
Locked