A free software re-implementation of the SMB/CIFS networking protocol, which provides Windows file and print services.

learn more… | top users | synonyms

13
votes
3answers
26k views

CIFS vs SAMBA, What are the differences

What are the differences between CIFS and SAMBA? When would you use one over the other? Are there any performance differences between the two?
10
votes
1answer
923 views

Permission bits not being enforced on samba share

I have a problem where permission bits are not being enforced on a samba share using a Linux client. I have samba configured on the server to force a certain user, group and permission bits and this ...
9
votes
2answers
1k views

“Only root can mount” error - but I am root

Yesterday I was able to mount my smb share with the following command: sudo mount -t cifs //XXXX/share /media/share -o user=Ben,password=XXX,workgroup=WORKGROUP,ip=XXX.XX.XX,uid=ben,gid=ben,rw I ...
7
votes
1answer
8k views

mount -t cifs: “Operation not supported”, but can connect via smbclient

After sysadmin replaced the NAS, I can no longer mount the network share with sudo mount -t cifs //netgear.local/public /media/mountY -o uid=1000,iocharset=utf8,username="adam",password="password" ...
7
votes
2answers
5k views

Samba mount with password prompt as non-root user

I want to mount a password-protected SMB share (served by a Windows machine). The share is protected by a user name and password, and I may not write the password in a file, I want to be prompted for ...
6
votes
2answers
28k views

How can I easily configure samba share in Debian Wheezy?

I have just installed a new Debian Wheezy and I am trying to create a new share. I am using KDE 4, and there in the folder preferences menu I found option to share the folder with Samba - it doesn't ...
5
votes
3answers
5k views

How to cd to a Windows file share?

At work, I spend a lot of time manipulating files on a networked computer that's running SME Server (but that's set up for Windows filesharing, if that somehow makes a difference). I have been ...
5
votes
2answers
1k views

Copy from linux to windows every minute

I currently quickly setup a way to copy files from my linux machine to a windows share that multiple people can access, but I'm looking for a better way. In Windows 7, I made a folder accessible to ...
5
votes
2answers
1k views

How do I test hardware components to find out which one is bad?

Question How do I test hardware components to find out which one is bad? Details I have an old machine running debian as a file server using samba. The other day I was unable to login to my file ...
5
votes
1answer
1k views

Automatically mount network drive when available

