image
image

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

Reply
 
LinkBack Thread Tools
  #1  
Old October 31st, 2000, 05:06 PM
Registered User
 
Join Date: Oct 2000
Location: Netherlands
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
The DJ is on a distinguished road
Question

Does anyone happen to have a running ftp server for anonymous users? I'm trying to set up one, but have a few problems.

I now have an anonymous user for ftp. And a bin, etc and pub dir with all the correct permissions (i think), but i cannot get "ls" working. I have ls in ~ftp/bin. And this is what i get:

230 Guest login ok, access restrictions apply.
Remote system type is BSD.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.
ftp>

Is there anything else i have to do? Do i need to put something in ~ftp/etc? I can cd into directories, but only if i know their names.

And how do i use /etc/ftpchroot i think it can be usefull for me in some situations

thx for the help

[Edited by The DJ on 10-31-2000 at 06:03 PM]
Reply With Quote
  #2  
Old November 1st, 2000, 04:16 PM
Registered User
 
Join Date: Oct 2000
Location: Netherlands
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
The DJ is on a distinguished road
Talking

Oke, i got this tip from Russel Gould and it works.

here's how (it took me a while to figure this out, so enjoy )

1) All of step one is done using Terminal, which is located in /Applications/Utilities

note: replace all "user" with your user name or root
(it's more convenient with your user name because you can easily drop things into /Users/ftp/pub)

a) First create a directory in /Users that looks like this:

drwxr-xr-x 9 user ftp 262 Nov 1 15:32 ftp

b) Then in /Users/ftp create the following directories:

bin
usr/lib
System/Library/Frameworks/System.framework/Versions/B
pub
incoming

c) Copy the following files to their respective corresponding directories in the ftp directory:

/bin/ls
/usr/lib/dyld
/System/Library/Frameworks/System.framework/Versions/B/System



d) Then, in /Users/ftp: make sure the file permissions look like this:

total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 System
dr-xr-xr-x 3 user ftp 58 Oct 4 15:30 bin
drwx-wx-wx 10 user ftp 296 Oct 30 02:06 incoming
drwxr-xr-x 6 user ftp 160 Nov 1 01:01 pub
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 usr

./System:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 Library

./System/Library:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 Frameworks

./System/Library/Frameworks:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 System.framework

./System/Library/Frameworks/System.framework:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:29 Versions

./System/Library/Frameworks/System.framework/Versions:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:30 B

./System/Library/Frameworks/System.framework/Versions/B:
total 2408
-r-xr-xr-x 1 root ftp 1231624 Oct 4 15:30 System

./bin:
total 56
-r-xr-xr-x 1 user ftp 26920 Oct 4 15:30 ls

./usr:
total 0
dr-xr-xr-x 3 user ftp 58 Oct 4 15:30 lib

./usr/lib:
total 616
-r-xr-xr-x 1 user ftp 312384 Oct 4 15:30 dyld

note: if you don't know how to change permissions, read the man pages of
chown (type - man chown) for changing file/directory ownership
chgrp (type - man chgrp) for changing file/directory group ownership
chmod (type - man chmod) for changing file directory user/group/other permissions

2) you have to manually create an ftp user using NetInfoManager which is located in /Applications/Utilities

here's how:
open NetInfoManager
under /users create a new directory and label it ftp
then put in the following properties and values:
property | value
-----------------------------------
uid | 21
expire | 0
name | ftp
passwd | *
home | /Users/ftp
change | 0
shell | /dev/null
gid | -21

for passwd, make sure you put an asterix (*) and do not leave it empty, as this will allow the ftp user to login at the login screen of Aqua!
make sure also the shell is /dev/null, or the ftp user will be able to rlogin and telnet in and wreak havoc

also, you can don't have to have the "home" be /Users/ftp, "home" just has to be the location of the ftp directory you created i step one, which could conceivable be anywhere. Another logical place to put it might be in the same place as your WebServer, in /Library

You should now be good to go. Good luck!
Reply With Quote
  #3  
Old November 5th, 2000, 05:09 PM
astrodawg's Avatar
Registered User
 
Join Date: Sep 2000
Location: Columbia, SC
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
astrodawg is on a distinguished road
Question What about creating a new group

If you follow the directions above, how do you chgrp the directories in ftp to ftp?

Do you also need to create a new group named ftp in NetInfo Manager?

It seems that just creating the user ftp does not do what you need.
__________________
G4 733 Quicksilver 640mb
Radeon and GForce2 video cards with 20" and 17" monitors. Mac OS X 10.2.1

Powerbook G3 333mhz 320mb

astrodawg.com

Reply With Quote
  #4  
Old November 5th, 2000, 05:13 PM
Registered User
 
Join Date: Oct 2000
Location: Netherlands
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
The DJ is on a distinguished road
Post Re: What about creating a new group

Quote:
Originally posted by astrodawg
If you follow the directions above, how do you chgrp the directories in ftp to ftp?

Do you also need to create a new group named ftp in NetInfo Manager?
You would have to create a group ftp first. But that is actually not really necesarry. Any group is good as long as it doesnt have write permissions. I personally use admin as the group.

DJ
Reply With Quote
  #5  
Old January 15th, 2001, 01:12 PM
Registered User
 
Join Date: Dec 2000
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
StormSilver is on a distinguished road
Unhappy Still no go

Woo, let's revive an old thread!
Anywho, I'm still getting the same thing you were getting at first, DJ. It acts like it's getting a list when I type ls, but in fact it doesn't. I've done everything you said to do, even created a group called ftp with netinfo. Still no. Got any ideas for things I might have done wrong/not done at all?
__________________
PowerBook Pismo-400 mHz-5.59 gig HD (2 gig OS X partition, 3 gig OS 9 partition)-192 megs RAM
Reply With Quote
  #6  
Old January 16th, 2001, 12:31 PM
strobe's Avatar
Puny Member
 
Join Date: Dec 2000
Posts: 795
Thanks: 0
Thanked 0 Times in 0 Posts
strobe is on a distinguished road
Exclamation

Be aware as of OS X PB mounted non-root volumes are 777 meaning anonymous ftp users can wipe or otherwise alter your volumes.
__________________
---
>80 column hard wrapped e-mail is not a sign of intelligent
>life
Reply With Quote
Reply

Bookmarks

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
setting up anonymous ftp couzteau Unix & X11 5 July 9th, 2002 02:48 PM
anonymous ftp access restrictions jechter Mac OS X System & Mac Software 2 December 4th, 2001 02:37 AM
ANONYMOUS ftp logins requested X Rocks Mac OS X System & Mac Software 1 November 14th, 2001 04:40 PM
enabling anonymous ftp [tutorial] vertigo Mac OS X System & Mac Software 2 July 28th, 2001 01:20 AM
best FTP client? HyperLiteG4 Mac OS X System & Mac Software 16 June 26th, 2001 08:00 PM


All times are GMT -5. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.