Mac Mount_smbfs Authentication Error
Contents |
a title. You can not post a blank message. Please type your message and try again. Alan Jebakumar Level 1 (0 points) Q: Unable to mount a Windows share from terminal Hey All,Im unable to mount a windows share from mount_smbfs: server connection failed: invalid argument my terminal session by the command mount_smbfs. Will post the error message shorty.Can anyone server connection failed no route to host suggest a solution?Cheers MacBook Pro, OS X Yosemite (10.10) Posted on Mar 17, 2015 11:13 PM I have this question too by
Smbutil Server Rejected The Authentication Authentication Error
Alan Jebakumar,Solvedanswer Alan Jebakumar Level 1 (0 points) A: Jimmy, All,I now learnt how to mount a windows share. mount_smbfs smb://
Mount_smbfs: Url Parsing Failed, Please Correct The Url And Try Again: Invalid Argument
a mac..-Alan. Posted on Apr 17, 2015 4:18 PM See the answer in context Close Q: Unable to mount a Windows share from terminal All replies Helpful answers by Alan Jebakumar, Alan Jebakumar Mar 18, 2015 5:27 AM in response to Alan Jebakumar Level 1 (0 points) Mar 18, 2015 5:27 AM in response to Alan Jebakumar All,This is wat i receive when i try to mount a windows share-mount_smbfs //Admin@wpc01/Movies /Volumes/Password mount_smbfs unknown error for wpc01:mount_smbfs: server rejected the connection: Authentication errorKindly confirm what can be done to fix this issue?-Alan Helpful (0) Reply options Link to this post by Alan Jebakumar, Alan Jebakumar Mar 18, 2015 5:49 AM in response to Alan Jebakumar Level 1 (0 points) Mar 18, 2015 5:49 AM in response to Alan Jebakumar But,Im able to mount with my domain account like this-mount_smbfs smb://alan.j@wpc01/Movies /Volumes/Movies/Where alan.j is a domain account of domain room\alan.j-Alan. Helpful (0) Reply options Link to this post by JimmyCMPIT, JimmyCMPIT Mar 18, 2015 5:58 AM in response to Alan Jebakumar Level 6 (8,395 points) Mac OS X Mar 18, 2015 5:58 AM in response to Alan Jebakumar you could try installing SAMBA as it appears Apples SMB does not always behave like the open source versionhttp://eduo.info/apps/smbuphave you tried CIFS instead? Helpful (0) Reply options Link to this post by Alan Jebakumar, Alan Jebakumar Mar 18, 2015 6:15 AM in response to JimmyCMPIT Level 1 (0 points) Mar 18, 2015 6:15 AM in response to JimmyCMPIT Jimmy,Thanks for the note. Would we be able to map windows share from the submit command from the terminal? Helpful (0) Reply options Link to this post by JimmyCMPIT, JimmyCMPIT Mar 18, 2015 6:32 AM in response to Alan Jebakumar Level 6 (8,395 poi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up getting authentication error on mount_smbfs up vote 1 down vote favorite I am trying to copy a file https://discussions.apple.com/thread/6880779?start=0&tstart=0 from MAC to windows using mount_smbfs. However, I am getting an authentication error. It says "server rejected connection: authentication error". I am writing the correct username and password but the problem did not change. Here is my code below. NSTask* task = [[NSTask alloc] init]; [task setLaunchPath:@"/sbin/mount_smbfs"]; [task setArguments:[NSArray arrayWithObjects:@"//user:50000@smb://192.168.2.1/Share",@"/Users/Shared", nil]]; [task launch]; Could you please help how can I solve this problem? objective-c osx cocoa authentication mount share|improve this question edited Jan http://stackoverflow.com/questions/14122623/getting-authentication-error-on-mount-smbfs 2 '13 at 13:56 asked Jan 2 '13 at 13:06 answer88 80216 Probably unrelated, but shouldn't there be an initial slash in @"Users/Shared" ? –Martin R Jan 2 '13 at 13:50 @MartinR I edited my code in my original code there is an initial slash you are right! –answer88 Jan 2 '13 at 13:56 While there is code here, this question is not really a programming question, but rather about how correctly to use mount_smbfs. That makes it a better fit for apple.se or superuser. –paulmelnikow Jan 3 '13 at 5:58 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote From this page - you need to specify the workgroup as part of the connection, otherwise you always get the authentication error. so the connection string should be: //WORKGROUP;user:50000@192.168.2.1/Share ... assuming that the 50000 is the password for the user user Bear in mind that it's an URL that you're using, so make sure to URL-escape the username and the password before embedding them in the string, otherwise they could be misinterpreted. If you're connecting to non-domain joined systems, then the WORKGROUP value is pretty much arbitrary, and tends to be ignored for the connection. It may matter for domain-joined systems, because the usern
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack http://stackoverflow.com/questions/15987225/mount-command-failing-on-10-7-5 Overflow the company Business Learn more about hiring developers or posting ads with us Stack https://groups.google.com/d/topic/macenterprise/MtQCdVwgJ5M Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Mount command failing on 10.7.5 up vote 0 down vote favorite I have a shell script that authentication error mounts an smb share. It works perfectly on all macs with every OS revision except 10.7.5 The offending command is simply: mount -t smbfs -o nobrowse //test:test@servername/sharename /my/mnt/point When I attempt this command on a 10.7.5 mac, it fails either with a "broken pipe" or "authentication failed" error. However, it works fine on macs running 10.7.4, 10.6, 10.8 etc. Can anyone successfully use this command on 10.7.5? Is there any alternative server connection failed way of achieving this, or troubleshooting exactly why this error is happening? I'm running out of ideas! osx bash shell mount share|improve this question edited Apr 14 '13 at 15:35 ollo 14.5k1053105 asked Apr 13 '13 at 11:20 BSUK 106216 1 Thanks for the replies. The problem was two fold: Firstly, for some reason you cannot run this command as root in 10.7.5, and secondly you cannot mount outisde of /Volumes. Strangely this seems to work in all other OS revisions. I have worked around this problem by mounting my share in /Volumes and then creating a sym link to the desired mount point: mkdir -p /Volumes/share sudo -u localadminuser mount -t smbfs -o nobrowse //user:pass@server/share /Volumes/share ln -s /Volumes/share /location/that/I/prefer/to/mnt I hope this helps someone out. No idea why 10.7.5 changes this. –BSUK Apr 13 '13 at 14:40 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted Since feature requests to mark a comment as an answer remain declined, I copy the above solution here. Thanks for the replies. The problem was two fold: firstly, for some reason you cannot run this command as root in 10.7.5, and secondly you cannot mount outisde of /Volumes. Strangely this seems to work in all other OS revisions.
GoogleВойтиСкрытые поляПоиск групп или сообщений