Page 1 of 2

owncloud Login

Posted: 16 May 2021, 17:11
by nog-bad-the-bad
Hi there,
I've just installed owncloud and it's asking for login! I've not set one up yet is there a default or can this be reset?
cheers in advance

Re: owncloud Login

Posted: 18 May 2021, 15:54
by TMSupport
Please SSH access your TNAS, and run the cmd lines:
vi /usr/local/web-ext/owncloud/config/config.php
modify line 47
change the value true to be flase
WeChat Image_20210518155724.png
run owncloud then to reconfigure new user and database.

Re: owncloud Login

Posted: 20 May 2021, 07:38
by nog-bad-the-bad
Thanks support, however, config.php is empty!

"/usr/local/web-ext/owncloud/config/config.php 1/1 100%"

I un-installed owncloud then re-installed it just to check, but it is still an empty file!

Any idea?

Cheers

Warren

Re: owncloud Login

Posted: 20 May 2021, 15:22
by TMSupport
Please uninstall owncloud first.
Then run the cmd lines below to delete all the configuration files.

Code: Select all

rm -rf  /mnt/md0/appdata/database/owncloud
rm -rf  /mnt/md0/application/pkgs/owncloud
rm -rf  /mnt/md0/application/pkgs/owncloud.tpk
rm -rf  /mnt/md0/application/web-ext/owncloud
rm -rf  /tmp/wget-owncloud
rm -rf  /tmp/databack/json-owncloud
Reinstall owncloud.

Re: owncloud Login

Posted: 20 May 2021, 17:29
by nog-bad-the-bad
@TMSupport,
Thank you, That worked a treat.... :D
all good now.
w.

Re: owncloud Login

Posted: 18 Jun 2021, 23:47
by penright
TMSupport wrote: 20 May 2021, 15:22 Please uninstall owncloud first.
Then run the cmd lines below to delete all the configuration files.

Code: Select all

rm -rf  /mnt/md0/appdata/database/owncloud
rm -rf  /mnt/md0/application/pkgs/owncloud
rm -rf  /mnt/md0/application/pkgs/owncloud.tpk
rm -rf  /mnt/md0/application/web-ext/owncloud
rm -rf  /tmp/wget-owncloud
rm -rf  /tmp/databack/json-owncloud
Reinstall owncloud.
When trying to remove '/mnt/md0/application/pkgs/owncloud' I am getting error. I have also upgraded to 4.2.13 x86 version.

/apps/files_mediaviewer/LICENSE': Permission denied
rm: cannot remove '/mnt/md0/application/pkgs/owncloud/usr/local/web-ext/owncl/apps/files_mediaviewer/appinfo/signature.json': Permission denied
rm: cannot remove '/mnt/md0/application/pkgs/owncloud/usr/local/web-ext/owncl/apps/files_mediaviewer/appinfo/app.php': Permission denied


If I try and use sudo rm, I get this error and it does not ask from the admin password.
sudo rm -rf /mnt/md0/application/pkgs/ownclou
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Re: owncloud Login

Posted: 21 Jun 2021, 15:41
by TMSupport
{L_BUTTON_AT}penright
If you are running TOS4.2.13, you should SSH login as admin (or your default administrator's username), and run sudo -i and enter the login password again to get the root permission.

Re: owncloud Login

Posted: 21 Jun 2021, 20:05
by penright
TMSupport wrote: 21 Jun 2021, 15:41 [at=penright post_id=11191 time=1624031239 user_id=2896][/at]

If you are running TOS4.2.13, you should SSH login as admin (or your default administrator's username), and run sudo -i and enter the login password again to get the root permission.


The same thing, sudo must be owned by uid 0 and have the setuid bit set. From reading the forums, this seems to be an issue for the last few versions.
Image

Re: owncloud Login

Posted: 21 Jun 2021, 22:01
by TMS
Please refer to this link :viewtopic.php?f=23&t=2068

Re: owncloud Login

Posted: 22 Jun 2021, 01:50
by penright
TMS wrote: 21 Jun 2021, 22:01 Please refer to this link :viewtopic.php?f=23&t=2068
I was expecting this, but I did exactly as the topic you linked if you look closely at the image I did exactly what I was supposed to do. Running sudo is where the issue is.