I have 3 users in my server:
When I try to change my current user from user1 to user2 by using the command
sudo su user1, my operating system sometimes changes instead from user1 to root (this is verified by using the
The opposite happens when I try to change my current user from user1 to root by using the command
sudo su root, the OS sometimes changes from user1 to user2.
Some extra errors (or symptoms) detected are:
- When already logged as user2 I can't change to root user by any method (I end up restarting the server connection until it works).
- Sometimes when I am logged as either root or user2 and time passes I find that my current user has changed automatically from root to user2 or vice versa.
- The user name does not display correctly in command line when logged as root or username2 (it sometimes displays
[user1@IP ~] #while the
root, for example).