image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 17th, 2002, 05:56 PM
3mors's Avatar
HampCake Studios
 
Join Date: Oct 2001
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
3mors is on a distinguished road
Question How to keep an FTP user in his home dir?

I've just created a new account to use via FTP.
I've changed his home dir in NetInfo manager so when I log via FTP, I'm directly in the dir I want me to be in.

The problem is this:
from my home dir, I can go up with path and reach the root of my powermac.

I know that I can keep a user in his home by creating a file named ftpchroot containing FTP username and by putting this file in /private/etc/.

I tried in this way, but when i log in via FTP, the FTP client show me an error:

can't change directory

What can I do?
__________________
3mors
------------------------------------------------------
iMac G5 20"/MacBook Pro 17"/PowerBook G4
------------------------------------------------------
Reply With Quote
  #2  
Old September 17th, 2002, 06:39 PM
Registered User
 
Join Date: Sep 2001
Location: Tokyo, Japan
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
legacyb4 is on a distinguished road
Earlier post about this problem...

Cheers.
__________________
Macbook (Black) C2D/120GB/2GB | G5/1.6 250GBx2/1.25GB
Free Mobile Phone Ringtone, Application, & Screensaver Uploader
Reply With Quote
  #3  
Old September 18th, 2002, 12:06 AM
Fahrvergnuugen's Avatar
I am the law!
 
Join Date: Apr 2001
Location: Galway, NY
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
Fahrvergnuugen is on a distinguished road
man chroot
__________________
-Paul Wieland______________
http://www.sickdimension.com
Dual G5 2.0Ghz / 2.5GB Ram / 620 GB HD / 23" CD
Reply With Quote
  #4  
Old September 18th, 2002, 04:01 AM
3mors's Avatar
HampCake Studios
 
Join Date: Oct 2001
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
3mors is on a distinguished road
I tried to use chroot, but doesn't work.

It says:
No such file or directory
or
Permission denied

even if I use tab key to type the path, so I'm sure it's right, and I do it as root.

does chroot command change home root as I did in NetInfo manager?
I didn't understand.
__________________
3mors
------------------------------------------------------
iMac G5 20"/MacBook Pro 17"/PowerBook G4
------------------------------------------------------
Reply With Quote
  #5  
Old September 18th, 2002, 09:36 AM
3mors's Avatar
HampCake Studios
 
Join Date: Oct 2001
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
3mors is on a distinguished road
Can anyone help me?

I tried to use chroot command, but it doesn't work.
__________________
3mors
------------------------------------------------------
iMac G5 20"/MacBook Pro 17"/PowerBook G4
------------------------------------------------------
Reply With Quote
  #6  
Old September 19th, 2002, 04:52 AM
MAbans's Avatar
Registered User
 
Join Date: Sep 2002
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
MAbans is on a distinguished road
I"m trying to do the same thing.

I'm still poking around to see what I can do to chroot my FTP users because I'm hosting some sites for my friends. from what I understand the xinetd.conf located in /private/etc/ is in charge of handling anything to do with the FTP. I just say this now so I'm playing to see what I can do.

Can somone explain how, theorically, a chroot file is supposed to work? what does that process entail? What needs to be put in the file?
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thank God the Witch Is Dead Veljo Mac OS X System & Mac Software 2 June 27th, 2003 06:51 PM
AFP, FTP user access question for OSX Server Guriboy Design & Media 2 June 17th, 2003 12:00 AM
Getting /etc/motd to show with ftpd new32 Mac OS X System & Mac Software 4 October 8th, 2001 11:54 AM
moving user home dir? jean-pierre Apple News, Rumors & Discussion 0 July 12th, 2001 06:47 PM
Anonymous FTP The DJ Mac OS X System & Mac Software 5 January 16th, 2001 12:31 PM


All times are GMT -5. The time now is 06:54 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.