Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 20, 2013, 02:39 AM   #1
carlsson
macrumors regular
 
Join Date: Jul 2001
FTP Server on OS X Server?

I have turned on the FTP service on my OS X Server, that hosts a couple of domains. However, I have some problems...

I have searched for info about the FTP Server to no avail. It seems impossible to find any info about this?

Can any of you guys point me to a good place for more info about the built in FTP Server?

Thanks,
/andreas
carlsson is offline   0 Reply With Quote
Old Dec 20, 2013, 12:30 PM   #2
HenryAZ
macrumors regular
 
Join Date: Jan 2010
Location: South Congress AZ
Quote:
Originally Posted by carlsson View Post

Can any of you guys point me to a good place for more info about the built in FTP Server?
Have you looked at "man ftpd"?
HenryAZ is offline   0 Reply With Quote
Old Dec 20, 2013, 01:52 PM   #3
CarreraGuy
macrumors regular
 
Join Date: Jan 2013
You can turn on 'Remote Login' via System Preferences->Sharing.

And you'll get 'ssh' and 'sftp', which is better than ftp.
__________________
13" 2010 MacBook Pro, 2.4GHz Core 2 duo, 8gb RAM, 500gb SSD
iPhone 5 16gb
CarreraGuy is offline   0 Reply With Quote
Old Dec 22, 2013, 05:39 AM   #4
mac8867
macrumors 6502
 
Join Date: Apr 2010
I like enabling ftp on my server so I can give users a link to retrieve/upload files. Really helpful for files larger than 5 MB, directories etc.

Since Lion, you have to enable the ftp server from the command prompt:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
__________________
2013 rMBP 13.3" i7, 16GB 1TB
iPhone 4s
mac8867 is offline   0 Reply With Quote
Old Dec 27, 2013, 08:57 AM   #5
carlsson
Thread Starter
macrumors regular
 
Join Date: Jul 2001
Quote:
Originally Posted by HenryAZ View Post
Have you looked at "man ftpd"?
I am a GUI kind of guy and since Apple is/should be/is famous for, I anticipate that the Server Preference pane should've been better than what it is.

What I really want to do is the following:
I host a couple of domains on my Mac with Server installed.
The domains are not mine, but friends of mine.
Domains and email work good, but I can't get the FTP Server to host proparly - I want the different domain owners to have FTP access to their respective domains. So they can update their web sites without my help.

I.e:
User "domain1.com" logs in with her user name and password from her FTP application.
User "domain2.com" logs in with her different name and password, and see what's in *hers* web folder.
...and so on.

As it is now, they end up in the same folder, or not a folder at all, or they don't have access and everything is just messed up and I just can't get a grip of what's going on.

Gaaah...!

I buy a virtual beer for anyone that can help me!
carlsson is offline   0 Reply With Quote
Old Dec 28, 2013, 05:04 AM   #6
mac8867
macrumors 6502
 
Join Date: Apr 2010
Quote:
Originally Posted by carlsson View Post
I am a GUI kind of guy and since Apple is/should be/is famous for, I anticipate that the Server Preference pane should've been better than what it is.
Sometimes life just doesn't have a GUI. If you are going to host for other people, you will have to get your hands a little dirty and use terminal. My previous post held the commands necessary to enable the FTP server on Mac. It is very important that you get that part done.

Quote:
Originally Posted by carlsson View Post
What I really want to do is the following:
I host a couple of domains on my Mac with Server installed.
The domains are not mine, but friends of mine.
Domains and email work good, but I can't get the FTP Server to host proparly - I want the different domain owners to have FTP access to their respective domains. So they can update their web sites without my help.
Step 1: For each of your customers, create a User account via System Preferences. Each user will have a home directory in /Users/xxxxxx. Make them "Standard" users, not Administrators or Sharing Only. Make sure you have the passwords to give to your domain owners.

