Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
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.
|
|
01-13-2009, 05:49 PM
|
#1
|
Member
Registered: Aug 2008
Posts: 81
Rep:
|
SMB/Samba not working with CIFS.
I have a SMB server using Samba running on a Slackware 11.0 x86 computer, every other computer on the network (six different computers) can mount the network resource with the trivial command:
Code:
smbmount //10.0.0.180/smb_shared /mnt/mount_point
However, when I attempt to do this on a computer running a recent Slackware 12.2.0 (which is more recent than the rest of the computers, most of which run 11.0), I get:
Code:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
This also happened recently on a laptop on which I also installed Slackware 12.2.0.
I have tried to search on internet search engines for an answer -- I found many others with similar issues, however with no proper answer, I also tried to study the man-page, the configuration file, I tried different commands, to no avail, how can I mount this resource? Why doesn't it work?
|
|
|
01-14-2009, 11:11 AM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
SMB is now depreciated, new Samba installations are supposed to be using CIFS. While I can't say for sure (I don't have a Slackware 11 machine to test on), my first thought would be that the Slackware 11 package for Samba is not configured for CIFS, or at least, it just isn't enabled. Not necessarily something that is Slackware-specific, but just something that was handled different in the older Samba releases.
My first step would be to try manually mounting the share as SMB rather than CIFS with a command like:
Code:
mount -t smbfs //10.0.0.180/smb_shared /mnt/mount_point
If that works, then you know there is a problem with the CIFS implementation on the server. At this point your choices would be to simply use SMB (which is slower and not as flexible), or get CIFS working. The best way to get CIFS working would be to upgrade Samba on the server, but for that you are going to have to build a new version and that might be more trouble than it is worth to you.
|
|
|
01-14-2009, 02:20 PM
|
#3
|
Member
Registered: Aug 2008
Posts: 81
Original Poster
Rep:
|
Quote:
Originally Posted by MS3FGX
SMB is now depreciated, new Samba installations are supposed to be using CIFS. While I can't say for sure (I don't have a Slackware 11 machine to test on), my first thought would be that the Slackware 11 package for Samba is not configured for CIFS, or at least, it just isn't enabled. Not necessarily something that is Slackware-specific, but just something that was handled different in the older Samba releases.
My first step would be to try manually mounting the share as SMB rather than CIFS with a command like:
Code:
mount -t smbfs //10.0.0.180/smb_shared /mnt/mount_point
If that works, then you know there is a problem with the CIFS implementation on the server. At this point your choices would be to simply use SMB (which is slower and not as flexible), or get CIFS working. The best way to get CIFS working would be to upgrade Samba on the server, but for that you are going to have to build a new version and that might be more trouble than it is worth to you.
|
Thanks for the idea but I had already tried that (including other commands, such as giving it various user names with associated passwords), to no avail -- same error as written in the start of the topic.
|
|
|
01-14-2009, 02:29 PM
|
#4
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
Can't speak for slackware as I haven't used slackware in a few years. But on my CentOS 5.1 servers I have the following samba software installed
samba-common-3.0.28-0.el5.8
samba-3.0.28-0.el5.8
samba-swat-3.0.28-0.el5.8
samba-client-3.0.28-0.el5.8
the samba-client package provides /sbin/mount.cifs
I have a samba mount to a windows machine using a credentials file. You can also do it via command line either way
mount.cifs //location/to/windows/share/ /mnt/foldername -o user=username,password=password
username and password would be an account on the domain or the windows machine
I also use it this way with the credentials file
mount -t cifs -o credentials=/path/to/credentialsfile //location/to/windows/share/ /mnt/foldername
Or the 3rd way would be to add it to /etc/fstab
//windows-server/mount /mnt/folder cifs credentials=/path/to/credentialsfile 0 0
credentials file would be:
username
password
again, not sure if this will work on slackware but its how I mount cifs mounts on a CentOS box.
|
|
|
All times are GMT -5. The time now is 02:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|