This is one of those things where, yes, if you mess around with it enough, you can, eventually, get it to work. I'm sure it has something to do with either the default shell or which files (.profile, .bash*, etc) you get copied over to the new user. Like I said, if you mess with it long enough, you'll get it to work.
The first thing I would check is what the shell is for the new user (check the last field in /etc/passwd). At least in the old days, this always defaulted to either blank (i.e., the line ends with a : ) or /bin/sh - both of which mean the same thing - which means that you get ordinary sh (no bash fancy stuff). Note that this is true even if /bin/sh is, in fact, running the same code as /bin/bash.
But, the overriding point here is: Why do this? Yes, I know the answer is "because something I read on the net says I should". Obviously, I don't think those net-writers are right. They may have been at one time, but no more. The way I look at it is: Once you've finally gotten the mynewuser user to work as well as the original pi users did, what you will have done is essentially cloned the pi user. This means that whatever security risk there was attached to using the original pi user now attaches to the mynewuser user, because, as stated, the newuser will be a clone of the original one.
People will object to this statement, but that can be ignored.
My view is that if you want to harden up the system, make the pi user have no password (N.B.. this is not the same thing as making it so that you can login just by pressing Enter at the password prompt. "No password" means that you can't login via a password at all). You can accomplish this via the "lock" option in the "passwd" program ("man passwd" for the details). Once this is done, you can, of course, still get access via these two methods (the only methods that you should be using anyway):
1) Via the system's autologining you in on the Desktop (if you are using the Desktop).
2) Via public key authentication with ssh (if you are using ssh).
Last edited by n67
on Thu Dec 20, 2018 1:25 pm, edited 1 time in total.
"L'enfer, c'est les autres"
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!