LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-18-2010, 07:52 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
Is it correct I need execute-right to change into the directory ?


I notice that when using ftp, I need execute (x) rights to be able to change into the directory.

Then I also need read (r) to see the files inside that directory.

Then finally I need write (w) to be able to delete files in this directory.

This execute (x) right to be able to change into a directory with ftp concerns me in that this makes it also possible to execute scripts and programs.
 
Old 04-18-2010, 07:59 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Quote:
This execute (x) right to be able to change into a directory with ftp concerns me in that this makes it also possible to execute scripts and programs.
Only if the script or program has execute rights.
 
Old 04-18-2010, 08:05 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
For executing scripts and programs, you need to set the individual permissions. As you have already noted, execute for a directory has a different meaning.
 
Old 04-19-2010, 01:37 AM   #4
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Thank you for clearing this out.
 
Old 04-19-2010, 06:12 AM   #5
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 553

Rep: Reputation: 116Reputation: 116
Execute for a directory is required for entering the directory or for accessing files within a directory. Even if you have just execute permission you can still access a file within a directory. r permission is required to ls in a directory but you need x for ls -la. If you have w then you will be able to delete any file in the directory, regardless of the permissions on that file itself. As said above, execute is at file level.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Correct syntax for an NFS shared directory Latitude Linux - Networking 2 06-01-2009 03:17 PM
What is the correct directory to install my programs? jdruin Linux - Newbie 3 01-04-2009 05:58 PM
Can't change resolution to correct one DavidTheDivine Linux - General 7 11-26-2006 12:40 AM
which is the correct directory path? verbatim Programming 1 04-24-2005 11:22 PM
How to set correct file/directory permissions pat.delaney Linux - Networking 5 12-02-2003 09:39 AM

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

All times are GMT -5. The time now is 02:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration