{"id":1195,"date":"2018-08-02T20:13:29","date_gmt":"2018-08-02T11:13:29","guid":{"rendered":"http:\/\/blog.box.kr\/?p=1195"},"modified":"2018-08-02T20:13:29","modified_gmt":"2018-08-02T11:13:29","slug":"gitlab-password-reset","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=1195","title":{"rendered":"GitLab Password Reset"},"content":{"rendered":"<h2 style=\"box-sizing: inherit; margin-top: 1.7em; margin-bottom: 0.7em; font-family: 'Libre Baskerville', serif; line-height: 1.2; color: #212529; font-size: 2rem;\">GitLab Default Password<\/h2>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">First up, if you were naughty and didn&#8217;t change your GitLab default password then try these:<\/p>\n<ul style=\"box-sizing: inherit; margin-bottom: 1.6em; margin-top: 0px; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">\n<li style=\"box-sizing: inherit;\">Username: root<\/li>\n<li style=\"box-sizing: inherit;\">Password: 5iveL!fe<\/li>\n<\/ul>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">If that works, make changing the root password your immediate next task.<\/p>\n<h2 style=\"box-sizing: inherit; margin-top: 1.7em; margin-bottom: 0.7em; font-family: 'Libre Baskerville', serif; line-height: 1.2; color: #212529; font-size: 2rem;\">GitLab Password Reset<\/h2>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">If you have email set up on your GitLab server, the password reset link should see you right.<\/p>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">If you haven&#8217;t got email set up, or you forgot your root password, then these steps should get you back in:<\/p>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">Start by connecting to your GitLab server via ssh.<\/p>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">Then if you are using the GitLab CE Omnibus Edition:<\/p>\n<pre style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; margin-top: 0px; margin-bottom: 1rem; overflow: auto; color: #212529;\"><code class=\"language-bash hljs\" style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: inherit; color: #bababa; word-break: normal; margin-bottom: 2em; display: block; overflow-x: auto; padding: 0.5em; background-color: #2b2b2b;\">sudo gitlab-rails console production<\/code><\/pre>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">Or, if that doesn&#8217;t work &#8211; or you know you installed from source (or, potentially, are using a Docker image):<\/p>\n<pre style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; margin-top: 0px; margin-bottom: 1rem; overflow: auto; color: #212529;\"><code class=\"language-bash hljs\" style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: inherit; color: #bababa; word-break: normal; margin-bottom: 2em; display: block; overflow-x: auto; padding: 0.5em; background-color: #2b2b2b;\">sudo -u git -H bundle <span class=\"hljs-built_in\" style=\"box-sizing: inherit; color: #e0c46c;\">exec<\/span> rails console production<\/code><\/pre>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">Then from here, the steps should be the same:<\/p>\n<pre style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; margin-top: 0px; margin-bottom: 1rem; overflow: auto; color: #212529;\"><code class=\"language-bash hljs\" style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: inherit; color: #bababa; word-break: normal; margin-bottom: 2em; display: block; overflow-x: auto; padding: 0.5em; background-color: #2b2b2b;\">u = User.where(id:1).first\r\nu.password = <span class=\"hljs-string\" style=\"box-sizing: inherit; color: #6a8759;\">'your_new_password'<\/span>\r\nu.password_confirmation = <span class=\"hljs-string\" style=\"box-sizing: inherit; color: #6a8759;\">'your_new_password'<\/span>\r\nu.save!<\/code><\/pre>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">You must update both the&nbsp;<code style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; color: #e83e8c; word-break: break-word; margin-bottom: 2em;\">password<\/code>&nbsp;and&nbsp;<code style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; color: #e83e8c; word-break: break-word; margin-bottom: 2em;\">password_confirmation<\/code>&nbsp;fields.<\/p>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">Probably the most important part is getting that exclamation mark in at the end, or this won&#8217;t work.<\/p>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">After that, you should be good to log back in.<\/p>\n<h3 style=\"box-sizing: inherit; margin-top: 1.7em; margin-bottom: 0.7em; font-family: 'Libre Baskerville', serif; line-height: 1.2; color: #212529; font-size: 1.75rem;\">None Root User GitLab Password Reset<\/h3>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">If you know your email address, you can instead change the procedure to:<\/p>\n<pre style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 17.5px; margin-top: 0px; margin-bottom: 1rem; overflow: auto; color: #212529;\"><code class=\"language-bash hljs\" style=\"box-sizing: inherit; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: inherit; color: #bababa; word-break: normal; margin-bottom: 2em; display: block; overflow-x: auto; padding: 0.5em; background-color: #2b2b2b;\">sudo gitlab-rails console production <span class=\"hljs-comment\" style=\"box-sizing: inherit; color: #7f7f7f;\"># or source method, as shown above<\/span>\r\nu = User.find_by(email: <span class=\"hljs-string\" style=\"box-sizing: inherit; color: #6a8759;\">'you@your.email'<\/span>)\r\nu.password = <span class=\"hljs-string\" style=\"box-sizing: inherit; color: #6a8759;\">'your_new_password'<\/span>\r\nu.password_confirmation = <span class=\"hljs-string\" style=\"box-sizing: inherit; color: #6a8759;\">'your_new_password'<\/span>\r\nu.save!<\/code><\/pre>\n<p style=\"box-sizing: inherit; margin-top: 0px; margin-bottom: 1.6em; line-height: 1.6em; color: #212529; font-family: 'Libre Baskerville', serif; font-size: 20px;\">And you should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitLab Default Password First up, if you were naughty and didn&#8217;t change your GitLab default password then try these: Username: root Password: 5iveL!fe If that works, make changing the root password your immediate next task. GitLab Password Reset If you have email set up on your GitLab server, the password reset link should see you right. If you haven&#8217;t got email set up, or you forgot your root password, then these steps should get you back in: Start by connecting to your GitLab server via ssh. Then if you are using the GitLab CE Omnibus Edition: sudo gitlab-rails console production Or, if that doesn&#8217;t work &#8211; or you know you installed from source (or, potentially, are using a Docker image): sudo -u git -H bundle exec rails console production Then from here, the steps should be the same: u = User.where(id:1).first u.password = &#8216;your_new_password&#8217; u.password_confirmation = &#8216;your_new_password&#8217; u.save! You must update both the&nbsp;password&nbsp;and&nbsp;password_confirmation&nbsp;fields. Probably the most important part is getting that exclamation mark in at the end, or this won&#8217;t work. After that, you should be good to log back in. None Root User GitLab Password Reset If you know your email address, you can instead change the procedure to: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-jh","jetpack-related-posts":[{"id":673,"url":"https:\/\/blog.box.kr\/?p=673","url_meta":{"origin":1195,"position":0},"title":"[Linux]Install MariaDB 10.0 on CentOS linux using YUM command","date":"2015-04-13","format":false,"excerpt":"Adding the MariaDB YUM Repository We highly recommended to use custom\u00a0MariaDB YUM\u00a0repository to install. Create a repo file under\/etc\/yum.repos.d\/MariaDB.repo, Copy and paste following line under MariaDB repository: Add repository on Centos 6.5 32-bit # vi \/etc\/yum.repos.d\/MariaDB.repo and paste following line: # MariaDB 10.0 CentOS repository list - created 2014-03-12 12:46\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"Connect to MariaDB 10.0","src":"https:\/\/i0.wp.com\/lintut.com\/wp-content\/uploads\/2014\/03\/639x352xScreenshot-from-2014-03-12-141810.png.pagespeed.ic.DHQ-h4Kmpx.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":718,"url":"https:\/\/blog.box.kr\/?p=718","url_meta":{"origin":1195,"position":1},"title":"How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7","date":"2015-04-15","format":false,"excerpt":"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 \u00a0 How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7 Introduction A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":853,"url":"https:\/\/blog.box.kr\/?p=853","url_meta":{"origin":1195,"position":2},"title":"[scrap]\ub9ac\ub205\uc2a4\uc5d0\uc11c vsftp\uc124\uc815(530\uc5d0\ub7ec, 500\uc5d0\ub7ec, root \ub85c\uadf8\uc778 \uc2e4\ud328 \ud3ec\ud568)","date":"2015-05-20","format":false,"excerpt":"http:\/\/dryad.kr\/bbs\/board.php?bo_table=rboard01&wr_id=200 \u00a0 \ub9ac\ub205\uc2a4 :\u00a0CentOS 5.6 vsFTPD\u00a0: Very Secure FTPD vsftpd FTP \uc11c\ubc84\uc5d0 \ub300\ud574 vsftpd\ub294 UNIX \uc2dc\uc2a4\ud15c\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 free FTP \uc11c\ubc84(\ub77c\uc774\uc13c\uc2a4\ub294 GPL)\uc774\ub2e4. vsftpd\uac00 \ub0b4\uc138\uc6b0\uace0 \uc788\ub294 \uac83\uc740 \ubcf4\uc548, \uc131\ub2a5, \uc548\uc815\uc131\uc774\ub2e4. \uc9c0\uae08\uae4c\uc9c0 vsftpd\uc758 \uc790\uccb4 \ubcf4\uc548 \ubb38\uc81c\uac00 \uc788\uc5b4 \ubcf4\uc548\uad8c\uace0\uac00 \ub098\uc628 \uc801\uc740 \uc5c6\ub2e4.(Redhat\uc758 rpm \ud328\ud0a4\uc9c0\uc911\uc5d0 tcp_wrappers \uc9c0\uc6d0\uc5c6\uc774 \ub9cc\ub4e4\uc5b4\uc838\uc11c \uc5c5\ub370\uc774\ud2b8 rpm\uc740 \ub098\uc628 \uc801 \uc788\uc74c)\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":521,"url":"https:\/\/blog.box.kr\/?p=521","url_meta":{"origin":1195,"position":3},"title":"MYSql \uc811\uc18d \ud504\ub85c\ud1a0\ucf5c \ubb38\uc81c","date":"2014-12-29","format":false,"excerpt":"Q1. \u00a0Mysql \uc811\uc18d\uc2dc\uc5d0 \"\u00a0MYSQL ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol ref used (client option 'secure_auth' enabled)\u00a0\" \uc624\ub958 \ubc1c\uc0dd \uc6d0\uc778: \uc0ac\uc6a9\uc790 \uc554\ud638 \ud574\uc26c\uac12\uc744 \uc608\uc804 \uac83\uc744 \uc0ac\uc6a9\ud574\uc11c \uc0dd\uae30\ub294 \ubb38\uc81c \ud574\uacb0 1 : \u00a0\u00a0--skip-secure-auth \u00a0\uc635\uc158 \uc0ac\uc6a9 => \uc811\uc18d \ud560\ub54c Mysql\uc758 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc554\ud638 Hash\uc218\uc900\uc744 \ub0ae \ucdb0\uc11c \uc811\uc18d ( \uc784\uc2dc\uc801\uc778 \ubc29\ubc95 )\u00a0\u2026","rel":"","context":"In &quot;DB\uad00\ub828&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":830,"url":"https:\/\/blog.box.kr\/?p=830","url_meta":{"origin":1195,"position":4},"title":"[scrap]50 Most Frequently Used UNIX \/ Linux Commands (With Examples)","date":"2015-05-20","format":false,"excerpt":"http:\/\/www.thegeekstuff.com\/2010\/11\/50-linux-commands\/ \u00a0 This article provides practical examples for 50 most frequently used commands in Linux \/ UNIX. This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux commands. Bookmark this article for your future reference. Did I miss\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":729,"url":"https:\/\/blog.box.kr\/?p=729","url_meta":{"origin":1195,"position":5},"title":"install PostgreSQL on CentOS7","date":"2015-04-21","format":false,"excerpt":"1.\u00a0Install ( \u00a02015-04-21 > \ucd5c\uc2e0 \ubc84\uc804\uc740 9.4\u00a0 ) [root@localhost ~]# rpm -Uvh http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm(\uc744)\ub97c \ubcf5\uad6c\ud569\ub2c8\ub2e4 \uacbd\uace0: \/var\/tmp\/rpm-tmp.z0BMz8: Header V4 DSA\/SHA1 Signature, key ID 442df0f8: NOKEY \uc900\ube44 \uc911...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] Updating \/ installing... 1:pgdg-centos94-9.4-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] [root@localhost ~]# yum install postgresql94 postgresql94-server postgresql94-libs postgresql94-contrib postgresql94 Loaded plugins: fastestmirror, langpacks http:\/\/linuxdownload.adobe.com\/linux\/x86_64\/repodata\/repomd.xml: [Errno\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/1195"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1195"}],"version-history":[{"count":1,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/1195\/revisions"}],"predecessor-version":[{"id":1196,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/1195\/revisions\/1196"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}