Hot answers tagged

37

Troubleshoot accessing a windows XP shared folder from Fedora: You are receiving the error: mount error(115): Operation now in progress Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) 1. Make sure Linux can ping the other box. Run this command on the linux box to the IP of the windows box: el@defiant /mnt $ ping 192.168.13.107 PING 192.168....


19

When setting up a share on a Windows 2012 server, I had to use: sudo mount.cifs //server/folder /path/to/folder/ -o user=username,password=pass,vers=3.0 Note the vers=3.0. Based on the suggestions below, you may need to try vers=2.0. The vers parameter is the key.


12

The error message is completely misleading, given the solution (for me anyway, I'm sure permissions problems might plague others, but in my case, this was a script that has always worked and a server that hadn't changed - only the client OS had changed). The solution for me was that the cifs-utils package was missing, as indicated by the missing file /sbin/...


10

I'd recommend mounting it via autofs. This is a service that will mount a directory on demand (for example if you cd into it or ls it) and unmount it automatically after a user defined timeout. Install the autofs package for your distribution (by the way, remember to include your distro in your questions since an answer's details may depend on it). Add the ...


10

On OS X, the filesystem plugin for CIFS/SMB is named smbfs, and its options are a bit different. I think it should be something like this: sudo mount -t smbfs -o -f=0777,-d=0777 '//KitchenLord;fegur@fs/CakeRecipes' /mnt/fs/CakeRecipes ...but in my quick test it doesn't seem to be obeying the -f and -d options. Anyway, check the man page for mount_smbfs for ...


9

Found it: the noperm mount parameter does exactly this: //192.168.56.1/www /mnt/www cifs noperm,username=www,password=xxx, ... Note that mount -a does not apply the parameter, you have to reboot to make it work. It took me a lot of trial and error to figure this out. Now chmod works fine, the command does not yield any error, and is just ignored.


9

sudo mount.cifs //3DS-3885/microSD -o user=3dsUser,password=3dsPass,ip=3dsIP,servern=3DS-3885,uid=linuxUser,gid=users,nounix,vers=1.0 mountPoint So I spent a while a few months back brute forcing every cifs option to try to get it to work and this is what I found that kind of works. The important option is "servern" When I say kind of works I mean it ...


8

how to proxy smb to a windows 10 client: short description with ssh n stuff for tunneling launch hdwwiz.exe network adapters -> Microsoft KM-TEST Loopback Adapter -> finish disable everything except ipv4 in that new network sink inside the ipv4 settings set up a ip, 255.255.255.255 as subnet mask and disable netbios if you cannot decide on an ip ...


8

I got it working with Microsoft's drvfs provider, as described in: https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/ sudo mount -t drvfs '\\server\share' /mnt/share Leave out the -o option with credentials, as it grabs those from Windows.


7

Try: mount -t cifs -v //NAS_SERVER/public/ /mnt/ -o username=user,password=pass,sec=ntlm The key is sec=ntlm


6

Adding more possible solutions to this problem This error message isn't very descriptive, but what it means is the operation has timed out. There are numerous possible reasons for this, and while researching this problem, I ran across some solutions that haven't been mentioned on this thread yet. 1.) Ambiguous Network It isn't often mentioned in the various ...


5

Hmmm, do you really want perm 777 on dir and files? You can specify your file and dir mode adn the uid and gid. To allow non-root mounting, try the "user" or "users" option for the mount (see man mount.cifs) e.g. //myNAS/nasmedia /media/nasmedia cifs noauto,users,_netdev,credentials=/etc/.smbcredentials,iocharset=utf8,uid=1000,gid=1002,file_mode=0774,...


5

Are you running SAMBA as server? Then look for "unix extensions" in "smb.conf" and enable them. https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#UNIXEXTENSIONS With "unix extensions" enabled, SAMBA supports hard links, unix ownership information and mode for files and directories (aka. permissions). However, this setting is a global setting....


5

Accoding to a forum the problem is with gvfs and cifs works much better. I am not familiar with these terms, but I can confirm that. By mounting the drive manually: mount -t cifs -o username=root,password=xxxxx //192.168.0.186/asmedia-hdd /media/asmedia-hdd I can achieve 10MB/s in Nautilus. The only problem that I don't have network discovery and I cannot ...


5

Use the multiuser mount option. Also enable the pam_keyinit.so and pam_cifscreds.so PAM modules. The latter will store the users' OS login passwords in the kernel, so that the cifs driver can use them to log in to the server. If the usernames or passwords don't match between client & server, pam_cifscreds won't work, but users can manually log in using ...


5

WSL has been under heavy development and it now supports mounting network shared folders: sudo mkdir /mnt/s sudo mount -t drvfs '\\192.168.x.x\Share' /mnt/s cd /mnt/s git init Old answer I'm actually answering your comment here: I'm looking for a solution or workaround to the issue (such as another program) that will allow me to run git inside a ...


4

By default, unless CIFS' Unix extensions are being used by both the client and server, files are owned by root (regardless of who owns them on the server.) Try adding the uid=your-user-id option to fix this. For more information, see the mount.cifs manpage.


4

Windows implements its shortcuts as .lnk files (typically you don't see the .lnk extension as it's one of the few extensions that remains hidden even if you tell the Folder Settings control panel to display them). When you use shortcuts in Windows, these files are read by explorer.exe to change the current folder when navigating through folders. Many Linux ...


4

First, you do the symbolic link with "mklink /d link_name folder_name(It can be an UNC name for a shared resource). Then, you do (on each client) "fsutil behavior set SymlinkEvaluation R2R:1" to enable remote to remote symbolic links. This only worked from Windows 7 onwards. It doesn´t work for XP.


4

To mount mount_smbfs //username@server.name/share_name share_name/ To unmount umount share_name


4

You should only need to forward port 445. In putty the local port should be loopbackIP:44445(or any other unused port) and the forward destination should be localhost:445 or 127.0.0.1:445. It worked for me follow the procedure in this link: http://how-to.cc/setup-windows-filesharing-over-ssh Note that all reference to the service 'smb' needs to be ...


4

For a given mount.cifs version, I don't know of a way other than adding vers=3.0 to the command line (or to /etc/fstab). The mount.cifs driver ignores smb.conf. Historically it seems mount.cifs could not auto-negotiate, and simply tried one protocol version - 1.0 until July 2017, and 3.0 after that. (July 2017 being the date of the code change to cifs 4.13, ...


4

There is a known bug with the version of Apache2 (2.4.25 Debian) I am using that serves the CIFS files in a funny manner causing the file corruption. For those using Apache2 you will likely be dealing with the httpd.conf file in your sites-enabled folder. In my Turnkey Django distro it is a file called django.conf within the sites-enabled folder but it is ...


3

After some tests and searching I find 2 options: Downgrade kernel to version 3.11.6 Launch git commands with sudo. (https://superuser.com/a/121854/275562)


3

To prevent OS X clients of changing permissions, you need to add unix extensions = no to the [Global] section of your smb.conf And/or add something like force security mode = 0660 force directory security mode = 02770 to your share definitions to preserve group-write rights.


3

Remove the "umask" option altogether, it is not a valid option with CIFS mounts.


3

Leave it to Windows to be the problem, NOT Linux. Solution was to change the sharing AND the security settings of the share to include the necessary permissions. Found a video here on you tube that was the final piece of the puzzle. Essentially you give both sharing and security permissions to "EVERYONE" on the drive you want to share (this probably is ...


3

Ubuntu and Gnome make it easy to access files on a Windows network share. Open the Places Menu, then click on Network. You will see a Windows network icon. Double-click to open it. The next window shows all the domains/workgroups found on your network. Inside each domain/workgroup, you will see all the computers on the domain/workgroup with sharing enabled....


3

In Windows Explorer, there is a Work offline command on the menu bar when viewing a folder or library that is redirected. This switches the partnership to offline mode, and the command becomes Work online. The status bar will report the online or offline status.


Only top voted, non community-wiki answers of a minimum length are eligible