Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am accessing two Linux systems (Ubuntu) with the same username (let’s say userU) and password, let’s say their names are system1 and system2. If I change my password on one system it is also effective on the other one. On both systems, env outputs HOME as:


When I enter system1 and type pwd it shows:


But when I enter system2 it locates me to / and says:

  could not chdir to home directory /globalMachine/u/userU: Permission denied
  -bash: /globalMachine/u/userU/.bash_profile: Permission denied

If I type pwd, it shows /. But, I have /home/userU on system2 and it never locates me there. Can anyone help me to solve this issue?

share|improve this question
If your home directory is /globalMachine/u/userU what is /home/userU? Also, what are the permissions of /globalMachine/u/userU on both machines? – terdon Dec 2 '12 at 16:15
@terdon on system1 it is "d-wx------". and when i try "ls -la /globalMachines/u/userU" on system2 it says "permissions denied.". thanks. – tiki Dec 3 '12 at 23:31
I'm sorry but i don't understand what you are trying to do here. You are mentioning both /home/userU and /globalmachine/u/userU, please explain clearly what each is and also include ls -l output of /home and /globalmachine/u – terdon Dec 3 '12 at 23:38

Just because the password and username is the same doesn't mean your userid is the same. That would be cause permission denied. If you use root on your system2 and then provide the output from an "ls -al" command on userU home directory, it will shed more light onto your issue.

share|improve this answer
I typed id on both systems. uid, gid,and groups are all the same... – tiki Dec 1 '12 at 3:10
also when I enter the /home/userU on system2 and type ls -al, it is empty... – tiki Dec 1 '12 at 3:11
up vote 1 down vote accepted

Following changed my home directory on the system2:

usermod -d /home/userU userU


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .