-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/11/2019 16.25, Robert Munteanu wrote:
On Fri, 2019-11-01 at 10:49 -0400, Patrick Shanahan wrote:
* Robert Munteanu <> [11-01-19 10:41]:
Hi,
On Fri, 2019-11-01 at 10:36 -0400, Patrick Shanahan wrote:
* Robert Munteanu <> [11-01-19 10:26]:
make a new <user> issue: echo $PATH
does /home/<user>/bin appear at the front of the output from "echo $PATH"?
Yes, it does. If I sudo as that user. In fact, the pattern is:
sudo doesn't prove it.
- open gnome-terminal/tilix/xterm - echo $PATH /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X
11R6/bin
- sudo su - $USER ( or sudo su $USER ) - echo $PATH /home/robert/bin:/usr/local/bin:/usr/bin:/bin
Where is the difference coming from?
again: before you "sudo", try "echo $USER" if the output is robert, you are only sudo(ing) into your own and present account, not a new user or different user.
useradd <newuser> sudo <newuser> echo $PATH userdel <newuser>
does /home/<newuser>/bin appear at front of $PATH
Regarding your immediate question:
$ sudo useradd -m test $ sudo su - test
We do "su - test", leave out the sudo. This is not Ubuntu. Do instead: su - useradd -m test su - test echo $USER,$PATH - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXbyj4AAKCRC1MxgcbY1H 1brSAJoCJURzWwFqts/flxv/nX2bdI4p/gCfQoQkXGLfFgMI00UwR2cXm/oId+k= =eJ6O -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org