pinocativo

Q: afp://user : password@server + connect as?

Hello,

 

before upgrading to Sierra, to connect to my NAS, under Finder->go->connect to a Server, I used to type:

 

afp://user : password@server/share_name

 

with no pop up windows "Connect as".

 

Now, after the upgrade, after the command: afp://user : password@server, a "connect as" windows pops up and this is annoying.

 

Anyone knows how to skip this "connect as" window?

 

Thanks,

daniele

Posted on Sep 22, 2016 12:17 PM

Close

Q: afp://user : password@server + connect as?

  • All replies
  • Helpful answers

  • by keg55,

    keg55 keg55 Sep 22, 2016 12:32 PM in response to pinocativo
    Level 6 (8,479 points)
    Mac OS X
    Sep 22, 2016 12:32 PM in response to pinocativo

    I think it has something to do with SMB now being the default login for Sierra. I tried the syntax you showed and replaced 'afp' with 'smb' but still got the Connect As screen. Even when selecting the Server in the left pane of Finder, I always have to do a Connect As. It used to remember how I logged in and immediately go to the shares on the Server but not anymore. Always have to Connect As.

  • by romanfromboulder,

    romanfromboulder romanfromboulder Sep 22, 2016 12:37 PM in response to pinocativo
    Level 1 (14 points)
    Mac OS X
    Sep 22, 2016 12:37 PM in response to pinocativo

    Just use:

     

    afp://user@server

     

    The "Connect As" window will still pop up, but make sure you select the "Remember my Password in Keychain" option before you proceed. You will not see the Connect As window for this server with that username going forward.

  • by pinocativo,

    pinocativo pinocativo Sep 22, 2016 12:57 PM in response to romanfromboulder
    Level 1 (13 points)
    Mac OS X
    Sep 22, 2016 12:57 PM in response to romanfromboulder

    Thanks for replying but I would not like to save the password in the keychain

  • by romanfromboulder,

    romanfromboulder romanfromboulder Sep 22, 2016 1:07 PM in response to pinocativo
    Level 1 (14 points)
    Mac OS X
    Sep 22, 2016 1:07 PM in response to pinocativo

    After reading keg55's post try this:

     

    1. Open up the Directory Utility (you can spotlight search for it)
    2. Unlock the window with your admin password
    3. Make sure you're in the "Services" tab
    4. Double-click "Active Directory"
    5. Press the right facing arrow near the bottom
    6. Uncheck the box that says "Use UNC path from Active Directory..."

     

    I know for a fact this would work on an Active Directory machine, so I'm not sure if it will if yours is unmanaged.

     

    Which version of OS X were you using before upgrading to Sierra?

  • by pinocativo,

    pinocativo pinocativo Sep 22, 2016 1:16 PM in response to romanfromboulder
    Level 1 (13 points)
    Mac OS X
    Sep 22, 2016 1:16 PM in response to romanfromboulder

    EL Capitain

  • by romanfromboulder,

    romanfromboulder romanfromboulder Sep 22, 2016 2:24 PM in response to pinocativo
    Level 1 (14 points)
    Mac OS X
    Sep 22, 2016 2:24 PM in response to pinocativo

    I just upgraded to Sierra to test this out, and I experianced the same issue while trying to connect to an smb the same way (smb://username:password@server). This is probably an intentional change that Apple made: the best workaround I can think of is to use the Keychain to save the password so you don't have to enter it every time.

  • by pinocativo,

    pinocativo pinocativo Sep 22, 2016 2:47 PM in response to romanfromboulder
    Level 1 (13 points)
    Mac OS X
    Sep 22, 2016 2:47 PM in response to romanfromboulder

    Thanks for trying.

    But I have not understood, the above listed point 1 to 6 are therefore useless to try or?

  • by romanfromboulder,Helpful

    romanfromboulder romanfromboulder Sep 22, 2016 3:26 PM in response to pinocativo
    Level 1 (14 points)
    Mac OS X
    Sep 22, 2016 3:26 PM in response to pinocativo

    Indeed, they will not help you. Like I mentioned before, I don't think it is possible to do what you want with Sierra.

     

    OS Sierra changed the default file share protocol from AFP to SMB, like keg55 mentioned in his post. keg55 and myself assumed it was prompting you because you are no longer connecting using the default protocol. The steps I outlined are how you can change the default protocol, but since macOS will prompt you regardless of protocol, it doesn't matter which is the default.

     

    The default matters so that you don't have to type afp:// or smb:// every time you connect to your file share, if all of the file shares you connect to use the same protocol (usually smb). This is VERY useful for admins of managed environments where several users connect to the same file share.

  • by pinocativo,

    pinocativo pinocativo Sep 23, 2016 2:47 AM in response to romanfromboulder
    Level 1 (13 points)
    Mac OS X
    Sep 23, 2016 2:47 AM in response to romanfromboulder

    Thanks for replying.

     

    Even if I save the password in the keychain, it requires that I press the "Connect" key. Is it possible to create an Applescript that after:

     

    tell application "Finder"

              mount volume "smb://xx.xx.xx.xx/home" as user name "yy" with password "zz

    end tell

     

    automatically presses the Connect button?

     

    Thanks for helping, daniele

  • by ccwillia,

    ccwillia ccwillia Sep 27, 2016 6:00 AM in response to pinocativo
    Level 1 (8 points)
    Mac OS X
    Sep 27, 2016 6:00 AM in response to pinocativo

    I have the same issue and had started a separate discussion thread.  I called Apple support and they will not help unless the network storage you are trying to connect to is a Apple Time Capsule

     

    Mount Prompts to connect in Sierra

  • by ccwillia,

    ccwillia ccwillia Sep 27, 2016 6:12 AM in response to ccwillia
    Level 1 (8 points)
    Mac OS X
    Sep 27, 2016 6:12 AM in response to ccwillia

    Adding the password to keychain does not work nor does passing the password (username:password@server).  The prompt still forces you to click connect