Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.