gniemetz / automount

Mount shares at login
MIT License
40 stars 6 forks source link

Need help #9

Closed ipa64 closed 7 years ago

ipa64 commented 7 years ago

Hi, I'm trying to use your script. I got notification: 2017-03-16 16:41:21 +0100|46628|Info|All shares mountd successfully But in fact nothing was mounted. Please don't you have a preference file for sample ? Thanks

ipa64 commented 7 years ago

Even with wrong share name or wrong ip range

gniemetz commented 7 years ago

Please set the DEBUG variable to true an post the output of automount.sh --mountall, but don't forget to clear out the password(s)! And also your ~/Library/Preferences/it.niemetz.automount.plist (or send PM if you don't want others to see your shares)

Thanks Gerd

gniemetz commented 7 years ago

Here is a minimum sample of ~/Library/Preferences/it.niemetz.automount.plist for mounting the your_share from your_nas (either IP address or DNS name) with user your_user and protocol your_protocol (usually afp or smb)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Mountlist</key>
    <array>
        <dict>
            <key>Protocol</key>
            <string>your_protocol</string>
            <key>Account</key>
            <string>your_user</string>
            <key>Server</key>
            <string>your_nas</string>
            <key>Share</key>
            <string>your_share</string>
        </dict>
    </array>
</dict>
</plist>

Replace the sample values (your_...) with your data, optionally check the plist for errors with plutil -lint ~/Library/Preferences/it.niemetz.automount.plist (you shoud get an OK)

Next, add your_user to the keychain with automount.sh --addpassword --protocol your_protocol --server yourserver --account your_user and give in the password

At last, run automount.sh --mountall and hopefully your share get's mounted

If mounting doesn't work, see my comment above and try to debug where the problem is

HTH Gerd

ipa64 commented 7 years ago

Now all is working very well :-) Thanks a lot !

Le 18 mars 2017 à 12:29, Gerd notifications@github.com a écrit :

Here is a minimum sample of ~/Library/Preferences/it.niemetz.automount.plist for mounting the your_share from your_nas (either IP address or DNS name) with user your_user and protocol your_protocol (usually afp or smb)

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Mountlist Protocol your_protocol Account your_user Server your_nas Share your_share

Replace the sample values (your_...) with your data, optionally check the plist for errors with plutil -lint ~/Library/Preferences/it.niemetz.automount.plist (you shoud get an OK)

Next, add your_user to the keychain with automount.sh --addpassword --protocol your_protocol --server yourserver --account your_user and give in the password

At last, run automount.sh --mountall and hopefully your share get's mounted

If mounting doesn't work, see my comment above and try to debug where the problem is

HTH Gerd

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gniemetz/automount/issues/9#issuecomment-287537942, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ30AeT_aDY2T7tteCSTJrAokt2u2eqlks5rm8ATgaJpZM4MffuV.