Turn off FTP service via command line

We are running a Mt Lion server.  The FTP Service quit working properly.  Instead of directing users to the FTP folder specified, users are just sent to the root of the OS drive.  We attemped to turn off FTP service in the Server.app, but FTP stays running even when Server.app lists it as off. 
Is there a way to turn off FTP via the command line?   We can't seem to find it. The instructions we found online for 10.7 don't work.  We've tried rebooting the server and repairing permissions but the same problem exists.

Finally, tracked it down thanks to the good people at CrushFTP http://crushftp.com
Here is the command for anyone else that may be looking.
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

Similar Messages

  • How to turn off Bluetooth adapter via command line or script?

    I'm trying to write a batch script that will be able to turn on/off any connected Bluetooth adapters.
    In the "Bluetooth Settings" window, how can I change the "Turn off Bluetooth adapter" setting via command line or script?
    Due to my account not being verified yet, I cannot post a screenshot.  I will update this thread as soon as my account is verified.

    get-service -DisplayName 'Bluetooth Support Service' | Stop-Service
    ¯\_(ツ)_/¯

  • Turning on location services via command line

    It is possible in Mountain Lion or Mavericks to turn on location services via a shell script as might be used via Apple Remote Desktop or DeployStudio or similar. An example script to do this is listed below.
    #!/bin/sh
    /bin/launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist
    uuid=`/usr/sbin/system_profiler SPHardwareDataType | /usr/bin/grep "Hardware UUID" | /usr/bin/cut -c22-57`
    /usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.$uuid LocationServicesEnabled -int 1
    chown -R _locationd:_locationd /var/db/locationd
    /bin/launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist
    exit 0
    The script turns location services off, finds the Macs unique hardware UUID number, sets the preference file for this Mac which has a file name unique to this Mac because the file name includes the UUID number, restores ownership of the file as the defaults command will have possibly changed the owner, and then turns location services back on.
    As mentioned the above will work for Mountain Lion and Mavericks. Unfortunately Lion even though it also has location services its method of confuguring is totally different.
    Does anyone have a similar command line solution to enable location services for Lion (aka OS X 10.7).

    THis should work:
    #!/bin/sh
    launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist
    defaults write /System/Library/LaunchDaemons/com.apple.locationd Disabled -bool false
    launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist
    exit 0

  • FTPS (TLS) via command line

    I'd like to know if it's possible to initiate an FTP (with TLS) connection from the command line.  I know that FTP is available from the command line, but I'm not sure how to enable TLS, if it's even available.
    My goal is to write an Automator workflow that securely uploads the content of a chosen folder to an FTP server.  I currently use a third-party action called "Upload to FTP", but I don't think it uses the TLS protocol.

    curl --ftp-ssl
    will attempt to connect via encryption - but it will silently revert to a non encrypted connection if it can not.
    curl --ftp-ssl-reqd
    might be a better choice: it will fail with an error message  like
    curl: (64) Requested SSL level failed
    when it can not connect via SSL

  • Turn on "Real-time preotection" via command line

    Hello!
    We have a cient without networking resources and I need to turn on the "Real-time protection" which is currently in OFF state.
    How can I do that via command line?
    I tried to review the "mpcmdrun" command but did not found proper switch to turning on this service.
    Regards, 
    Tamas

    You could do a regedit command to silently import a .reg file with the setting in it:
    create a .reg file from the following key:
    HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection
    Name: DisableRealtimeMonitoring
    Type: REG_DWORD
    Data: 0
    Then import it silently with this command:
    regedit /s C:\ExamplePath\Example.reg
    You could also do a PowerShell command:
    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection' -Name DisableRealtimeMonitoring -Value 0

  • Turning off data services

    Hi, I was just wondering why you can't use wi-fi when you select to turn data services off. The problem is, is that for this 1 month I don't have unlimited data so need to make sure I don't spend much. Also will any services try to use the data service without user interaction? Thanks for your help

    chrislee_88 wrote:
    Whenever i turn data services off though it seems to also turn wi-fi off somehow.
    It connects to a network however whenever i try to use anything it comes up with 'Unable to connect to the internet, please try again later.' The wi-fi diagnostics menu also says that the 'IP address no longer valid'
    Whenever i turn data services back on wi-fi goes back to normal. Weird.
    I have a feeling that you don't have the browser set as a Hotspot browser, then. 
    Even if you turn off Data Services, your Wifi Hotspot browser should work fine. I have one Bold device with no SIM even it, in which I can access and browse the internet on it via only WiFi using the Hotspot browser.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • How to programatically start j2ee application/service  from command line

    Hi all
    We have developed a j2ee application and deployed  the .ear file on SAP J2EE (Netweaver'04) engine.
    We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop application.
    We need to start and stop the same application programatically or via command line instead of doing it from VA.  Any thoughts from anyone on how to do it ?
    Thanks in advance.
    Regards
    Nagesh

    The cammands are there in the respective folders, these are just the batch files / .sh scripts that can be run from command line.
    /usr/sap/<instance>JC<client>/j2ee/admin
    go.sh and go.bat can run either on command line
    j2ee/configtool
    configtool.sh / configtool.bat  
    similarly for other smaller utilities. For the main server, the related commands are in exe directory of sapmnt
    /sapmnt/<instance>/exe
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 11:16 PM

  • After turning off Location Services, Safari keeps saying to turn back on

    I turn off "Location Services" often to save battery power, and at night I often turn on "Airplane Mode", (which I must say is most convenient to turn all radios, (GPS, Bluetooth, Phone, Wifi, Push), at once. However, Safari continues to often send a pop up saying, "turn on location services to allow "safari" to determine your location". Not only is this pop up annoying, but I often listen to several of the rainmaker apps as I fall asleep and this notification continously shuts down my rainmaker app. I have tried to find a way to stop Safari from doing this but am getting no where. Does anyone else have this problem and is there a way to stop Safari from sending repeated prompts? This has always happened but is happening more so since using Google Latitude, which I do have completely turned off and signed out of. Thanks

    Cannot see why Safari is bugging you. 1) it is closed thus shouldn't be needing anything since apps don't run in the background. 2) Safari shouldn't ask for your location (unless specific page is asking).
    I'd say reboot as it sounds like something is stuck in memory.
    A reset/reboot is:
    Go to Home Screen
    Press and Hold Home Button
    Keep holding and press and hold Lock Button
    Keep holding Both
    You will see Slide to Turn Off (Don't let go to slide, just keep holding)
    The phone will turn off (in time, but screen will look like it has some white lines)
    Keep Holding
    When you see the Apple Logo, you can let go.

  • Slow processing time, via Command line, with Reader

    I'm using Reader 9, via command line, to process PDFs in a 3rd party application and it's taking much longer to process files this way than with Acroplot or Ghostscript.  Is there a way to improve this processing time?
    thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • Running reports via command-line with /batch option

    Hi,
    I have created a batch file which runs, and exports the results of 7 different discoverer reports with /batch option.
    Contents of batch file:
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    Sample of a cmd file the bacth file runs:....
    /connect user/password@oraprd /apps_responsibility "BIS Super User"
    /open "H:\Projects\DRP Import Modelling\Dev\Intransit Extract.dis"
    /sheet 1 /export xls "H:\Projects\DRP Import Modelling\automation\Intransit Input.xls" /batch
    The batch file runs ok and processes each report in sequence, and creates the excel export one after the other.
    However, I need to process the 7 reports in parallel, so changed the batch file to process in own thread :
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    The reports kick off at the same time and I can see 7 dis4usr.exe processes running via task manager
    Problem:
    The first reports runs and exports ok.
    All the others dis4usr.exe processing stops with the following error pop-up:
    ! Could not open file. OK
    Question:
    Can you only process reports sequentially via command line mode with /batch option?
    If not...what am I missing...its driving me insane :)
    All asistance is greatly appreciated. Thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • How can I install on Windows remotely via command line?

    Hello Folks.
    I want to install an application on Windows remotely and via command line, For example, I need a tool like Psexec or WMIC but I don't like the user understand it. Any idea? 

    Hi,
    Please also refer to following FAQ article and check if those four general ways will meet your requirement.
    [Forum FAQ] How to deploy applications remotely
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to merge multiple documents via command line (Adobe Acrobat Pro 9.3.2)?

    I'm searching solutions to merge multiple documents (all stored in one folder) via command line or batch file to a single PDF-File...
    Is there a way to do this?
    Finaly I want to control this from a application written in MS-Access. So, perhaps there are some features already integrated in Access to do this?
    Thanks for answer!

    If you have some programming experience you could probably do this using VBA from within MS Access to control Acrobat via OLE.
    Lots of examples on the Web.
    Hope this helps

  • Adobe Reader 11 (XI) won't open file via command line

    Hello,
    I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
    I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10  (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
    In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
    "CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
    ie
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
    but now - not that it doesn't open specific page, but it doesn't want to open file at all.
    edit:
    Operating systems running: Windows 7, Windows XP
    Thank you.
    Message was edited by: v604

    Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
    Hope this helps.
    -Sumit

  • Will an iPhone automatically turn off location services.  If it goes below a certain battery power level, and so how you disable this in settings.

    I am working with Georgia DOT and we have created an app to track our state vehicles using IPhone 5. My question is: will an iPhone automatically turn off location services?  If it goes below a certain battery power level, and if so how do you disable this in settings.
    Message was edited by: mickyel

    I don't believe that this will happen, however, the entire iPhone will shut down when the iPhone reaches the auto-shutdown power level. There is no way to turn that Off other that connecting the iPhone to power.

Maybe you are looking for

  • Problem installing windows XP in bootcamp

    http://img201.imageshack.us/img201/9862/screenshot20101105at125.png I think i tried to make a partition before, and it worked, But then i quitted bootcamp (it never installed xp becaouse i didnt want to when it was done to create the partition) ... H

  • How to prevent boot from external devices?

    Hello, Does anyone know how I could disable my imac's boot from external devices (firewire/USB disks etc.) like it can be done on PC hardware by changing BIOS options? Also, how can you password protect your machine pre-boot? I believe both issues ar

  • MARS - Oracle TNS listener errors

    Anyone familiar with this: [pnadmin]$ pndbusage Program aborted due to: ORA-12541: TNS:no listener MARS was fine before the holiday weekend. When I came back, I was looking at the summary page and the graph wasn't being drawn. I SSH'd to MARS and did

  • SQL*LOADER VARRAY SQL

    Hi, following case of a ctl-file: LOAD DATA APPEND INTO TABLE IFC_A_T01 TRAILING NULLCOLS ID                    SEQUENCE, SKZ POSITION(1:1) TERMINATED BY '$' "RTRIM(LTRIM(:SKZ,' '),' ')", sub object FKZ VARRAY TERMINATED BY '$' ( FKZ COLUMN OBJECT (

  • Headstart V6/8i/NT workaround

    If anyone's interested, I have a workaround for the server bug which gives ORA-03114 on entry to V6 Headstart-generated forms when run against 8i in an NT environment. You hit the server bug whenever you have client code which invokes server side pro