Results 1 to 5 of 5

Thread: Please help with Ubuntu 18.04 weird network sharing issues

  1. #1
    Join Date
    Dec 2018
    Beans
    9

    Please help with Ubuntu 18.04 weird network sharing issues

    So I have an Ubuntu 18.04 installed on an ssd and I have one 4tb drive(ext4). I've mounted that drive to /mnt/hdd and I have a few folders that I'm sharing with the network, which I need to access and write to from a Windows 10 pc.
    Long story short, I've setup network shares via GUI file manager, and everything seemed to be working fine(I've transferred about 1tb of data), but then I've lost write permissions(I get a message in windows: "You don't have permissions" when trying to copy a file), but then regained them, but now I've lost write permissioms to another folder...

    I don't see any entries related to my shared folders in smb.conf so I'm guessing this works differently?

    Does anybody now what could be the problem here?

  2. #2
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Please help with Ubuntu 18.04 weird network sharing issues

    I don't see any entries related to my shared folders in smb.conf so I'm guessing this works differently?
    Please post the output of the following command:
    Code:
    net usershare info --long

  3. #3
    Join Date
    Dec 2018
    Beans
    9

    Re: Please help with Ubuntu 18.04 weird network sharing issues

    Code:
    info_fn: file /var/lib/samba/usershares/bandau is not a well formed usershare file.
    info_fn: Error was Path is not a directory.
    [share1]
    path=/mnt/user/share1
    comment=
    usershare_acl=Everyone:F,
    guest_ok=n
    
    [share2]
    path=/mnt/user/share2
    comment=
    usershare_acl=Everyone:R,GROUP\user:F,
    guest_ok=n
    
    info_fn: file /var/lib/samba/usershares/labadiena is not a well formed usershare file.
    info_fn: Error was Path is not a directory.
    info_fn: file /var/lib/samba/usershares/dalinuosi is not a well formed usershare file.
    info_fn: Error was Path is not a directory.
    [share3]
    path=/mnt/user/share3
    comment=
    usershare_acl=Everyone:R,GROUP\user:F,
    guest_ok=n
    Now I can access /mnt/user/share1 again. I wonder how long until another folder breaks.
    Last edited by pechius; December 7th, 2018 at 09:59 PM.

  4. #4
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Please help with Ubuntu 18.04 weird network sharing issues

    There's nothing wrong with the share definitions as long as:

    ** User django is the one writing to the share.
    ** You added that user to the samba password database:
    Code:
    sudo smbpasswd -a django
    ** And that user has write permissions - Linux write permissions - to the /mnt/plex1/filmai folder.

    Why it would work one moment and not the other I cannot explain either.

  5. #5
    Join Date
    Dec 2018
    Beans
    9

    Re: Please help with Ubuntu 18.04 weird network sharing issues

    Yes, that's how it's set up.

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
  •