LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2014, 12:29 PM   #16
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 543

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by John VV View Post
you are using "sudo"
so did you set it up correctly ?
it is installed but disabled and not configured by default
the mysql DB is owned by the user "mysql"
is that user in the sudoers list

RHEL/CentOS/Fedora normally uses "su -" for installing software
Thanks John,

I was logged on as root. I've since tried logging on as a normal user, and used "su" (not "su - somecommand"), but no difference. I've been using sudo earlier per the install instructions with no problem.

bundle is located at /usr/local/bin/bundle, and I ran visudo, and added /usr/local/bin to the path.
Code:
[root@desktop gitlab]# whereis bundle
bundle: /usr/local/bin/bundle
root@desktop etc]# echo 'echo $PATH' | sh
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@desktop etc]# echo 'echo $PATH' | sudo sh
/sbin:/bin:/usr/sbin:/usr/bin:/user/local/bin
 
Old 03-17-2014, 12:49 PM   #17
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 543

Original Poster
Rep: Reputation: Disabled
Does the following shed any light? Why do I need to specify the full file path if it is already in my sudo path (see my previous post). Thank you

Code:
[root@desktop gitlab]# sudo -u git -H bundle
sudo: bundle: command not found

[root@desktop gitlab]# sudo -u git -H /usr/local/bin/bundle
Using rake (10.1.1)
Using ace-rails-ap (2.0.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.3)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.3)
Using mime-types (1.25.1)
Using polyglot (0.3.4)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.3)
Using actionpack-action_caching (1.1.0)
Using actionpack-page_caching (1.0.2)
Using activemodel (4.0.3)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.2)
Using activerecord (4.0.3)
Using bundler (1.5.3)
Using thor (0.18.1)
Using railties (4.0.3)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.3)
Using acts-as-taggable-on (2.4.1)
Using asciidoctor (0.1.4)
Using descendants_tracker (0.0.3)
Using ice_nine (0.10.0)
Using axiom-types (0.0.5)
Using bcrypt-ruby (3.1.2)
Using sass (3.2.12)
Using bootstrap-sass (3.0.3.0)
Using json (1.8.1)
Using carrierwave (0.9.0)
Using timers (1.1.0)
Using celluloid (0.15.2)
Using charlock_holmes (0.6.9.4)
Using coercible (1.0.0)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using coffee-rails (4.0.1)
Using colored (1.2)
Using connection_pool (1.2.0)
Using d3_rails (3.1.10)
Using orm_adapter (0.5.0)
Using warden (1.2.3)
Using devise (3.0.4)
Using devise-async (0.8.0)
Using diff-lcs (1.2.5)
Using dotenv (0.9.0)
Using email_validator (1.4.0)
Using enumerize (0.7.0)
Using equalizer (0.0.8)
Using escape_utils (0.2.4)
Using eventmachine (1.0.3)
Using multipart-post (1.2.0)
Using faraday (0.8.8)
Using faraday_middleware (0.9.0)
Using font-awesome-rails (3.2.1.3)
Using foreman (0.63.0)
Using gemoji (1.3.1)
Using github-markdown (0.5.5)
Using github-markup (0.7.6) from https://github.com/gitlabhq/markup.git (at 61ade38)
Using posix-spawn (0.3.8)
Using gitlab-grit (2.6.4)
Using gitlab-flowdock-git-hook (0.4.2.2)
Using nokogiri (1.5.10)
Using sanitize (2.0.6)
Using stringex (1.5.1)
Using gitlab-gollum-lib (1.1.0)
Using gitlab-grack (2.0.0.pre)
Using gitlab-linguist (3.0.0)
Using rugged (0.19.0)
Using gitlab_git (5.4.0)
Using gitlab_meta (6.0)
Using net-ldap (0.3.1)
Using hashie (2.0.5)
Using omniauth (1.1.4)
Using pyu-ruby-sasl (0.0.3.3)
Using rubyntlm (0.1.1)
Using gitlab_omniauth-ldap (1.0.4)
Using gon (5.0.1)
Using multi_xml (0.5.5)
Using rack-accept (0.4.5)
Using rack-mount (0.8.3)
Using virtus (1.0.1)
Using grape (0.6.1)
Using grape-entity (0.3.0)
Using haml (4.0.4)
Using haml-rails (0.5.1)
Using httparty (0.12.0)
Using hipchat (0.14.0)
Using http_parser.rb (0.5.3)
Using httpauth (0.2.0)
Using jquery-atwho-rails (0.3.3)
Using jquery-rails (2.1.3)
Using turbolinks (2.0.0)
Using jquery-turbolinks (2.0.1)
Using jquery-ui-rails (2.0.2)
Using jwt (0.1.8)
Using kaminari (0.15.1)
Using kgio (2.8.1)
Using libv8 (3.16.14.3)
Using modernizr (2.6.2)
Using mysql2 (0.3.11)
Using oauth (0.4.7)
Using oauth2 (0.8.1)
Using omniauth-oauth2 (1.1.1)
Using omniauth-github (1.1.1)
Using omniauth-google-oauth2 (0.2.1)
Using omniauth-oauth (1.0.1)
Using omniauth-twitter (1.0.1)
Using protected_attributes (1.0.5)
Using rack-attack (2.3.0)
Using rack-cors (0.2.9)
Using rack-protection (1.5.1)
Using rails-observers (0.1.2)
Using raindrops (0.12.0)
Using raphael-rails (2.1.2)
Using redcarpet (2.2.2)
Using redis (3.0.6)
Using redis-store (1.1.4)
Using redis-rack (1.5.0)
Using redis-actionpack (4.0.0)
Using redis-activesupport (4.0.0)
Using redis-namespace (1.4.1)
Using redis-rails (4.0.0)
Using ref (1.0.5)
Using sass-rails (4.0.1)
Using seed-fu (2.3.0)
Using select2-rails (3.5.2)
Using settingslogic (2.0.9)
Using sidekiq (2.17.0)
Using simple_oauth (0.1.9)
Using sinatra (1.4.4)
Using six (0.2.0)
Using temple (0.6.7)
Using slim (2.0.2)
Using stamp (0.5.0)
Using state_machine (1.2.0)
Using therubyracer (0.12.0)
Using twitter-stream (0.1.16)
Using tinder (1.9.3)
Using uglifier (2.3.2)
Using underscore-rails (1.4.4)
Using unicorn (4.6.3)
Using unicorn-worker-killer (0.4.2)
Your bundle is complete!
Gems in the groups development, test, postgres and aws were not installed.
It was installed into ./vendor/bundle

