Mount_smbfs Authentication Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta smbutil server rejected the authentication authentication error Discuss the workings and policies of this site About Us Learn mount_smbfs: server connection failed: no route to host more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us mount_smbfs unknown error 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 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 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 wor
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 Jenkins call to mount_smbfs fails with http://stackoverflow.com/questions/14122623/getting-authentication-error-on-mount-smbfs Authentication error up vote 4 down vote favorite I am running Jenkins on Mac OS X 10.7.5 and have it handle nightly backup to a SMB share on a Windows server. I want to mount the SMB drive automatically as part of the backup script but mount_smbfs fails from within Jenkins. The mount command I use is of the form: mount_smbfs "//WORKGROUP;user:password@server/share" /Users/user/share This works fine from http://stackoverflow.com/questions/14162548/jenkins-call-to-mount-smbfs-fails-with-authentication-error the Terminal command line but in Jenkins gives me the error: mount_smbfs: server rejected the connection: Authentication error I have made sure that Jenkins runs the command as the same user as on the command line and nothing stood out in the differences in the PATH and other environment variables. osx jenkins mount samba share|improve this question asked Jan 4 '13 at 18:13 MarkMizuguchi 212 The relevant apple info at support.apple.com/kb/HT1568 unfortunately does not have a pointer to a bugreport and changerequest database (which most monopolist like Apple, Samsung and Microsoft seem to find a bad idea). Hopefully Mac OS 10.9 will have a better SAMBA implementation. –Wolfgang Fahl Oct 5 '13 at 10:36 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote This is not a complete answer yet - just a list of information relevant for the diagnosis. Please edit this answer if you find any proper therapy. Here are some relevant Apple support articles: http://support.apple.com/kb/HT1568 http://support.apple.com/kb/HT4829 and these are the man pages man mount_smbfs man smbutil man nsmb.conf You might want to try out smbutil view "/WORKGROUP;user:password@server" to check the availabilty of the server. the -N op
Experienced Joined: Jun 4, 2013 Messages: 233 Thanks Received: 23 Trophy Points: 26 I'm getting the following error when trying to use the -N option with mount_smbfs https://forums.freenas.org/index.php?threads/mount_smbfs-n-option-not-working.38584/ from the freenas server (which is the client in this case) to a cifs share on another server: Code:backupserver# mount_smbfs -N -I 192.168.10.10 //someusername@fileserver/userdata /mnt/userdata mount_smbfs: unable to open connection: syserr = Authentication error http://www.linuxquestions.org/questions/*bsd-17/mount_smbfs-authentication-error-with-n-flag-384450/ I've got the password in the /root/.nsmbrc and am running the command as root. The same command without the -N options works fine, and prompts for a password. And it will mount the authentication error share properly. I can't tell if it's finding the .nsmbrc file or not? Contents of that file are: Code:[fileserver] addr=192.168.10.10 [fileserver:someusername] password=userspassword Anyone else experience this? And if so, any solutions? Last edited: Oct 12, 2015 toadman, Oct 12, 2015 #1 cyberjock Moderator Moderator Joined: Mar 25, 2012 Messages: 19,102 Thanks Received: 1,639 Trophy Points: 161 Are you trying to do this on the FreeNAS server or mount_smbfs authentication error some linux system? Hardware recommendations • RAID5/RAIDZ1 is dead Read my guide! It answers common questions newbies to FreeNAS have. Only you can prevent flame wars! Read the FreeNAS manual. Show : My Main System FreeNAS-9.3.1-STABLE-(likely forever) | Intel Xeon E3-1230v2 | Supermicro X9SCM-F 32GB DDR3 ECC 1600 RAM | 32GB SATA DOM | Cyberpower 1500AVR | Ten WD Red WD60EFRX NAS Hard Drives (RAIDZ2, 40.9TB usable space) | 10GbE (Chelsio adapter) cyberjock, Oct 12, 2015 #2 toadman FreeNAS Experienced Joined: Jun 4, 2013 Messages: 233 Thanks Received: 23 Trophy Points: 26 Trying to mount a cifs share from another server with my freenas server, i.e. Freenas is the client in this case. (Updated original post to make it more clear.) (There are other ways to accomplish what I'm trying to do, but it's interesting this one won't work.) Last edited: Oct 12, 2015 toadman, Oct 12, 2015 #3 cyberjock Moderator Moderator Joined: Mar 25, 2012 Messages: 19,102 Thanks Received: 1,639 Trophy Points: 161 Okay, so you're really looking for support on another OS, right? Hardware recommendations • RAID5/RAIDZ1 is dead Read my guide! It answers common questions newbies to FreeNAS have. Only you can preve
Tags Search LQ Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Other *NIX Forums > *BSD mount_smbfs authentication error with -N flag User Name Remember Me? Password *BSD This forum is for the discussion of all BSD variants. FreeBSD, OpenBSD, NetBSD, etc. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 11-18-2005, 03:39 PM #