12 Replies Latest reply: Jun 6, 2012 9:24 PM by Gerard Dirks
Gerard Dirks Level 1 Level 1 (30 points)

Hello

 

With Lion Server Apple killed the FTP Service & GUI to configure the FTP.

 

In the NET I found plenty of description how to enable to ftp, but I found nothing how to configure the sharepoint anf ftpusers with the command line. Is their any instructions around.

 

We need to use ftp for some industrial machines wo do not offer SFTP. We tried also the Rumpus FTP Server but this istn't stable enough.

 

Please help me with some instructions

 

Regards

Gérard


MacBook Pro 17, Mac OS X (10.7.2), 8 Gb RAM, 750Gb HD
  • 1. Re: configure ftp in Lion Server?
    gracoat Level 3 Level 3 (660 points)

    Have you thought of using the WebDAV system?  Apple's intention was to remove FTP and replace it with WebDAV.

  • 2. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Hello

     

    Nice try

     

    I looking only for the FTP Option. Please tell Zeiss Optics to change there machines change from FTP to webdav and then we can discuss this.

     

    Zeiss Optics built this US $ 150'000.- expensive machines only to communicate with FTP or burn CD or write 3.5" floppy disk with the measures.

     

    So please only comments how we can get this native lion ftp running without the need to run Rumpus or other alternative FTP-Server.

     

    Regards

    Gérard

  • 3. Re: configure ftp in Lion Server?
    gracoat Level 3 Level 3 (660 points)

    If your looking at setting up a solution for a company like Zeiss Optics and are pouring that much money into it, then I'd certainly call enterprise support.

    I was digging through the old FTP config files in /etc and in the old ftp root location and find that they've been completely hollowed out. I have a hunch that your going to find a dead end on the native OS X FTP road.

     

    It wasn't my intention to frustrate you with the WebDAV response, however it IS apples intended replacement for FTP.

     

    -Graham

  • 4. Re: configure ftp in Lion Server?
    Camelot Level 8 Level 8 (45,790 points)

    What's missing in your post is what's not working.

     

    You say you've found how to start it up, but you haven't said what problems you're experiencing that you're trying to solve.

     

    Independent of whether FTP has a place in a modern OS (and there are many systems beyond Zeiss Optics who have a problem spelling anything more complex than 'F-T-P'...), it would help to know what you're trying to achieve, what you've done to date, and what challenges you're encountering.

     

    For the most part, for LAN-based clients, enabling FTP is little more than creating a user account and enabling the FTP service. The tricks come when you want to restrict certain clients, or when you want access from the internet rather than just from the LAN.

  • 5. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Hello Camelot

     

    It is very easy what i need

     

    I have one AFP-Sharepoint on the root (e.g. HD/sharepointafp/ )

     

    Within this Directory their should be another sharepoint only for ftp (e.g. HD/sharepointafp/tcp/

    This sharepoint is only accessable for the user "tcp" with the password "yxz) (The Zeiss Machine)

     

    The user "tcp" is member of the group "abc", all users of the group "abc" (afp & tcp-users) " should have full control over the folder "tcp" within "sharepoinafp"

     

    so in CLI

     

    1) First make an ACL

    dseditgroup -o create -n /Local/Default -u abcadmin com.apple.access_ftp

     

    2) add the user

    dseditgroup -o edit -u abcadmin -a tcp com.apple.access_ftp

     

    3) add a group

    dseditgroup -o edit -u ladmin -a abc -t group com.apple.access_ftp

     

    4) add the ftp-sharepoint, BUT HOW I CAN DO THIS???

     

    But my question is how to add the folder "tcp" as source of the sharepoint.

     

    On the Zeiss-Machine i am not only able to add any path to the destination, so I need a sharepoint direct to that ftp folder (the entry on the machine is only ftp://172.xx.yy.zzz

     

    Maybe some can explain me how to do this with the CLI, with 10.6.8 OS X Server -Admin it was no problem to make a single fpt-sharepoint

     

    Regards

    Gérard

  • 6. Re: configure ftp in Lion Server?
    Camelot Level 8 Level 8 (45,790 points)

    4) add the ftp-sharepoint, BUT HOW I CAN DO THIS???

     

    The obvious solution seems to be to set the home directory of the 'tcp' user to the HD/Sharepoint/tcp directory.

     

    That way, when the tcp user logs in, they're automatically dropped into that directory. No additional configuration is needed.

     

    Am I missing something?

  • 7. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Thnks for the summary "Camelot"

     

    With which command (CLI) can I  set that sharepoint?

     

    Will that homedirectory of the user tcp filled with standard folders like (download, desktop, sites, movies etc)

     

    Gérard

  • 8. Re: configure ftp in Lion Server?
    Camelot Level 8 Level 8 (45,790 points)

    With which command (CLI) can I  set that sharepoint?

     

    There is no sharepoint to set. By default each user will automatically connect to their home directory when they log in, so setting the Zeiss user's home directory to this directory should solve the problem.

     

    Will that homedirectory of the user tcp filled with standard folders like (download, desktop, sites, movies etc)

     

    If you choose to have the OS create the user's home directory (e.g. in Workgroup Manager) then yes, otherwise no. Even if it does create these extra directories, there's nothing preventing you from deleting them.

  • 9. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Hello

     

    So for me the Apple Solutions 10.7 with CLIis worthless. On the Zeiss Machine I cann't define any path. I need this because the tcp sharepoint is within another afp sharepoint.

     

    With Rumpus I am able to set any folder to ftp-sharepoint (the same as under OS X Server 10.6.8). So with 10.7 it is not possible. Really a pitty

     

    Gérard

     

    any suggestion how to set the how directory of the user "tcp"?

  • 10. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Hallo Camelot

     

    You made a suggestion for setting a homedirectory fot the user ftp

    How can I do this? In the Apple GUI of the Workgroupmanager?

     

    Their it will only accept it for afp & smb but not for ftp!

     

    Any suggestions?

  • 11. Re: configure ftp in Lion Server?
    Camelot Level 8 Level 8 (45,790 points)

    Their it will only accept it for afp & smb but not for ftp!

     

    No. You are misunderstanding what the GUI is doing.

     

    In the file sharing section of Server Admin you can choose a sharepoint to be used for home directories. This means that the specified user's home directory is on a central file server, rather than local on their machine.

    Home directories can be shared via AFP, SMB or NFS

     

    This doesn't have anything to do with FTP.

     

    When a user logs in via FTP, the FTP server looks up that user's home directory, and THAT is what it presents to the user. It doesn't matter whether that home directory is local, on an AFP server, or an NFS server (which is what Server Admin lets you say).

     

    So there's nothing to do in Server Admin regarding identifying a FTP share as a home directory. Just set the FTP server to serve the user's home directory only.

  • 12. Re: configure ftp in Lion Server?
    Gerard Dirks Level 1 Level 1 (30 points)

    Thanks Camelot

     

    Your last sentence is exactly displayed my Problem

     

    "Just set the FTP server to serve the user's home directory only."

     

    How do I change this ftp home directory, it should not be the root as it is by default! Whit whicht Tool, CLI-Command and how? For e.g. Macintosh HD/sharepoint afp/tcp/

     

    Gérard