The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Merge Two .xls files side by side into a single .xls jagadish99 Shell Programming and Scripting 2 09-24-2008 06:44 AM
How to Merge Two .xls files side by side into a single .xls jagadish99 Shell Programming and Scripting 0 08-27-2008 06:38 AM
Export a file system with write permissions jredx Filesystems, Disks and Memory 7 05-27-2008 03:05 AM
How to print two sql query outputs side by side in excel prasee Shell Programming and Scripting 6 09-08-2007 02:20 AM
Having a Unix system installed side to side with Windows? Pcslider UNIX for Dummies Questions & Answers 14 01-29-2002 06:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 11-19-2008
xinu299 xinu299 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
Side-Effect of write access permissions for a subdirectory

Hi Unix Gurus,

I'm a newbie to unix and need some help from you.

I'm going to give full access (777) to a subdirectory to an FTP account.

Let's say the subdirectory is
/usr/local/dir1/dir2/dir3

There are files in dir1, say
a.txt
b.cfg
c.xml

Will this account be able to access and modify the above 3 files lying in one of the parent directory of dir3?

Thanks in Advance!

- xinu299
  #2 (permalink)  
Old 11-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
No, they can only do in the parent directory what the permissions are set to do for the parent directory.

PS: do not use any directory from /usr on down as a place for ftp-ers to place files - this directory tree bleongs only to the local system - user files should not be there. FTP should not be going in there to get files, either. For a variety of reasons.
  #3 (permalink)  
Old 11-20-2008
xinu299 xinu299 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
Hi Jim,

Thanks for your response.

So, if the file in the parent directory has the following permission (755)

say

-rwxr-xr-x 1 admin apps 2 Nov 20 03:25 a.txt

The FTP account should be able to navigate back up to dir1 and read this file. Right?

Also, thanks for your tips on avoiding the use of /usr path for giving FTP access.

I'll keep that in mind.

- xinu299
  #4 (permalink)  
Old 11-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
Yes. the ftp user can see the file and read it. Assuming the parent directory has at least execute (nnnnnn--x) permissions. Which it has to have already had to allow the user to have gotten into the child directory in the first place.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0