$ su - redmine $ cd /var/www/vhosts/redmine.tomoyan.net/redmine/ $ bundle exec rails console production DEPRECATION WARNING: Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. (called from require at bin/rails:4) Loading production environment (Rails 5.2.5) irb(main):001:0> User.find_by_login('admin').update!(password: 'NewPasswd!') => true irb(main):002:0> quit