LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2009, 08:44 AM   #1
Ejdaha
Member
 
Registered: Jan 2007
Posts: 39

Rep: Reputation: 15
-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
 
Old 09-16-2009, 08:51 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
chmod 755 test
 
Old 09-16-2009, 08:55 AM   #3
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
directories need to have 'x' permission(eXecute) to be browsable.
 
Old 09-16-2009, 09:04 AM   #4
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
i think directories need x permission to be searched.
 
Old 09-16-2009, 09:11 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 09-17-2009, 07:48 AM   #6
Ejdaha
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
Thank you all guys. I've added umask 0020 to .bash_profile of that user and now everything is ok

Thank you all!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su: /bin/bash: Permission denied fedora4002 Linux - Security 5 01-29-2010 08:46 AM
bash: ./labjava1 : permission denied jrme421 Linux - Laptop and Netbook 2 03-02-2009 12:55 PM
cannot execute bash: permission denied flipwhy Linux - Newbie 11 11-12-2007 10:49 AM
bash: Permission Denied Panagiotis_IOA Slackware 5 11-07-2006 10:25 PM
Permission denied on /mnt/hdg1/test no matter what I do! jon_k Linux - Software 1 02-23-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration