Glam Prestige Journal

Bright entertainment trends with youth appeal.

I know how to

  • turn an FTP server on:

    sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
  • turn the FTP server off:

    sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

The root FTP folder is automatically set to /Users/my_username.

How can I change the root FTP folder to a folder of my choice?

1

1 Answer

The FTP user's home folder is defined in the System Preferences "Users and Groups" app. Go to Apple Menu > System Preferences > Users and Groups.

The magic is using the [Control] + [Click] secret option. While holding down the [Control] key, click on the user in the list of users and the secret "Advanced Options" menu will appear. Change the user's home directory to whatever you want in the ensuing options screen.

Then when ever a service (SSH, FTP, etc.) logs in, this configured new home directory will be the starting point.

However, be very careful as any errors could cause the user to be unreachable / corrupted and if it's the only admin user on your system, you could lock yourself out permanently.

FURTHERMORE, it is strongly recommended that you setup a dedicated separate user for FTP. Not the main system user. This separate user would have the customized home directory.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy