How to login mailinabox/nextcloud admin

root@box:~# ll mailinabox/tools/owncloud-unlockadmin.sh
-rwxr-xr-x 1 root root 763 Apr 29 23:20 mailinabox/tools/owncloud-unlockadmin.sh*
root@box:~# sudo mailinabox/tools/owncloud-unlockadmin.sh admin@turvyhost.com
mailinabox/tools/owncloud-unlockadmin.sh: line 11: ./mail.py: No such file or directory
I am going to unlock admin features for admin@turvyhost.com.
You can provide another user to unlock as the first argument of this script.

WARNING: you could break mail-in-a-box when fiddling around with Nextcloud's admin interface
If in doubt, press CTRL-C to cancel.

Press enter to continue.

user not found

I have solved the issues.
First I did the following:
sudo www-data php /usr/local/lib/owncloud/occ group:add (the user)
sudo mailinabox/tools/owncloud-unlockadmin.sh (User)

That’s it

So thank you all who has participated helping to solve it

1 Like

Is there actually an account called admin@turvyhost.com, or is that being aliased to another account?

2 Likes

Glad you got it working.

Hi @jkmilla , Please can you tell me what you put in places (User)

User from Server User, or User from Mail in a Box, or e-mail address from account which we want to add admin for NextCloud

Thx

You need to enable admin on Nextcloud. This is an unsupported modification, however it is possible. After enabling the administrator user for nextcloud you can control nextcloud user disk space quotas and install new apps. Beware many of the apps will eat up your RAM and will slow down your server.

run the following from terminal, if you wish to do so and then login with the administrator email and password, i.e. as when you login Admin page on MIAB:

sudo mailinabox/tools/owncloud-unlockadmin.sh