owncloud

Dies ist eine alte Version des Dokuments!


OC Basisdokumentation & Entwicklung

sudo -u www-data php occ maintenance:install --database "mysql" --database-name "owncloud2"
--database-user "ocadmin" --database-pass "xxxxxxxxxxxxxxx" --admin-user "admin"
--admin-pass "xxxxxxxxxxxx" --data-dir /mnt/data/ocdata2

Maintenance Mode aktivieren (global)

sudo -u www-data php occ maintenance:mode --on

single user mode, Login nur für User der Admingruppe:

sudo -u www-data php occ maintenance:singleuser --on

Upgrade starten

sudo -u www-data php occ upgrade

Danach Maintenance Mode wieder aus

sudo -u www-data php occ maintenance:mode –-off

oder

sudo -u www-data php occ maintenance:singleuser -–off

 sudo -u www-data php occ integrity:check-core
 sudo -u www-data php occ integrity:check-app $appid

Code integrity check global abschalten:

Disable globally with 'integrity.check.disabled' ⇒ true, in config.php

Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 = Warning, 3 = Error, and 4 = Fatal. The default value is Warning.

sudo -u www-data php occ integrity:sign-app
--privateKey=/home/thommie/github/oc-app-signing-netzwissen.de.key
--certificate=/home/thommie/github/oc-app-signing-netzwissen.de.crt
--path=/home/thommie/github/oc-theme-nw/
app
 app:check-code   check code to be compliant
 app:disable      disable an app
 app:enable       enable an app
 app:getpath      Get an absolute path to the app directory
                  (added in 9.0)
 app:list         List all available apps

Neuen User anlegen (displayname = voller Name, uid = Login)

sudo -u www-data php occ user:add --display-name 'Herr test1' --email 'support@netzwissen.de' --group 'User' test1

The user "test1" was created successfully
Display name set to "Herr test1"
Email address set to "support@netzwissen.de"
User "test1" added to group "User"

Passwort als Umgebungsvariable übergeben (z.B. für Masseneintrag) - Achtung, geht nur als root

''export OC_PASS=newpassword ''''su -s /bin/sh www-data -c
'php occ user:add –password-from-env –display-name="Fred Jones" –group="users" fred' ''

''The user "fred" was created successfully
Display name set to "Fred Jones" User "fred" added to group "users" ''

über cli

sudo -u www-data php occ user:resetpassword

über Mail

root@www:/var/www/owncloud# sudo -u www-data php occ user:resetpassword --send-email test1
The password reset link is: https://www.netzwissen.de/owncloud/index.php/lostpassword/reset/form/QgBwq9JIZJbdhXf7NLq7L/test1

über Link

sudo -u www-data php occ user:resetpassword --output-link test1
sudo -u www-data php occ user:lastseen schreiber-esslingen@t-online.de

365 Tage

root@www:/var/www/owncloud# sudo -u www-data php occ user:inactive 365
sudo -u www-data php occ user:delete
user:disable [uid]
sudo -u www-data php occ user:report
sudo -u www-data php console.php files:scan –all
trashbin:cleanup   Remove deleted files

files
 files:cleanup              cleanup filecache
 files:scan                 rescan filesystem
 files:transfer-ownership   All files and folders are moved to another
                            user - shares are moved as well. (Added in 9.0)

Datentransfer von User A nach User B:

sudo -u www-data php occ files:transfer-ownership --path="gruenerheiner" thommie4 gruenerheiner

Dateien landen beim neuen User in einem separatend transferred-.. Ordner

sudo -u www-data php occ app:enable encryption

sudo -u www-data php occ encryption:enable

sudo -u www-data php occ encryption:status

Bei aktiver Verschlüsselung sollte immer über den Namen geshared werden, siehe https://doc.owncloud.org/server/master/user_manual/files/encrypting_files.html Erst danach sollte ein Gruppen Share gesetzt werden, der Namens-Share kann dann wieder weg.

Only users who have private encryption keys have access to shared encrypted files and folders. Users who have not yet created their private encryption keys will not have access to encrypted shared files; they will see folders and filenames, but will not be able to open or download the files. They will see a yellow warning banner that says “Encryption App is enabled but your keys are not initialized, please log-out and log-in again.”

Share owners may need to re-share files after encryption is enabled; users trying to access the share will see a message advising them to ask the share owner to re-share the file with them. For individual shares, un-share and re-share the file. For group shares, share with any individuals who can’t access the share. This updates the encryption, and then the share owner can remove the individual shares.

Datenbankschema

OIDC

  • owncloud.1628949387.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)