I have a NAT drive, that is accessible via SMB. I have an entry in fstab to mount it at boot. But if the drive is not switched on it is not mounted during boot and I have to manually mount later. (The ...
5
votes
2answers
7k views

How do you make samba follow symlink outside the shared path

This is ubuntu server 10.04 64 and samba 3.4.7 I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one: ln -s /home/temp /home/mit/share/temp But on ...
5
votes
1answer
4k views

smbclient fails with message 'protocol negotiation failed: NT_STATUS_INSUFFICIENT_RESOURCES', what does it mean and how to fix it?

I'm trying to access a Windows share with smbclient and I'm getting this NT_STATUS_INSUFFICIENT_RESOURCES error, regardless of correct or incorrect credentials. The command was about listing the ...
5
votes
1answer
853 views

Allow su without password for users in a particular Active Directory group when using pam_winbind

I know on my Gentoo system, the /etc/pam.d/su file comes with the following commented out: auth sufficient pam_wheel.so use_uid trust Which allows a user to su to root without a password as ...
5
votes
1answer
572 views

Preventing access blocking while external HDD spins up?

I have an old laptop where I installed Debian along with a samba server which I am using to share read-write access to 4 external hard drives, which I use to stream my media from. All works fine, ...
5
votes
2answers
559 views

Create Temporary Samba Share

Is there a possibility to temporarily share a directory per Samba? With python3 i can serve the current directory per HTTP using: python -m http.server. I'd like to do the same thing with Samba.
4
votes
2answers
143 views

Where did 47gigabytes of space go?

Clean installation od Debian squeeze 6.0.6 x64 on intel atom 230, with 3 HDDs, with 3x500GB. df -h shows : datastore size used free % mounted /dev/md0 917G 909M 870G ...
4
votes
1answer
1k views

Changing a file's “Date Created” and “Last Modified” attributes to another file's

I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's ...
4
votes
2answers
2k views

Do CUPS clients need to have drivers installed locally?

If I use CUPS, should clients have drivers installed locally? Example: say we have 1 Networked PC with Linux, 1 Print Server (or CUPS, Samba Print server) If the Linux PC wants to print a document ...
4
votes
2answers
912 views

Network file sharing between Linux and OS X

I want to share a drive/folder over the internet from my Debian machine back home, such that I can mount it on my Macbook when I am on the move. Basically I want to store my music at home and just ...
4
votes
2answers
1k views

cifs write errors in cron job

EDIT: THE SOLUTION With Tim's help I determined that larger writes of data were failing versus smaller ones. Why they didn't fail when I ran the script interactively, I don't know...But here was the ...
4
votes
2answers
1k views

Why is mount.cifs not installed suid by default?

I am using Gentoo, and on my machine at least mount.cifs is not installed suid root by default. In particular, this means that I can't use the user mount option with CIFS shares. I noticed that ...
4
votes
1answer
2k views

How can I log samba events?

How can I log samba events? I have samba-shared directories and I want to know what exactly someone have download from it. Actually, I can watch iftop to figured out WHO have downloaded, but not ...
4
votes
5answers
5k views

What sudoer spec allows users to mount cifs shares?

I'm trying create a line in /etc/sudoers that allows members of group "users" to mount cifs shares anywhere inside their own home directory. In my first attempt I tried: %users ALL=/bin/mount -t cifs ...
4
votes
1answer
465 views

Can't mount samba share

I'm trying to mount a samba host located at 192.168.2.5. I can ping the host, I can open the share on Ubuntu and windows (with the credentials). When I try to manually connect: ...
4
votes
1answer
433 views

Why is my CIFS share showing the same files multiple times?

I asked this on ServerFault but received no response, so I figured I'd give it a try over here instead! I have a Debian backup server running the FreeBSD kernel and a ZFS filesystem on which I store ...
4
votes
1answer
268 views

How can I find out what my domain is for connecting with samba?

I am attempting to mount a password protected network share from a NAS unit that works by appearing as a windows share. On Windows, I just Map Network Drive, and enter in \\x.x.x.x\ShareName, then ...
4
votes
1answer
1k views

Default username for Samba share that is not the user name on the client system

When mounting a Samba share the user name is defaulting to the user name from the client machine rather than the "User Name" field from the earlier "Connect to Server" dialogue. Accessing a Samba ...
4
votes
1answer
5k views

Samba share permission denied user writing file but still shows

Very strange issue... Samba share on remote: [javaerpm] path = /u/abas/erpm/java force user = erpm guest ok = yes read only = no writeable = yes Mount command on local using ...
4
votes
1answer
1k views

Password expiry in Samba v3.0

I'm trying to setup a Samba server which asks new users to change their password on their first login and makes passwords expire after 90 days. I was able to setup the 90 days expiry date but the ...
4
votes
1answer
283 views

Windows Changes File Permissions in Samba File Shares

I have mounted an external USB drive that is used for file shares on CentOS. All of the clients access the shares are Windows XP or 7. Within Windows, I use the "Manage your credentials" feature in ...
4
votes
1answer
1k views

Samba passwords expiring in x days - how do we fix them to not expire

We use OpenLDAP and Samba v3. Recently some Samba-defined users (no accounts on the shared linux server) started being listed in logwatch as having their passwords come up to "will expire"...I ...
4
votes
0answers
770 views

Automounting not working correctly for CIFS shares; weird results

I followed the guide on this page to get samba shares working via autofs: http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs Servers and Configuration My Samba server (remote) ...
3
votes
3answers
1k views

How to get list of computers similar to what is shown under “Network” in Windows

In Windows 7 when I click on Network I get a list of computers with the same workgroup of mine. But in Fedora when I click on Network I just get a single item Windows Network and I can't see the ...
3
votes
1answer
2k views

Connect Windows printer to Linux machine via samba

How can I connect my Windows printer to a Linux (RHEL5) box via samba? I'm looking for a clear configuration file
3
votes
1answer
78 views

directory changes permission when mounted

I want to mount a samba sghare to a directory in my home dir. I have created it but mount the share as root. Upon mount, the owner of my dir changes to root and my user doesn't have permission tow ...
3
votes
3answers
896 views

Getting Linux computer integrated with Windows domain

I've tried to figure it out for several months, with no success. I have a Windows 2008R2 domain, and one Linux server (first it was Fedora 15, then 16, and now it's Centos 6.2). I am trying to make it ...
3
votes
3answers
401 views

File sharing with Windows

I have a small home network consisting of two computers. One is running Windows 7 and the other Ubuntu 10.04. Neither computer is permanently on. I am trying to set up file sharing between the two. ...
3
votes
2answers
3k views

How to mount a windows/samba windows share under Linux?

Under Linux (Ubuntu 12.04) I want to mount a windows share / windows partition named //winshared on the network. I do not know the IP or anything else. On one Ubuntu system, I am able to mount a ...
3
votes
2answers
1k views

Proper way to mount samba share

I would like to mount a CIFS network filesystem with samba on my Arch Linux system. I would like to mount this filesystem whenever I log in (either through ssh, a TTY, or through KDM). I can get ...
3
votes
3answers
6k views

How to remove kernel module if it's still in use?

[rootSERVER ~]# rmmod -f cifs ERROR: Removing 'cifs': Resource temporarily unavailable [rootSERVER ~]# modprobe -r cifs FATAL: Module cifs is in use. [root@SERVER ~]# lsb_release -a LSB Version: ...
3
votes
1answer
4k views

smbpasswd failed for new Samba install on fresh Ubuntu 11.04

I've installed Samba on a fresh Ubuntu install. I run the command sudo smbpasswd -a someuser New SMB password: Retype new SMB password: Failed to add entry for user someuser. I've read that you ...
3
votes
1answer
5k views

Mount samba filesystem into RHEL 5.5

I have a trial RHEL version for a proof of concept where I was asked to mount a windows filesystem into linux. I tried mount -t smbfs -o username=samba,password=samba //Desktop/Public /mnt/public ...
3
votes
1answer
22 views

Force new permissions on files after rsync from seedbox

I have a seedbox-account which I use for torrenting. I have set up a cron job that uses rsync to download all files from the seedbox to my 14.04.1 ubuntu server. The download folder is a samba share, ...
3
votes
1answer
548 views

fstab does not mount cifs at startup

I'm using Cent OS 6.5. I have a cifs share which needs to be automatically mounted at the system reboot/startup. Following is the line from my /etc/fstab file : //192.168.1.2/files/ /users/ cifs ...
3
votes
1answer
1k views

Sharing Ubuntu drives with Windows

I'm new to the whole Linux thing. I have a Linux server up and running and have been using this guide as a help. I have an issue with shared drives. My Windows machines can see them but cant write to ...
3
votes
1answer
326 views

How can I get high-precision timestamps (better than 1s) with Samba?

I did a quick test and got the results below. Whats with the horrible time resolution? Is there a way I can make it better? creation 129971441605098285 mod 129971442166583272 a.ToFileTimeUtc() ...
3
votes
2answers
3k views

Is there a command in Linux to query a hostname from WINS server

Someone suggested the command nmblookup. But when I ran this command, it issued the following error. $ nmblookup -U 10.140.8.106 -R 'name' querying name on 10.140.8.106 name_query failed to find name ...
3
votes
1answer
714 views

Auto mount cd or dvd on CLI based ubuntu server

I am using Ubuntu server as a samba server. The solution I am looking for is whenever the disks are inserted (cd or dvd) they should get auto-mounted to /cdrom directory. Are there any tools for ...
3
votes
1answer
691 views

Change default for Nautilus (file_manager) from “Forget password immediately”?

When opening a tab which needs to mount a Samba share, Nautilus 2.30.1 displays a window: Password required for share xxx on localhost Password: [ ] (*) Forget password immediately ( ) ...
3
votes
1answer
1k views

From Ubuntu 10.10, how do you connect to a Windows 7 share without a password setup?

I have: Ubuntu 10.10 Windows 7 in virtual box (let's call this vbox) Then another Windows 7 machine (let's call this remote) in the network When I'm on vbox and browse (\ip.of.remote) I'm able to ...