* Carlos E. R. <robin.listas@telefonica.net> [11-01-19 17:31]:
-----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
agreed. I seldom utilize sudo, preferring "su - <someuser> and the dash following su provides the environment from <someuser> -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org