[X4U] Turn on file sharing from the Terminal?

Stroller MacMonster at myrealbox.com
Wed Apr 13 15:13:23 PDT 2005


On Apr 13, 2005, at 10:01 pm, Peter Krug wrote:
>
> I can open the terminal (At least I'm pretty sure I can).  Is there a 
> simple command that will turn on filesharing from the terminal?  I 
> can't use the Sharing pref pane since I cannot see where the cursor 
> is.

Take a look at /Library/Preferences/com.apple.sharing.firewall.plist & 
`man defaults`.

On my system ftp is turned  on right now, bit not file sharing:

                 ...
                 <key>FTP Access</key>
                 <dict>
                         <key>editable</key>
                         <integer>0</integer>
                         <key>enable</key>
                         <integer>1</integer>
                         <key>port</key>
                         <array>
                                 <string>20-21</string>
                                 <string>*</string>
                         </array>
                         <key>row</key>
                         <integer>4</integer>
                 </dict>
                 <key>Personal File Sharing</key>
                 <dict>
                         <key>editable</key>
                         <integer>0</integer>
                         <key>enable</key>
                         <integer>0</integer>
                         <key>port</key>
                         <array>
                                 <string>548</string>
                                 <string>427</string>
                         </array>
                         <key>row</key>
                         <integer>0</integer>
                 </dict>
                 ...

Stroller.



More information about the X4U mailing list