{"id":3033,"date":"2020-02-24T21:09:25","date_gmt":"2020-02-25T03:09:25","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3033"},"modified":"2020-02-25T11:36:08","modified_gmt":"2020-02-25T17:36:08","slug":"reset-nextcloud-admin-password-snap-package","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/reset-nextcloud-admin-password-snap-package\/","title":{"rendered":"Reset NextCloud admin password &#8211; Snap package"},"content":{"rendered":"\n<p>The regular command to reset the password for a NextCloud user does not work when NextCloud is installed from a snap package.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo -u www-data php \/var\/www\/nextcloud\/occ user:resetpassword admin\nCould not open input file: \/var\/www\/nextcloud\/occ<\/pre>\n\n\n\n<p>The reason is that NextCloud is located in &#8220;\/snap\/nextcloud&#8221;<\/p>\n\n\n\n<p>Unfortunately the occ file is not located in \/snap\/nextcloud\/current\/<\/p>\n\n\n\n<p>However, you can run the nextcloud.occ command directly without specifying the path.  Change admin to your user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nextcloud.occ user:resetpassword admin<\/pre>\n\n\n\n<p>Type in the new password twice and login.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The regular command to reset the password for a NextCloud user does not work when NextCloud is installed from a snap package. $ sudo -u www-data php \/var\/www\/nextcloud\/occ user:resetpassword admin Could not open input file: \/var\/www\/nextcloud\/occ The reason is that &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/reset-nextcloud-admin-password-snap-package\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[919,7,700,200,11,894],"class_list":["post-3033","post","type-post","status-publish","format-standard","hentry","category-linux","tag-cloud","tag-linux-2","tag-nextcloud","tag-password","tag-reset","tag-snap"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3033"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3033\/revisions"}],"predecessor-version":[{"id":3034,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3033\/revisions\/3034"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}