LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-30-2010, 07:00 PM   #1
RWallett
Member
 
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38

Rep: Reputation: 15
Samba "mount error(11): Resource temporarily unavailable"


I've been running Samba on Gentoo as a PDC for a Windows XP domain for several years. We are using the IdealX smbldap tools to maintain users, we are storing accounts in OpenLDAP, and everything has been just golden for quite a while. However, for various reasons, we are migrating our servers away from Gentoo and onto Ubuntu 10.04 (64-bit). Unfortunately, replicating our Samba PDC/OpenLDAP backend on Ubuntu is kicking our backsides.

I've got Samba 3.4.7 running. I've got OpenLDAP running. ldapsearch/ldapmodify/ldapadd all work correctly. However, when I try to mount a Samba share on another Ubuntu machine, I get...:

Code:
testuser@testhost:~$ sudo mount.cifs //192.168.4.173/testuser /home/testuser/mnt/testuser --verbose -o user=testuser,domain=MYDOMAIN,uid=1000,gid=1000,netbiosname=testhost,ip=192.168.4.173
[sudo] password for testuser:
ip address 192.168.4.173 override specified
ip address specified explicitly
Password: 

mount.cifs kernel mount options: unc=//192.168.4.173\testuser,ver=1,user=testuser,domain=MYDOMAIN,netbiosname=testhost,ip=192.168.4.173,uid=1000,gid=1000,pass=********
mount error(11): Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
testuser@testhost:~$
When I attempt to browse to the share on a Windows XP machine, I get this error:

Code:
\\testserver is not accessible.  You might not have the right permission to use this network resource.  Contact the administrator of this server to find out if you have access permissions.

The specified network name is no longer available.
When I tail the /var/log/samba/log.smbd file on the server, I get...:

Code:
root@testserver:/var/log/samba# tail -f ./log.smbd
[2010/06/30 15:58:07,  5] lib/util_sock.c:371(print_socket_options)
  Socket options:
  	SO_KEEPALIVE = 1
  	SO_REUSEADDR = 1
  	SO_BROADCAST = 0
  	TCP_NODELAY = 1
  	TCP_KEEPCNT = 9
  	TCP_KEEPIDLE = 7200
  	TCP_KEEPINTVL = 75
  	IPTOS_LOWDELAY = 16
  	IPTOS_THROUGHPUT = 16
  	SO_SNDBUF = 16384
  	SO_RCVBUF = 16384
  	SO_SNDLOWAT = 1
  	SO_RCVLOWAT = 1
  	SO_SNDTIMEO = 0
  	SO_RCVTIMEO = 0
[2010/06/30 15:58:07,  5] lib/util_sock.c:371(print_socket_options)
  Socket options:
  	SO_KEEPALIVE = 1
  	SO_REUSEADDR = 1
  	SO_BROADCAST = 0
  	TCP_NODELAY = 1
  	TCP_KEEPCNT = 9
  	TCP_KEEPIDLE = 7200
  	TCP_KEEPINTVL = 75
  	IPTOS_LOWDELAY = 16
  	IPTOS_THROUGHPUT = 16
  	SO_SNDBUF = 16384
  	SO_RCVBUF = 16384
  	SO_SNDLOWAT = 1
  	SO_RCVLOWAT = 1
  	SO_SNDTIMEO = 0
  	SO_RCVTIMEO = 0

^C
root@testserver:/var/log/samba#
Any ideas on what else I can do to troubleshoot? I've consulted the magic Google-ball to no avail, and I'm about out of ideas. TIA!

--Mike
 
Old 07-01-2010, 01:00 PM   #2
RWallett
Member
 
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38

Original Poster
Rep: Reputation: 15
Additional info:

After doing a little more searching, I wondered if maybe apparmor was causing problems, so I ran...:

Code:
root@testserver:~# sudo /etc/init.d/apparmor stop
 * Unloading AppArmor profiles                                           [ OK ] 
root@testserver:~# /etc/init.d/smbd stop
Rather than invoking init scripts...<...snip...>
root@testserver:~# /etc/init.d/nmbd stop
Rather than invoking init scripts...<...snip...>
root@testserver:~# ps axu | egrep "(s|n)mbd"
root@testserver:~# /etc/init.d/nmbd start
Rather than invoking init scripts...<...snip...>
nmbd start/running, process 5161
root@testserver:~# /etc/init.d/smbd start
Rather than invoking init scripts...<...snip...>
smbd start/running, process 5170
root@testserver:~# ps axu | egrep "(s|n)mbd"
root      5161  0.0  0.0  60652  1924 ?        Ss   09:34   0:00 nmbd -D
root      5170  6.0  0.0  90740  4912 ?        Ss   09:34   0:00 smbd -F
root      5172  0.0  0.0  90740  1688 ?        S    09:34   0:00 smbd -F
root@testserver:~#
Now, when I try to access the share from an Ubuntu client, I get this error:

Code:
testuser@testclient:~$ sudo mount.cifs //testserver/testuser /home/testuser/mnt/testuser --verbose -o user=testuser,domain=MYDOMAIN,uid=1000,gid=1000,netbiosname=testclient,ip=192.168.4.173
[sudo] password for testuser: 
ip address 192.168.4.173 override specified
ip address specified explicitly
Password: 

mount.cifs kernel mount options: unc=//testserver\testuser,ver=1,user=testuser,domain=MYDOMAIN,netbiosname=testclient,ip=192.168.4.173,uid=1000,gid=1000,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
testuser@testclient:~$
It's a step in the right direction. Looks like the original problem, "mount error(11)...", has been solved -- or at least identified, since the *correct* solution is to fix the apparmor config. Now I need to fix the "mount error(13)..." problem.

Last edited by RWallett; 07-01-2010 at 01:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"fork: Resource temporarily unavailable" for certain user yoachan Linux - Server 6 01-06-2010 08:46 PM
"FUTEX WAIT EAGAIN (Resource temporarily unavailable )" jungbg Linux - Newbie 1 12-22-2009 05:07 PM
usb_bulk_read() - open error 11 Resource temporarily unavailable GSMD Programming 0 10-24-2006 01:07 AM
Cifs "mount error 11 = Resource temporarily unavailable" humbletech99 Linux - Networking 1 09-26-2006 12:04 PM
Sendmail Error Deferred: Resource temporarily unavailable shawnbishop Linux - Software 3 03-19-2006 01:00 PM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration