PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 4, 2022

[FIXED] How to use the commands in Root after creating a new user in Linux?

 July 04, 2022     centos, command-line, linux, nvm     No comments   

Issue

I have created a new user using useradd MyUsername and have given him "sudo" privilege. However, I noticed that I couldn't use the commands I have installed in root with this user.

For example:

In root : nvm current will show me the current nvm version

In the User : The same command line will give this result : bash: nvm: command not found

I'm using CentOS 7 (I believe). Does anyone have any idea on how to fix this ? Or do I need to download the libraries again in order to use them ?


Solution

nvm is intended as a PER-USER script, as stated here.
It is cloned and installed into the home-directory of each individual user.
Therefore, you need to install it again by following the installation instructions.

For other commands, please check that your PATH is correct, or if the command is also installed on a per-user basis like nvm.



Answered By - Mime
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing