Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > full ftp access?

full ftp access?
Thread Tools
Mac Elite
Join Date: Sep 2003
Location: In a gadda da vida.
Status: Offline
Reply With Quote
Oct 9, 2003, 08:56 AM
 
Hey all,

How come my g/f can ftp into my computer and be able to browse the entire system? She's using transmit, and has an account on my machine, but when she ftps in, she can then go to the root, and then other accounts.

Any pointers on how to restrict access?

Thanks
Rockstar Games - better than reality.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Oct 9, 2003, 09:00 AM
 
chroot ftpd, or restrict d+x in /Users to the appropriate UIDs.
[vash:~] banana% killall killall
Terminated
     
Mac Elite
Join Date: Sep 2003
Location: In a gadda da vida.
Status: Offline
Reply With Quote
Oct 9, 2003, 09:44 AM
 
Thanks Gul. There's still a few things I'm not understanding though. I've set the permissions for my Home Folder so that only I can access it, and all others can't read, or write to it. How do I set this for the rest of the system? Is there any way for her when she ftps in to be only able to browse her own directory, and not the root?
Rockstar Games - better than reality.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Oct 10, 2003, 09:07 AM
 
Originally posted by sanity assassin:
Thanks Gul. There's still a few things I'm not understanding though. I've set the permissions for my Home Folder so that only I can access it, and all others can't read, or write to it. How do I set this for the rest of the system? Is there any way for her when she ftps in to be only able to browse her own directory, and not the root?
That's what chroot is for. It's a directive in the ftpd configuration. Do a "man ftpd.conf" for more info.

Here are my ftpd.conf and ftpchroot files, restricting a user "npp" to a specific directory:

ftpd.conf:
Code:
homedir npp /Users/npp/uploads
ftpchroot:
Code:
npp chroot /Users/npp/
I seem to recall having to patch ftpd to make the chroot command work, but it's been a while so I don't remember the details. I think it was discussed on MacNN previously.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: Sep 2003
Location: In a gadda da vida.
Status: Offline
Reply With Quote
Oct 10, 2003, 09:15 AM
 
Originally posted by Arkham_c:
That's what chroot is for. It's a directive in the ftpd configuration. Do a "man ftpd.conf" for more info.

Here are my ftpd.conf and ftpchroot files, restricting a user "npp" to a specific directory:

ftpd.conf:
Code:
homedir npp /Users/npp/uploads
ftpchroot:
Code:
npp chroot /Users/npp/
I seem to recall having to patch ftpd to make the chroot command work, but it's been a while so I don't remember the details. I think it was discussed on MacNN previously.

Aaah, got ye. I've been following a tutorial from o'reilly too.

Thanks for the explanation.
Rockstar Games - better than reality.
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 08:39 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2