SlackwareThis Forum is for the discussion of Slackware Linux.
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'm having a strange mount problem. First some background. The computers involved are in a university laboratory and there are four Windows machines (both XP and Win7) and two Linux machines. For discussion purposes I will refer to three of the the computers. A and B are the Linux boxes, both running Slackware 14.2 and regularly updated, and C is one of the Windows machines. The Windows computers are on an internal network that is not visible from the outside and the Linux machines are connected to both the internal network and the campus network. Each Linux box's purpose is to back up data from the Windows computers.
Machine A has been up and running for about ten years with very little in the way of problems. It is setup so that at regular intervals it will mount a Windows machine in a local directory and then rsync that folder with the local storage folder. It then umounts and moves on to the next Windows machine. Very reliable. Users can then access their data anywhere on campus via Samba shares. No password is required but the shares are read only.
Machine B, a new Linux computer, is set up pretty much the same as B as far as I can see. The only difference is that this computer is intended for use as a backup machine for proprietary data which needs to not be freely available. It's running Samba too but here users need to supply a password to get in and access is restricted to a particular subnet on campus. Otherwise, it's not much different from machine A. Here again, the intention is to mount a Windows share in a local folder and then rsync. This is where the problem occurs.
The mount command I'm using is:
mount -t cifs -o username=fbr1\\xxxxxxxxxxx,password=xxxxxx //192.168.1.100/data /fbr1
(I know from reading posts online about this that I probably should be using -o credentials= but for now I'll keep it the way that it is working and change later)
The mount command above works fine on A but not B. On B I get:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
No firewall is running on the Windows computer and iptables is not being used on either A or B.
I can smb into C using Dolphin from either A or B. smbclient //192.168.1.100/data -U xxxxxxxxxxx works on both A and B.
Why the observed difference in mounting between A and B?
I'm having a strange mount problem. First some background. The computers involved are in a university laboratory and there are four Windows machines (both XP and Win7) and two Linux machines. For discussion purposes I will refer to three of the the computers. A and B are the Linux boxes, both running Slackware 14.2 and regularly updated, and C is one of the Windows machines. The Windows computers are on an internal network that is not visible from the outside and the Linux machines are connected to both the internal network and the campus network. Each Linux box's purpose is to back up data from the Windows computers.
Machine A has been up and running for about ten years with very little in the way of problems. It is setup so that at regular intervals it will mount a Windows machine in a local directory and then rsync that folder with the local storage folder. It then umounts and moves on to the next Windows machine. Very reliable. Users can then access their data anywhere on campus via Samba shares. No password is required but the shares are read only.
Machine B, a new Linux computer, is set up pretty much the same as B as far as I can see. The only difference is that this computer is intended for use as a backup machine for proprietary data which needs to not be freely available. It's running Samba too but here users need to supply a password to get in and access is restricted to a particular subnet on campus. Otherwise, it's not much different from machine A. Here again, the intention is to mount a Windows share in a local folder and then rsync. This is where the problem occurs.
The mount command I'm using is:
mount -t cifs -o username=fbr1\\xxxxxxxxxxx,password=xxxxxx //192.168.1.100/data /fbr1
(I know from reading posts online about this that I probably should be using -o credentials= but for now I'll keep it the way that it is working and change later)
The mount command above works fine on A but not B. On B I get:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
No firewall is running on the Windows computer and iptables is not being used on either A or B.
I can smb into C using Dolphin from either A or B. smbclient //192.168.1.100/data -U xxxxxxxxxxx works on both A and B.
Why the observed difference in mounting between A and B?
Not running Slackware right now, but this addressed the issue for me:
Code:
/usr/bin/mount -t cifs -o dir_mode=0777,file_mode=0777,sec=ntlm,username=<USER NAME HERE>,password=<PASSWORD HERE> //10.10.2.2/Backup/ /mnt/svr2
Adding the 'sec=ntlm' part is what got it for me. Your mileage may vary. From what I remember (it's been a bit since I did this), it's a Windows-related issue (surprise).
New B computer with new ethernet cards and cables. Same problem. A can mount Windows shares. B can't. Both A and B are as much the same as I can make them down to exactly the same config files for samba, sshd etd.
Thanks kjhambrick. I had already tried most of your suggestions without any luck. I did attempt to use the "ver=" option as you suggested but again, no luck. Still complains about permissions. The thing that I really don't get is that in many, many years of using Linux and Windows computers side-by-side I've never seen this happen before.
Edit: BTW, the Windows machines are all on a local network and are not connected to the internet and so are not regularly updated.
Last edited by thirteen_engines; 06-30-2017 at 09:56 AM.
Reason: additional information
Got it! It turns out that for computer B it is necessary to use "mount -t cifs -o domain=fbr1,username=xxxxxxxxx,password=xxxxxxx //192.168.1.100/data /fbr1"
Thanks Bob. Just tried using domain=fbr1. No luck. I'm still getting the same error.
Quote:
Originally Posted by thirteen_engines
Got it! It turns out that for computer B it is necessary to use "mount -t cifs -o domain=fbr1,username=xxxxxxxxx,password=xxxxxxx //192.168.1.100/data /fbr1"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.