title: Installing RVM, Ruby on Debian 7 getting error user is not allowed to execute
body: <p>I installed RVM as regular user (non-root) but when it comes to install Ruby</p>
  
  <pre><code>rvm install ruby
  </code></pre>
  
  <p>I got this error: </p>
  
  <pre><code>xsma@ACS:~$ rvm install ruby
  Searching for binary rubies, this might take some time.
  Found remote file https://rvm.io/binaries/debian/7/i386/ruby-2.1.1.tar.bz2
  Checking requirements for debian.
  Installing requirements for debian.
  Updating systemxsma password required for 'apt-get --quiet --yes update': 
  xsma password required for 'apt-get --quiet --yes update': 
  ....
  Error running 'requirements_debian_update_system ruby-2.1.1',
  showing last 15 lines of /home/xsma/.rvm/log/1397842665_ruby-2.1.1/update_system.log
  ++ missing_paths+=:/usr/sbin
  ++ for sbin_path in /sbin /usr/sbin /usr/local/sbin
  ++ [[ -d /usr/local/sbin ]]
  ++ [[ ! :/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/xsma/.rvm/bin: =~ :/usr/local/sbin: ]]
  ++ missing_paths+=:/usr/local/sbin
  ++ [[ -n :/sbin:/usr/sbin:/usr/local/sbin ]]
  ++ command_to_run=(/usr/bin/env PATH="${PATH}${missing_paths}" "${command_to_run[@]}")
  ++ command_to_run=(${sudo_path}sudo -p "%p password required for '$*': " "${command_to_run[@]}")
  ++ sudo -p '%p password required for '\''apt-get --quiet --yes update'\'': ' /usr/bin/env PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/xsma/.rvm/bin:/sbin:/usr/sbin:/usr/local/sbin apt-get --quiet --yes update
  Sorry, try again.
  Sorry, user xsma is not allowed to execute '/usr/bin/env PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/xsma/.rvm/bin:/sbin:/usr/sbin:/usr/local/sbin apt-get --quiet --yes update' as root on ACS.ACS.
  ++ return 1
  ++ typeset __ret=1
  ++ case ${__ret} in
  ++ return 1
  Requirements installation failed with status: 1.
  xsma@ACS:~$ 
  </code></pre>
  
  <p>before it was saying "xsma is not in the sudoers file.  This incident will be reported.
  " and i solved it by adding xsmas in the sudoers file like this: "xsma  ALL=(All:ALL) ALL" but it still comes out with another error: "Sorry, user xsma is not allowed to execute..."
  And i don't know how figure it out. please help!</p>
  
  <p>Here is  /etc/sudouers file:</p>
  
  <pre><code>#
  # This file MUST be edited with the 'visudo' command as root.
  #
  # Please consider adding local content in /etc/sudoers.d/ instead of
  # directly modifying this file.
  #
  # See the man page for details on how to write a sudoers file.
  #
  Defaults    env_reset
  Defaults    mail_badpass
  Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  
  # Host alias specification
  
  # User alias specification
  
  # Cmnd alias specification
  
  # User privilege specification
  root    ALL=(ALL:ALL) ALL
  xsma ALL=(All:ALL) ALL
  
  # Allow members of group sudo to execute any command
  %sudo   ALL=(ALL:ALL) ALL
  
  # See sudoers(5) for more information on "#include" directives:
  
  #includedir /etc/sudoers.d
  </code></pre>
  
  <p>when i execute groups i got only  root</p>