Your IP : 216.73.217.64
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Resetting a Lost Admin Password — ownCloud 10.0.1 Server Administration Manual 10.0.1 documentation</title>
<link rel="stylesheet" href="../_static/" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/main.min.css" type="text/css" />
<link rel="stylesheet" href="../_static/styles.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '10.0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
<link rel="top" title="ownCloud 10.0.1 Server Administration Manual 10.0.1 documentation" href="../contents.html" />
<link rel="up" title="User Management" href="index.html" />
<link rel="next" title="Resetting a User Password" href="reset_user_password.html" />
<link rel="prev" title="User Management" href="user_configuration.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#1d2d44">
</head>
<body role="document">
<div class="wrap container not-front">
<div class="content row">
<main class="main">
<div class="row page-content-header">
<div class="col-md-5 col-md-offset-7">
<form class="headersearch" style="margin-bottom:-3px;" action="../search.html" method="get">
<input type="text" value="" name="q" id="q" class="form-control" />
<button class="btn btn-default" type="submit" id="searchsubmit">Search</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="sidebar">
<div class="menu-support-container">
<ul id="menu-support" class="menu">
<ul>
<li><a href="../contents.html">Table of Contents</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../whats_new_admin.html">What’s New in ownCloud 10.0.1</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_database/index.html">Database Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File Sharing and Management</a></li>
<li class="toctree-l1"><a class="reference internal" href="../maintenance/index.html">Maintenance</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes Management</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_server/index.html">Server Configuration</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">User Management</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="user_configuration.html">User Management</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="">Resetting a Lost Admin Password</a></li>
<li class="toctree-l2"><a class="reference internal" href="reset_user_password.html">Resetting a User Password</a></li>
<li class="toctree-l2"><a class="reference internal" href="user_auth_ftp_smb_imap.html">User Authentication with IMAP, SMB, and FTP</a></li>
<li class="toctree-l2"><a class="reference internal" href="user_auth_ldap.html">User Authentication with LDAP</a></li>
<li class="toctree-l2"><a class="reference internal" href="user_provisioning_api.html">User Provisioning API</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and Troubleshooting</a></li>
<li class="toctree-l1"><a class="reference internal" href="../enterprise/index.html">Enterprise Features</a></li>
</ul>
</ul>
</div>
</div>
</div>
<div class="col-md-9">
<div class="page-content">
<ul class="prevnext-title list-unstyled list-inline">
<li class="prev">
<a href="user_configuration.html" title="Previous Chapter: User Management"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« User Management</span>
</a>
</li>
<li class="next">
<a href="reset_user_password.html" title="Next Chapter: Resetting a User Password"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Resetting a U... »</span>
</a>
</li>
</ul>
<div class="section" id="resetting-a-lost-admin-password">
<h1>Resetting a Lost Admin Password<a class="headerlink" href="#resetting-a-lost-admin-password" title="Permalink to this headline">ΒΆ</a></h1>
<p>The normal ways to recover a lost password are:</p>
<ol class="arabic simple">
<li>Click the password reset link on the login screen; this appears after a
failed login attempt. This works only if you have entered your email address
on your Personal page in the ownCloud Web interface, so that the ownCloud
server can email a reset link to you.</li>
<li>Ask another ownCloud server admin to reset it for you.</li>
</ol>
<p>If neither of these is an option, then you have a third option, and that is
using the <code class="docutils literal"><span class="pre">occ</span></code> command. <code class="docutils literal"><span class="pre">occ</span></code> is in the <code class="docutils literal"><span class="pre">owncloud</span></code> directory, for
example <code class="docutils literal"><span class="pre">/var/www/owncloud/occ</span></code>. <code class="docutils literal"><span class="pre">occ</span></code> has a command for resetting all
user passwords, <code class="docutils literal"><span class="pre">user:resetpassword</span></code>. It is best to run <code class="docutils literal"><span class="pre">occ</span></code> as the HTTP
user, as in this example on Ubuntu Linux:</p>
<div class="highlight-python"><div class="highlight"><pre>$ sudo -u www-data php /var/www/owncloud/occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Successfully reset password for admin
</pre></div>
</div>
<p>If your ownCloud username is not <code class="docutils literal"><span class="pre">admin</span></code>, then substitute your ownCloud
username.</p>
<p>You can find your HTTP user in your HTTP configuration file. These are the
default Apache HTTP user:group on Linux distros:</p>
<ul class="simple">
<li>Centos, Red Hat, Fedora: apache:apache</li>
<li>Debian, Ubuntu, Linux Mint: www-data:www-data</li>
<li>openSUSE: wwwrun:www</li>
</ul>
<p>See <a class="reference internal" href="../configuration_server/occ_command.html"><em>Using the occ Command</em></a> to learn more about using the
<code class="docutils literal"><span class="pre">occ</span></code> command.</p>
</div>
<ul class="prevnext-title list-unstyled list-inline">
<li class="prev">
<a href="user_configuration.html" title="Previous Chapter: User Management"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« User Management</span>
</a>
</li>
<li class="next">
<a href="reset_user_password.html" title="Next Chapter: Resetting a User Password"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Resetting a U... »</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</main>
</div>
</div>
</body>
</html>