[root@desktop gitlab]# sudo -u git -H /usr/local/bin/bundle exec rake gitlab:setup RAILS_ENV=production
/usr/bin/env: ruby: No such file or directory
[root@desktop gitlab]#
 
Old 03-17-2014, 01:00 PM   #18
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 543

Original Poster
Rep: Reputation: Disabled
I am an idiot!

I had /user/local/bin in my sudo path.
 
Old 03-17-2014, 01:29 PM   #19
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,827

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
there is a VERY !!! big difference in "su" and su -"

for any program that is in /sbin
"su - "MUST!!!! be used

su = root BUT WITH THE NORMAL USER'S $PATH
su - = root BUT using the ROOT accounts DIFFERENT $PATH
 
Old 03-17-2014, 05:10 PM   #20
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 543

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
there is a VERY !!! big difference in "su" and su -"

for any program that is in /sbin
"su - "MUST!!!! be used

su = root BUT WITH THE NORMAL USER'S $PATH
su - = root BUT using the ROOT accounts DIFFERENT $PATH
Didn't mean no difference in "su" and "su -", but no difference with the outcome.

Didn't understand the differences between "su" and "su -", but now I do. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install GitLab to slackware 14.0 slackcode Slackware 6 03-16-2016 08:10 AM
LXer: Create your private github using gitlab on CentOS RHEL LXer Syndicated Linux News 0 08-06-2013 08:20 AM
LXer: GitLab 4.1 adds sign-up pages and public repositories LXer Syndicated Linux News 0 01-23-2013 01:30 AM


All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration