# Nextcloud,owncloud

**URL:** https://dietpi.com/forum/t/nextcloud-owncloud/827
**Category:** General Discussion
**Created:** [30 December 2016 08:39 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827 "2016-12-30T08:39:40Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![satfoxy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@satfoxy](https://dietpi.com/forum/u/satfoxy)
#### Post date: [30 December 2016 08:39 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/1 "2016-12-30T08:39:40Z")

</div>

Good day.  
I have done many tests with all my hardware RPi 1 + Rp3 + and XU4.  
All my working target is to have a home cloud server, owncloud ,nextcloud.  
I have tested with lightpd and apache2.  
At final project will work thi apache2.  
I haven’t done yet ssl encryption but I will.  
There is one question i have.How to i change the default username and password to Nextcloud?  
At first login to owncloud it lets you to insert what ever you want,but at nextcloud got to use the default.I dont know how to resolve this issuie.  
Till resently i used for the XU4 ubuntu mate 16.04 but the dietpi is far far faster and there is no compare to how easy is to install softwares.  
I become big fan of dietpi.  
Thank you for your time.

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [30 December 2016 15:55 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/2 "2016-12-30T15:55:21Z")

</div>

> [@satfoxy](#):
>
> Good day.  
> I have done many tests with all my hardware RPi 1 + Rp3 + and XU4.  
> All my working target is to have a home cloud server, owncloud ,nextcloud.  
> I have tested with lightpd and apache2.  
> At final project will work thi apache2.  
> I haven’t done yet ssl encryption but I will.  
> There is one question i have.How to i change the default username and password to Nextcloud?  
> At first login to owncloud it lets you to insert what ever you want,but at nextcloud got to use the default.I dont know how to resolve this issuie.  
> Till resently i used for the XU4 ubuntu mate 16.04 but the dietpi is far far faster and there is no compare to how easy is to install softwares.  
> I become big fan of dietpi.  
> Thank you for your time.

This can only be done currently in /boot/dietpi.txt, and, must be set on a fresh install, prior to 1st boot:

```plaintext
#Global Password to be applied for the system
# Affects root login password, and, all software installed by dietpi-software, that requires a password
# eg: MySQL, Transmission, Deluge etc.
# WARN: Passwords with the any of the following characters are not supported: \"$
# WARN: Do NOT change this entry, after 1st run setup of DietPi has been completed. It is always scraped by dietpi-software.
AUTO_Global_Password=dietpi

```

And:

```plaintext
#Optional username for nextcloud admin account, default is admin. Applied during installation.
dietpi_nextcloud_username=admin

```

There is a **bug** in v140 that causes a failed NextCloud install if using global password above. This is fixed for v141, but v141 is not completed yet, so you’ll need to either wait, or, use the testing branch: [DietPi/BRANCH\_SYSTEM.md at master · Fourdee/DietPi · GitHub](https://github.com/Fourdee/DietPi/blob/master/BRANCH_SYSTEM.md)

---

<div class="post-metadata">

### Author: ![satfoxy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@satfoxy](https://dietpi.com/forum/u/satfoxy)
#### Post date: [30 December 2016 18:36 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/3 "2016-12-30T18:36:47Z")

</div>

Thank you for your answer.  
I am in a try stage with my cloud server,cose I haft to get an ssd for the final setup.Till then i try and test.  
For now I will let the things as they are.Its not that big problem the nextcloud default username and pass for now.  
The only thing i haven’t setup yet is SSL setup for nextcloud.For owncloud works very good.  
I was wandering if it is possible in the future to see a dietpi distro for the normal desktop pc or laptops. 😉

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [30 December 2016 20:41 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/4 "2016-12-30T20:41:19Z")

</div>

> [@satfoxy](#):
>
> I was wandering if it is possible in the future to see a dietpi distro for the normal desktop pc or laptops. 😉

Desktops are available for all RPi and Odroid devices from dietpi-software, see list below:  
[https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/1](https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/1)

For desktop from boot. Make sure you say “yes” to autostart options, then select “Desktops”

For SSL, if you are using Apache2 or Lighttpd webserver, CertBot is a great tool to generate free SSL certs, and, have it automatically configured on system:  
[https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/41](https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/41)

---

<div class="post-metadata">

### Author: ![satfoxy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@satfoxy](https://dietpi.com/forum/u/satfoxy)
#### Post date: [1 January 2017 10:51 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/5 "2017-01-01T10:51:23Z")

</div>

Hi and happy new year.  
When i run dietpi-letsencrypt i got

```nohighlight
[Ok] Apache2 webserver detected
/DietPi/dietpi/dietpi-letsencrypt: line 134: ./certbot-auto: No such file or directory

```

The certbot-auto file is inside the root folder.Where do i must put it?  
Thanks.

Finally i did it.The comand i gave and progress went good was " ./certbot-auto "  
so now my setup is complet.My home cloud server working with ssl is super fast and stable.  
I will redo all from the begining when i will have a ssd disk.  
For now i will let it as it is.

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [1 January 2017 16:23 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/6 "2017-01-01T16:23:36Z")

</div>

> [@satfoxy](#):
>
> Hi and happy new year.  
> When i run dietpi-letsencrypt i got
> 
> ```plaintext
> [Ok] Apache2 webserver detected
> /DietPi/dietpi/dietpi-letsencrypt: line 134: ./certbot-auto: No such file or directory
> 
> ```
> 
> The certbot-auto file is inside the root folder.Where do i must put it?

Ah,

Looks like you didn’t install certbot from dietpi-software?

DietPi-LetsEncrypt expects the certbot scripts to be installed in /etc/certbot\_scripts. Which is done during install of certbot in dietpi-software: [https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/41](https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/41)

---

<div class="post-metadata">

### Author: ![satfoxy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@satfoxy](https://dietpi.com/forum/u/satfoxy)
#### Post date: [6 January 2017 06:29 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/7 "2017-01-06T06:29:54Z")

</div>

Good day  
I have got a SSD disk.  
I have reinstall from scratch the new version 141 to my XU4 with all data saved to the usb hard disk.  
Instaled nextcloud, and owncloud with SSl encrypt and works perfect.  
This time i have close the XU4 into the cloudshell to avoid me reinstall again and to be more carefuly.  
I am very satisfaied by the all setup.  
It is very usefull project,very fast,and enought easy to make it,thats to DietPi team.  
Thanks. 🙂🙂

---

<div class="post-metadata">

### Author: ![przemko](https://dietpi.com/forum/user_avatar/dietpi.com/przemko/32/2308_2.png) [@przemko](https://dietpi.com/forum/u/przemko)
#### Post date: [5 April 2020 10:43 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/8 "2020-04-05T10:43:07Z")

</div>

> This can only be done currently in \> /boot/dietpi.txt\> , and, must be set on a fresh install, prior to 1st boot

Hi, so it’s impossible to change password for admin in nextcloud? If so maybe I will block admin user and add new user to nextcloud with admin privilages?  
Regards Przemek

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [5 April 2020 11:56 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/9 "2020-04-05T11:56:59Z")

</div>

which user you are referring to? The user Admin that is used to access NectCloud WebSite?

This user you can change on NextCloud WebSite themselves. Just login as admin user, go to Setting \> Security and change the password.

---

<div class="post-metadata">

### Author: ![przemko](https://dietpi.com/forum/user_avatar/dietpi.com/przemko/32/2308_2.png) [@przemko](https://dietpi.com/forum/u/przemko)
#### Post date: [5 April 2020 12:07 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/10 "2020-04-05T12:07:37Z")

</div>

Hi, thanks for reply. I restart dietpi and now my new password works. Can You tell me it is possible to disable Admin user on nextcloud or change to different name?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [5 April 2020 12:34 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/11 "2020-04-05T12:34:43Z")

</div>

Hi basically it’s described in this post at NextCloud

[https://help.nextcloud.com/t/cannot-delete-disable-admin-user-account/67141/2](https://help.nextcloud.com/t/cannot-delete-disable-admin-user-account/67141/2)

for DietPi the command would be slightly different:

```nohighlight
ncc user:delete admin

```

Attention: This does, what it should, it delete’s the user and all the files for userid “admin” without any questions and confirmations. Ensure you have created another user with admin privileges before.

---

<div class="post-metadata">

### Author: ![przemko](https://dietpi.com/forum/user_avatar/dietpi.com/przemko/32/2308_2.png) [@przemko](https://dietpi.com/forum/u/przemko)
#### Post date: [5 April 2020 12:54 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/12 "2020-04-05T12:54:25Z")

</div>

This delete all files of admin user? So if I add new user with admin privilages I will keep that files or lost them?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [5 April 2020 13:01 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/13 "2020-04-05T13:01:06Z")

</div>

It will delete all files, setting aso that belongs to this user. If you don’t like to delete the user, you can disable it as well

```nohighlight
ncc user:disable admin

```

But result might be same. I guess as long as the user is disabled, you maybe not able to access files of this user from WebInterface. Probably something you need to test.

---

<div class="post-metadata">

### Author: ![przemko](https://dietpi.com/forum/user_avatar/dietpi.com/przemko/32/2308_2.png) [@przemko](https://dietpi.com/forum/u/przemko)
#### Post date: [5 April 2020 13:21 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/14 "2020-04-05T13:21:25Z")

</div>

So I will login as dietpi user and with:

```nohighlight
sudo ncc user:disable admin

```

disable user. If something goes wrong I will make:

```nohighlight
sudo sudo ncc user:enable admin

```

? and everything will be OK?

Edit. I go to my /mnt/Toshiba/dietpi\_userdata/nextcloud\_data and don’t see folder with my new user admin name. I see Admin folder and two regular users but not that new admin user. That means new admin share files and folders with old admin user?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [5 April 2020 13:30 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/15 "2020-04-05T13:30:55Z")

</div>

well you can do this as root as well 🕶

I guess if you enable the user, it should be available again. BTW you could just run ncc command. There you will see all available options. As this is all NextCloud specific, it might be good to check as well on NextCloud websites. These guys are more specialist on NextCloud questions as we are on this Board 🕶 The only difference is that on DietPi you can use ncc command instead of occ.

For reference [https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/75](https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/75)

> You may want to configure your Nextcloud from command line via occ command: \> Nextcloud admin manual  
> We added a shortcut to the otherwise necessary '\> _ **sudo -u www-data php /var/www/nextcloud/occ** _\> ':  
> Just use '\> **_ncc_** \> ’ followed by the desired command inside your terminal.

---

<div class="post-metadata">

### Author: ![przemko](https://dietpi.com/forum/user_avatar/dietpi.com/przemko/32/2308_2.png) [@przemko](https://dietpi.com/forum/u/przemko)
#### Post date: [5 April 2020 13:35 UTC](https://dietpi.com/forum/t/nextcloud-owncloud/827/16 "2020-04-05T13:35:44Z")

</div>

OK, when I login as new admin I don’t have any files so I will stay with old one. Thank You very much one more time.  
Regards Przemko