Step 2: When you create a new domain in OXS Server, you have the option of choosing the location of where the files are stored. (It's the "Store Files in" option) You can even change the location of an existing domain. So, for each of your domains, change the location to the respective /Users/xxxxxx.

Step 3: Tell your users they can access their domain at the following URL:
ftp://<username>@<domainname>
This works in Safari, Firefox, IE... etc (it's a pretty common feature of browsers to handle FTP)

voila. If you experience file permissions issues either for your users, or the web server. Make certain the OWNER of files should be the user accounts, and the web server should run as the root user. This will avoid any permissions issues.
__________________
2013 rMBP 13.3" i7, 16GB 1TB
iPhone 4s
mac8867 is offline   1 Reply With Quote
Old Dec 30, 2013, 08:30 AM   #7
carlsson
Thread Starter
macrumors regular
 
Join Date: Jul 2001
Quote:
Originally Posted by mac8867 View Post
Sometimes life just doesn't have a GUI... [snip]
Thank you mate!

carlsson is offline   0 Reply With Quote
Old Feb 4, 2014, 06:58 AM   #8
carlsson
Thread Starter
macrumors regular
 
Join Date: Jul 2001
Mac8867 - Don't drink it all just yet please.

I *still* can't get this to work!

For every new user I create, they connect to the last know FTP folder. No matter what I set in as User Home Directory, or FTP setting or whatever. It feels like the server settings have a life on their own, and no matter what I do it won't work as expected.

I'm going crazy.

For example; what should the settings for this be:
Login Shell?
Local User or Local Network User?
FTP Root settings?
carlsson is offline   0 Reply With Quote
Old Feb 4, 2014, 10:31 AM   #9
Silencio
macrumors 68000
 
Silencio's Avatar
 
Join Date: Jul 2002
Location: NYC
If you're serious about running an FTP server on your Mac OS X Server, want a good GUI, and are willing to spend a little, I highly recommend CrushFTP. It's a fantastically powerful and flexible FTP server. Licenses start at $40 for home users or $70 for business use.
__________________
"The times they are a changin', and some traditional PC folks feel like their world is slipping away. It is."
Silencio is offline   0 Reply With Quote
Old Feb 4, 2014, 01:11 PM   #10
carlsson
Thread Starter
macrumors regular
 
Join Date: Jul 2001
CrushFTP seems like the choice then.

I have updated to Mavericks now at least.

I'm currently reading ArsTechnica's article about OS X Server and one thing strikes me: "However, you can only have one FTP share point configured at a time, making it a poor choice if you're serving several sites you'd like to access via FTP."

Then my question is: If I go SFTP - will that work?

FTP is old and bad, I know. But at least everybody understands what it is. That's why I have tried to configure FTP. But maybe today every FTP client also understands SFTP. If so, I may not have a problem...?

carlsson is offline   0 Reply With Quote
Old Feb 4, 2014, 06:27 PM   #11
Cubytus
macrumors 6502a
 
Join Date: Mar 2007
Slightly related, but should I understand Snow Leopard really was the last proper OS X server version?
__________________
Ubuntu and Mac OS X user means sacrilege both to Mac and GNU/Linux communities.
Stop ranting, give feedback: http://www.apple.com/feedback
Online, my trilingual blog
Cubytus is offline   1 Reply With Quote
Old Feb 4, 2014, 09:29 PM   #12
crittle1
macrumors newbie
 
Join Date: Feb 2014
I just went through the same issue 2 days ago. Ended up having to install PureFTPd, which worked just as I liked.

It's just nice to have a sweet interface to see what's going on sometimes.
crittle1 is offline   0 Reply With Quote
Old Feb 5, 2014, 04:05 AM   #13
carlsson
Thread Starter
macrumors regular
 
Join Date: Jul 2001
I upgraded to Mavericks yesterday, and there are actually a couple of differences from Mountain Lion. It's somewhat easier to understand and it also seems faster. The tutorials are great. Small details.

However, I gave up on FTP and tried SFTP instead. And as far as I can tell it works as it should!

I looked at CrushFTP and it seems really good. But I'll try to solve this with the OS X Server software as a start at least.


A reflection: Is no one using Mac and OS X Server to host a couple of domains anymore?
carlsson is offline   0 Reply With Quote
Old Feb 5, 2014, 07:04 AM   #14
ElectronGuru
macrumors 6502a
 
Join Date: Sep 2013
Location: Oregon, USA
The youtube guy walks through them and this book assumes at least one domain:

https://itunes.apple.com/us/book/mav...er/id737392044

I set up one of mine just to get away from IPs.
__________________
MBP, IM, MM, IPM, IP, AT
ElectronGuru is offline   0 Reply With Quote
Old Feb 5, 2014, 05:09 PM   #15
irnchriz
macrumors 6502a
 
Join Date: May 2005
Location: Scotland
One of my clients uses Rumpus for FTP And wfm. Works really well, a little bit pricey if you don't have a lot of users though.
__________________
irnchriz is offline   0 Reply With Quote
Old Feb 8, 2014, 03:27 AM   #16
AmestrisXServe
macrumors 6502
 
Join Date: Feb 2014
It sounds to me that you haven't configured your domain aliases and locations in your DNS.

As long as your DNS recordsfor that domain all point to the server, any domain hosted from your IP can be used to FTP into your system. If you forceFTP logi nto show a user's home directory,then they will always see their stuff on login.

You need to add a DNS entry for each domain,and set each to a unique directory. I usually make a www directory under the user as:

/users/user/Sites/www


I assign the domain name of the user to that www directory. This gives them space to use for FTP that is not on their website; it is above their website directory structure.

After I assign this, the user should be able to FTP into theirdomainname.com, using any protocol, and ssh or telnet into the same.as their account. Be sure to set (in Server Admin->FTP>Advanced):

Authenticated Users See: (Home Directory Only).

I'm really not sure what is giving you problems, but to be frank, if you want to run a server of any scope, you need to be ready to use a shell. You may need to edit ftpd.conf at some point. I suggest keeping regular backups of all of your config files.

When ftpd.conf became corrupted for me a while back, users could connect by FTP, but no-one could log into the system (even root!)...

What exactly is not working when you set up a site?

(I don't see the value in a secondary FTP server for OSX Server... The whole point of OSX Server is that these services are all included and connected through Server Admin.)
AmestrisXServe is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -5. The time now is 03:44 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC