[Bug 894804] Re: 255 cannot create tmp file

hackel 894804 at bugs.launchpad.net
Sun Dec 7 01:46:07 UTC 2014


Just experienced this bug with Ubuntu 14.10.  Tried to share a folder
from Nautlius, it prompted me to install samba, which I did (2:4.1.11
+dfsg-1ubuntu2), but then it gave the aforementioned error.  I even
tried to run the net usershare command manually from a new console
login, just to make sure I was in the appropriate groups, but it didn't
work.

I noticed that /var/lib/samba/usershares was owned by root:root, mode
755, so I changed it to 775 and the group to sambashare, and that seems
to have fixed the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/894804

Title:
  255 cannot create tmp file

Status in samba package in Ubuntu:
  New

Bug description:
  Error:

  'net usershare'returned 255: net usershare add: cannot create tmp file
  /var/lib/samba/usershares/:tmpCK6LY9

  Action:
  Add share via Nautilus menu option Share folder

  Specs:
  Description:	Ubuntu 11.10
  Release:	11.10

  Linux namizni 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC
  2011 x86_64 x86_64 x86_64 GNU/Linux

  samba:
    Nameščen: 2:3.5.11~dfsg-1ubuntu2.1
    Kandidat: 2:3.5.11~dfsg-1ubuntu2.1
    Preglednica različic:
   *** 2:3.5.11~dfsg-1ubuntu2.1 0
          500 http://si.archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       2:3.5.11~dfsg-1ubuntu2 0
          500 http://si.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

  Solution:

  sudo chown $USERNAME /var/lib/samba/usershares/ -R

  Look's like samba user is not in group users or someting like that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/894804/+subscriptions



More information about the foundations-bugs mailing list