I created a user with non unique id passing
-o -u 1000 -m option to
useradd command. So now I have two users with same id but with different names and different home directories.
I thought that this could be a solution to create a new clean environment (for testing purpose) and preserve the same access permissions to some development directories and files.
Although user creation and login in his own desktop environment was successful, one applications, manually started from terminal, was using home directory of original user. So, starting
idea.sh as scantligt_2 was still using home directory of user scantlight.
how is this possible? why this application is still using home directory of original user even if I started it as second use?
here is the content of some environment variables.
$> echo $HOME /home/scantlight_2 $> echo $USER scantlight_2 $> cd ~ $> pwd /home/scantlight_2
and after all tests,
Is it safe to delete the user "scantlight_2" with
userdel command or should I do it manually from
/etc/shadow file to avoid some conflicts?
idea.sh is the starting script of "IntelliJ IDEA" IDE. I made a quick recursive
grep through bin directory content and no usage of getent command was made. Below is the command i used.
grep -r -i "getent|passwd" ./idea_install/bin