For a long time, I've had a share set up on my Samba server (Ubuntu 14.04) that gives me read/write access to /. (It's a machine that does Yocto Linux builds, nothing proprietary on it.) I routinely accessed it from a couple of Win7 boxes and one Mac. A few days ago, I installed some Ubuntu updates, and suddenly the share stopped working. I could open the machine, and I could open the share and see all the first level directories and a few files, but I'd get an error like "Windows cannot access \\BUILD\all\home" when I tried to open the home directory. I get analogous errors on the Mac, too. I tried adding "force user = root". I tried "smbpasswd -a root" to supply the root password. I tried adding "valid users = root". If I share anything other than /, then it works fine. What could have changed all of a sudden? Was there a global policy change in Samba that rules out sharing /, that suddenly appeared in that fatal update? Here's my smb.conf (with the printer stuff and comments stripped): [global] workgroup = WORKGROUP netbios name = BUILD server string = %h server (Samba, Ubuntu) name resolve order = lmhosts wins bcast hosts dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user usershare allow guests = yes [all] comment = Everything read only = no path = / browsable = yes create mask = 755 force user = root valid users = root The last two lines weren't there when it last worked. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com
On Fri, Jan 29, 2016 at 03:47:52PM -0800, Paul D. DeRocco wrote:> For a long time, I've had a share set up on my Samba server (Ubuntu 14.04) > that gives me read/write access to /. (It's a machine that does Yocto > Linux builds, nothing proprietary on it.) I routinely accessed it from a > couple of Win7 boxes and one Mac. A few days ago, I installed some Ubuntu > updates, and suddenly the share stopped working. I could open the machine, > and I could open the share and see all the first level directories and a > few files, but I'd get an error like "Windows cannot access > \\BUILD\all\home" when I tried to open the home directory. I get analogous > errors on the Mac, too. > > I tried adding "force user = root". I tried "smbpasswd -a root" to supply > the root password. I tried adding "valid users = root". If I share > anything other than /, then it works fine. What could have changed all of > a sudden? Was there a global policy change in Samba that rules out sharing > /, that suddenly appeared in that fatal update? > > Here's my smb.conf (with the printer stuff and comments stripped):You might be hitting bug: https://bugzilla.samba.org/show_bug.cgi?id=11647 Can you try the patch there ?
> From: Jeremy Allison > > You might be hitting bug: > > https://bugzilla.samba.org/show_bug.cgi?id=11647 > > Can you try the patch there ?Thanks, that's probably it. Since I'm just an Ubuntu user, I think I'll wait and see if that gets incorporated into Ubuntu, rather than trying to build Samba from scratch in order to patch it. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com