LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   -bash: cd: test/: Permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/bash-cd-test-permission-denied-755618/)

Ejdaha 09-16-2009 08:44 AM

-bash: cd: test/: Permission denied
 
Hi All
When I create a folder in the system, it's created successfully

Code:

[test@localhost  localhost ]$ cd test/
-bash: cd: test/: Permission denied
drw-rw-r-- 2 test testinstall 4.0K Sep 16 18:51 test

Please help

catkin 09-16-2009 08:51 AM

chmod 755 test

Web31337 09-16-2009 08:55 AM

directories need to have 'x' permission(eXecute) to be browsable.

mobinskariya 09-16-2009 09:04 AM

i think directories need x permission to be searched.

catkin 09-16-2009 09:11 AM

The other question is why the directory was created that way. What is your umask? What is the output from the umask command? The most common is 0022.

Ejdaha 09-17-2009 07:48 AM

Thank you all guys. I've added umask 0020 to .bash_profile of that user and now everything is ok

Thank you all!


All times are GMT -5. The time now is 02:36 AM.