Could not chdir to home directory
Could not chdir to home directory /net/tiger/home/vlad: Permission denied
-bash: /net/tiger/home/vlad/.bash_profile: Permission denied all the users when I try to ssh have the same problem. But when I login from other system it is working fine. I checked with the permissions it is set correctly. |
Are you logged in as vlad when you get that error message? Can you post the output of
Code:
ls -l /net/tiger/home/ |
ls: cannot open directory /net/tiger/home/: Permission denied
the permissions are 700 but when i set it to 755 it works. But for my company rules it should be 700 |
You didn't answer my question. Who owns the file/directory and who are you logged in as.
Mode 700 allows only the owner of the file/folder to read it. Mode 755 allows anyone to read it. I deduce that you are not logged in as the owner of the file/folder. If you log in as the owner of the file/folder then your command will succeed. Got it? jdk |
home directory must always be set to 755(rwxr-xr-x), and within that all individual users directories must be set to 700(rwx------).
Example: Code:
$ ls -ld /home |
You must be logged in as user1 to look at the user1 folder or chown to another owner
You must be logged in as user2 to look at the user2 folder or chown to another owner jdk |
You need to be root to chown files/dirs.
|
All times are GMT -5. The time now is 03:52 AM. |