-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Steps to reproduce
- Create new user
- Log in with new user account and log out
- Run the following command on the server command line:
sudo -u www-data php occ files:transfer-ownership olduser newuser
Expected behaviour
I want to rename an existing user, for that I have to create a new user and then transfer the ownership of the files of the old user, correct? This doesn't work as explained above.
Actual behaviour
The output I then get is:
The target user is not ready to accept files. The user has at least to be logged in once.
To check if the user has logged in according to Nextcloud, I checked the following command.
sudo -u www-data php occ user:info newuser
- user_id: newuser
- display_name: My name
- email: user@domain.example
- cloud_id: user@domain.example
- enabled: true
- groups:
- notifications
- quota: 100 GB
- last_seen: 2018-05-25T08:14:50+00:00
- user_directory: /srv/nextcloud/newuser
- backend: Database
Server configuration
Operating system:
Raspbian 9 (Stretch)
Web server:
Apache 2.4.25-3+deb9u4
Database:
MariaDB 10.1.23-9+deb9u1
PHP version:
PHP 7.0.27-0+deb9u1
Nextcloud version:
13.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install of 13, few weeks ago updated within Nextcloud to 13.0.1
Where did you install Nextcloud from:
Official website
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
- activity: 2.6.1
- audioplayer: 2.3.0
- bruteforcesettings: 1.0.3
- calendar: 1.6.1
- comments: 1.3.0
- contacts: 2.1.3
- dav: 1.4.6
- encryption: 2.0.0
- federatedfilesharing: 1.3.1
- federation: 1.3.0
- files: 1.8.0
- files_pdfviewer: 1.2.1
- files_sharing: 1.5.0
- files_texteditor: 2.5.1
- files_trashbin: 1.3.0
- files_versions: 1.6.0
- files_videoplayer: 1.2.0
- gallery: 18.0.0
- logreader: 2.0.0
- lookup_server_connector: 1.1.0
- news: 12.0.1
- nextcloud_announcements: 1.2.0
- notes: 2.3.2
- notifications: 2.1.2
- oauth2: 1.1.0
- password_policy: 1.3.0
- provisioning_api: 1.3.0
- radio: 0.6.1
- rainloop: 5.1.0
- serverinfo: 1.3.0
- sharebymail: 1.3.0
- socialsharing_email: 1.0.3
- systemtags: 1.3.0
- tasks: 0.9.6
- theming: 1.4.4
- twofactor_backupcodes: 1.2.3
- twofactor_totp: 1.4.1
- twofactor_u2f: 1.5.5
- updatenotification: 1.3.0
- workflowengine: 1.3.0
Disabled:
- admin_audit
- files_external
- firstrunwizard
- survey_client
- user_external
- user_ldap
Nextcloud configuration:
Config report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
""
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/",
"dbtype": "mysql",
"version": "13.0.2.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "php",
"mail_smtpauthtype": "PLAIN",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"enable_previews": "false",
"htaccess.RewriteBase": "\/",
"filelocking.enabled": "true",
"memcache.local": "\\OC\\Memcache\\APCu",
"updater.release.channel": "production",
"mail_smtpsecure": "tls",
"theme": "",
"loglevel": 2
}
}
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No