Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
c406bce4
Commit
c406bce4
authored
May 07, 2015
by
Karen Carias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted > and commented "or" out
parent
94a426d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
doc/security/reset_root_password.md
doc/security/reset_root_password.md
+9
-5
No files found.
doc/security/reset_root_password.md
View file @
c406bce4
...
@@ -5,7 +5,7 @@ Log into your server with root privileges. Then start a Ruby on Rails console.
...
@@ -5,7 +5,7 @@ Log into your server with root privileges. Then start a Ruby on Rails console.
Start the console with this command:
Start the console with this command:
```
bash
```
bash
>
gitlab-rails console production
gitlab-rails console production
```
```
Wait until the console has loaded.
Wait until the console has loaded.
...
@@ -14,15 +14,19 @@ There are multiple ways to find your user. You can search for email or username.
...
@@ -14,15 +14,19 @@ There are multiple ways to find your user. You can search for email or username.
```
bash
```
bash
irb
(
main
)
:001:0> u
=
User.where
(
id
: 1
)
.first
irb
(
main
)
:001:0> u
=
User.where
(
id
: 1
)
.first
```
or
or
```
bash
user
=
User.find_by
(
email:
'admin@local.host'
)
user
=
User.find_by
(
email:
'admin@local.host'
)
```
```
Now you can change your password:
Now you can change your password:
```
bash
```
bash
>
u.password
=
'secret_pass'
u.password
=
'secret_pass'
>
u.password_confirmation
=
'secret_pass'
u.password_confirmation
=
'secret_pass'
```
```
It's important that you change both password and password_confirmation to make it work.
It's important that you change both password and password_confirmation to make it work.
...
@@ -30,7 +34,7 @@ It's important that you change both password and password_confirmation to make i
...
@@ -30,7 +34,7 @@ It's important that you change both password and password_confirmation to make i
Don't forget to save the changes.
Don't forget to save the changes.
```
bash
```
bash
>
u.save!
u.save!
```
```
Exit the console and try to login with your new password.
Exit the console and try to login with your new password.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment