Results 1 to 4 of 4

Thread: Samba not working on Ubuntu MATE 22.04

  1. #1
    Join Date
    Apr 2009
    Location
    Caerdydd, Cymru DU
    Beans
    119
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Samba not working on Ubuntu MATE 22.04

    I've recently upgraded to Ubuntu MATE 22.04 and as per usual wanted to set up samba share so I installed samba in the usual manner and also caja-share. Usually this 'just works' once I've rebooted, instead I'm now getting 'net user share' returned error 255 when I try to set up a folder share.

    I've tried some of the solutions I've found online, but none has worked. Anyone got any ideas?
    Nid yw Anarchiaeth am anrhefn a chwal, ond am Ryddid, Cyfrifoldeb a Threfn
    Anarchy isn't about chaos and disorder, it's about Freedom, Responsibility and Order.

  2. #2
    Join Date
    Jun 2014
    Beans
    7,626

    Re: Samba not working on Ubuntu MATE 22.04

    You might indicate exactly what you have tried so that people don't suggest what you have already done. Have you tried the suggestions at the link below?

    https://fostips.com/share-folder-ubu...are-error-255/

  3. #3
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba not working on Ubuntu MATE 22.04

    caja-share is broke. Here's a bug report for it: https://bugs.launchpad.net/ubuntu/+s...s/+bug/1972057

    But wait, there's another problem.

    The whole purpose of a samba usershare ( caja-share ) is for an ordinary user to share a folder he owns. That usually implies a folder in his home directory. Unless you make a share accessible only to you it won't work even if caja-share did still work because Ubuntu changed the default folder permissions of a user's home directory to username:username 0750.

    Only you "username" can access the subfolders either locally or as a smb client.

    My advice is to go old school and create your share definition in smb.conf directly. Example:

    To share my Public folder I would edit /etc/samba/smb.conf and at the bottom of the file add a share definition that looks like this:

    Code:
    [Public]
    path = /home/morbius/Public
    read only = no
    guest ok = yes
    force user = morbius
    Then restart smbd :
    Code:
    sudo service smbd restart
    It will take years for a fix to show up in the repositories and by then there will be 16 other mate / gvfs / gnome bugs so beat the rush and use samba directly.
    Last edited by Morbius1; June 22nd, 2022 at 07:01 PM.

  4. #4
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Samba not working on Ubuntu MATE 22.04

    Quote Originally Posted by Morbius1 View Post
    My advice is to go old school and create your share definition in smb.conf directly. Example:

    by then there will be 16 other mate / gvfs / gnome bugs so beat the rush and use samba directly.
    Truer words have not yet been spoken

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •