The Common Internet File System (previously known as SMB) is a layer 7 networking protocol providing file and device sharing across local networks. It was originally designed and implemented by Microsoft as part of the Windows operating system.

learn more… | top users | synonyms

3
votes
1answer
491 views

How to display windows group membership and Permission access in a CIFS mount

I have a CIFS mount point to a Windows Server from my Debian Linux box: mount -t cifs //192.168.0.10/users /mnt/users -o credentials=/etc/demo.smbpass It mounts properly but all the permissions of ...
2
votes
6answers
2k views

Bash shell snippet to check if mounted Samba share is not busy

#!/bin/sh mount -t cifs //192.168.5.90/share -o password='' /mnt/tera_nas rsync -av --super --delete --recursive /home/ /mnt/tera_nas/home/ # sleep 5m (i want to avoid using this) # Bash shell ...
2
votes
3answers
21k views

Disable Windows 2003 File Sharing

What's the best way to temporarily disable the Windows 2003 File Sharing service(s)? Sorta like the equivalent to shutting down Samba on a Linux box.
2
votes
1answer
237 views

How efficient is a file move on the same fileshare?

From a windows208r2 client connected to a SMB/CIFS share, I move a file from one directory to another directory on the same network share. Does windows send a "move" command to the share, or does ...
2
votes
1answer
12k views

How do I pass credential file to mount.cifs?

I'm maintaining a heterogeneous network of mac and linux so I decided to create a little perl script to unify mounting strategies across machines. The current implementation in linux is in /etc/fstab ...
2
votes
2answers
46 views

Backup maildir to windows cifs share

How can I incrementally backup a maildir to a cifs share without creating a full image each time? I have dovecot running with some large mail accounts. The only backup available is on a Windows ...
2
votes
2answers
397 views

Partions, RAID, LVMs, and Encryption

I have an existing production server that is running 4 drives each 750 GB in size in two software RAID levels. RAID 1 for the /boot partition and RAID 5 for the rest of the partitions including the ...
2
votes
1answer
5k views

CIFS mounted drive setting “stick-bit” on all files, cannot change permissions or modify files

I have a folder mounted on an Ubuntu 8.10 sever through cifs that I simply cannot change the permissions on once mounted. Here is a breakdown of what's going on: All files within the mounted ...
2
votes
1answer
3k views

Using same drive for iSCSI and SMB share under FreeNAS

I'm setting up a new FreeNAS server this weekend with pretty good success, but I am stuck on one last issue. Right now I have 2x 1.5 TB drives that I want mirrored (I was planning Software RAID 1) ...
2
votes
1answer
3k views

CIFS mount in fstab succeeds on IP, fails on hostname written in /etc/hosts

I wonder why my Ubuntu Server 14.04 LTS has problems resolving a hostname from fstab. I tried to mount the following entry: //NAS-5h2-20/backuppc/ /mnt/backuppc cifs ...
2
votes
2answers
7k views

How to mount Windows share on boot using mount.cifs and autofs/automount?

I'm having some trouble mounting a network share using autofs. I have added the following line to /etc/auto.master: /mnt/mountpoint /etc/auto.servername I then created the file ...
2
votes
1answer
1k views

CIFS(Samba) + ACL = not working

I have two servers with Debian 5.0. server1: samba 2:3.2.5-4lenny9 smbfs 2:3.2.5-4lenny9 smb.conf: [test] comment = test path = /var/www/_test/ browseable = no only guest = yes ...
2
votes
2answers
572 views

network endpoint accessible via hostname only, not address?

someone told me that this piece of network hardware (netapp NAS) has a security setting such that it can only be accessed by hostname, not by IP address. I don't understand, as I thought DNS resolved ...
2
votes
2answers
3k views

Windows file explorer using port 80 (webdav) instead of 445 (samba smb cifs) for UNC path

I have a Windows 7 Ultimate x86_64 machine, which is failing to access a network samba server. I launch the "Run" dialog, and type in \\192.168.x.x so I am bypassing DNS and NetBIOS name resolution, ...
2
votes
2answers
1k views

rsync fails with error: Cannot stat destination… cannot allocate memory (12)

I am trying to rsync some directories on my linux server to a Windows 7 share mounted locally on the Linux server at /mnt/backups. My rsync command looks like this: rsync -avz --progress --partial ...
2
votes
2answers
8k views

Mount a Windows DFS Namespace in Linux

I've got a Windows DFS setup with a few namespaces, and I need a way of accessing them via CentOS. Any ideas? I've had a look at CIFS mounting, but it won't support the namespace (each separate ...
2
votes
1answer
2k views

What ports are needed for a Windows XP client to acces a folder on a SAMBA server?

Wikipedia mentions only TCP port 445 (while as far as I can remember ports 137-139 used to be used actively by Windows file sharing). If I map the 445th TCP port on gateway host "A" to a 445th TCP ...
2
votes
1answer
547 views

SMB 3 encrypted over internet

SMB 3 offers an option to enable encryption. Does that mean it would be a possible option to let people use SMB over the internet or are there other not securable aspects about SMB left? What extra ...
2
votes
2answers
920 views

CIFS Mounting Permissions

I have an issue that I;m going round in circles with, I hope you can help. The Set up: Server 1 (CIFS Client) - CentOS 6.3 AD integrated uing Samba/Winbind & idmap_ad Server 2 (CIFS Server) - ...
2
votes
1answer
3k views

ldap-authentication without sambaSamAccount on linux smb/cifs server (e.g. samba)

i'm currently running samba-3.5.6 on a debian/wheezy host to act as the fileserver for our department's w32-clients. authentication is done via OpenLDAP, where each user-dn has an ...
2
votes
1answer
2k views

Reconnect Attempts for CIFS share

I have a CIFS share mounted in the FSTAB on Ubuntu server, which connects to our NAS and works without issue. Last night we had an issue with the SAN for about 12 hours. We corrected the problem and ...
2
votes
1answer
757 views

Intermittent logon failures or lock out failures when under high impersonation load

Recently we've been seeing an interesting slew of failures on our cluster where users' jobs will intermittently fail with logon errors, account locked out errors, or file permission errors. Our ...
2
votes
1answer
2k views

GVFS Locations Not Available In ~/.gvfs

So, I can mount GVFS locations correctly (specifically CIFS) either from the Gnome "Places" menu, or via the command line gvfs-mount, but the filesystem is not mounted in the expected location; ...
2
votes
1answer
5k views

How to map Windows ACL to Linux ones on a CIFS share?

Context We have a Windows server with an Active Directory domain and a network share. I have a Linux machine and I want to mount the share. sudo mount -t cifs //server/share /mnt/share -o ...
2
votes
3answers
558 views

PHP-CLI cannot execute scripts on Samba Share (using cifs) inside a guest VM (Centos 6)

I have a centos 6 VM running as a guest within Virtualbox. I've set up a LAMP stack which I am able to access from the host (Windows) environment. I've mounted a SMB share using 'mount -t cifs' and ...
2
votes
1answer
234 views

How I can prevent multiple mountings?

I have a Ubuntu Server, a NAS, and I am using CIFS protocol to mount. I ran into a situation where I had repeats of the same mount. The below is the output of me running the mount: //10.0.1.38/FOO ...
2
votes
2answers
1k views

Monitor and copy file changes on Windows Server 2003 over NFS or CIFS to *nix

Machine A, Windows Server 2003. Machine B, Ubuntu 9.04. Aim is to copy new and updated files only automatically as fast as possible from A to B. B can mount A either as CIFS or NFS (Services for Unix ...
2
votes
1answer
773 views

Recursively traverse a directory?

On Linux, how would I recursively traverse a variable number of shares?
2
votes
1answer
70 views

Windows 7 versus 8 Access CNAME'd Share

Here's a situation that came up yesterday: we have a share on a machine we have to access using an alias (CNAME). The machine is running Windows Server 2012 R2, and services Windows 7 and 8 clients. ...
2
votes
0answers
24 views

Rsnaphost “works” when tested but not when run

I have set up rsnapshot successfully a couple of times, and maybe because everything was rather painless (except for the vi tab fiasco of 2013) I am now out of ideas. I have a cifs mounted remote ...
2
votes
1answer
639 views

Premature SMB/CIFS Session Close (System error 1312) with Password on SMBv2

In attempting to issue a "net use" to a NetApp share, I'm experiencing a very unique situation. A particular user is required to issue scans across a CIFS, however that user (which has full ...
2
votes
0answers
510 views

cifs Required Key Not Available

I have joined to a zentyal domain (AD Domain) using PowerBroker IS and I want it to mount my remote home directories when a remote user logs in. this is the config for PBIS: AllowDeleteTo "" ...
2
votes
0answers
637 views

NFS export CIFS share

I have a server 192.168.1.1 where a samba share is mounted to /image I would like to setup an NFS sever on this machine to share the mounted /image folder through NFS. When I add it to the exports ...
2
votes
0answers
1k views

Mount Windows 7 share using mount.cifs: Symlinks staying inside the share cannot be created

We have multiple Windows systems using Windows 7 (64bit). For web development, we want a project workspace directory that can be shared with a VM (Oracle VirtualBox). The solution included in ...
2
votes
1answer
906 views

Filename encoding switched to UTF-8 by tar when untaring to Windows share

We have different Magento installations (webshop) that allows images to be added to a product freely. When an image is added to a product, the file is named in a specific way that sometimes ...
2
votes
3answers
688 views

Automate mounting a persistant CIFS drive natively on Windows.

Trying to create a script to automate mounting CIFS shares as drives on windows 2008/2012 server. The share requires a login (Unfortunately, AD can not be used) and needs to be mounted as a ...
2
votes
1answer
5k views

How to setup shared folder as virtual directory in IIS 7.5 (cross-domain)

This is my current understanding of how this should be done: (TL;DR for the actual problem, please see the bold text.) Create a folder on you storage server, henceforth known as B. Create a local ...
2
votes
1answer
468 views

ZFS CIFS shares, clients can't see mount points of other shares in root folder?

I'm in the process of migrating data from a Win2k3 file server to a box running Solaris. All was going well until I started coming across nested shares. An example of this is a share that the ...
2
votes
1answer
329 views

NTFS network file copy hangs on +R attrib files / Server 2008 R2

I have encountered at least two server 2008 R2 machines that were recently built that exhibit identical behavior. When using explorer to copy a folder of files from or to the affected host, any file ...
2
votes
1answer
131 views

How to check which user a share was mapped as

I am using net use to map shares on a windows machine to Red Hat Linux using Likewise CIFS. I was wondering if there is a way to check which user a particular share was mapped as. I desire this ...
2
votes
0answers
1k views

How can I improve performance over SMB/CIFS for an application that has poor write speeds?

I have a third party application that reads several large files and generates a third large file. Its performance is quite good when the generated file is stored on "local storage", i.e. either a ...
2
votes
0answers
314 views

Why do I have to remount an smb share if I want to recreate a directory?

Suppose I have an SMB share mounted somewhere in a Linux filesystem. If I do this (from within the mounted share): rm -rf some-directory mkdir some-directory ls -a some-directory some-directory is ...
2
votes
1answer
927 views

EMC Celerra and Access-based Enumeration

I have a few CIFS shares for Windows on our Celerra, and I've run the EMCABE tool (in enable mode) on one of our CIFS virtual servers. When I check if ABE is enabled using the same tool, it comes back ...
1
vote
3answers
4k views

Allowing a user to mount a samba share from fstab

I am unable to get mount.cifs to respect the user flag passed to mount. The entry in /etc/fstab is //10.0.1.205/rm /home/robert/remote/rm cifs ...
1
vote
3answers
2k views

How to empty Samba network cache on Linux server?

One of our Linux servers (Debian 5) uses Windows shares mounted via cifs. Each time, when the credentials are changing due to security policy, shares begins to be inaccessible for several hours, or ...
1
vote
3answers
314 views

Is Samba good for anything in a pure Unix/Linux network?

I'm learning for the LPIC exam which includes a section about Samba. I'm asking myself, whether there is any meaningful or useful application for Samba in a pure Unix/Linux network without any Windows ...
1
vote
2answers
2k views

Where are the Kerberos time outs in Windows 2008R2?

We have a DFS share that redirects users to a EMC CIFS share. Several end users are unable to access it and get the following Kerberos Security warning: The System Detected an attempt to ...
1
vote
3answers
1k views

Sync Large File Shares

What is the best way to sync large sets of files between to geographically separate locations so that both locations have the same file? We have a constantly changing 500gig file share in Location1 ...
1
vote
3answers
4k views

Auto-mounting a windows share on Linux AD login

I've managed to configure my test Ubuntu 10.04 Beta 2 Server VM to accept logins (via ssh) from users who have domain accounts in active directory via Kerberos, nsswitch.conf and PAM configurations. ...
1
vote
2answers
4k views

NetApp filer - resetting NTFS permissions with fsecurity?

I have a NetApp filer, with a CIFS export. The permissions have been locked down on it, to a point where it's no longer accessible. I need to reset the permissions on this - I've figured out I can ...