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

learn more… | top users | synonyms

20
votes
4answers
598 views

Linux solution for schools?

The school I'm working for as an administrator requested a system upgrade. Currently we are using a government-suggested Linux distribution called SuliXerver - it would be great, but most of the admin ...
14
votes
3answers
31k 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
1k 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
1answer
11k 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" ...
9
votes
2answers
2k 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
2answers
6k 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
34k 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 ...
6
votes
2answers
9k 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 ...
6
votes
2answers
5k 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
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
1answer
8k 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 ...
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
1answer
478 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 ...
5
votes
3answers
8k 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: ...
5
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 ...
5
votes
1answer
10k 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 ...
5
votes
1answer
945 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
668 views

Preventing access blocking while external HDD spins up? [on hold]

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
658 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
147 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
3answers
2k 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 ...
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
1k 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
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
91 views

Fedora 20: Users cannot enter their home directory

Running Fedora 20 on a file server and ran into this strange issue, not sure what I'm doing wrong. The account I made while installing the OS works fine, but every other account I made has this ...
4
votes
1answer
147 views

How do I share a mounted sftp drive?

My friend has a public server that he's given me read access to with SFTP. I've successully mounted it in Mint 17 with the command sshfs user-name@file-server:/location/I/want /mount/point/I/want -o ...
4
votes
1answer
2k 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
465 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
302 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
2answers
3k views

Deleting a samba user: pbdedit vs. smbpasswd, what's the difference?

What is the difference between $ pdbedit -x and $ smbpasswd -x to delete samba users?
4
votes
1answer
414 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
758 views

Samba set share browsable only for a group

How I can configure samba to set browsable a share for a group only. I wanna hide the share for all other users, if a set browsable to yes all the users can see the share when explore. I don't want ...
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
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
559 views

How to set up an encrypted directory to be mounted only during samba access?

(This is not about restricting client access, for which ext3 permissions do the trick) I'd like to encrypt the data on my NAS drive (Buffalo LinkStation Pro with SSH access enabled, if that matters) ...
4
votes
0answers
883 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
1answer
3k views

How do I resolve samba share to IP address or host name

I have a list of hosts in the network providing shares via SAMBA. How can I determine either IP address or the host name of one particular host, e.g. the one with the name “SASAK02”. The output of ...
3
votes
4answers
451 views

Transfer files between Windows and Linux machines?

My problem is that I need to backup the files on my Linux machine to my Windows laptop. My external hard drive died, and so backing up to an external drive is out of the question for the time being. ...
3
votes
2answers
2k 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
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
3answers
983 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
412 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
6k 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
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
6k 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 ...