Bug 30984

Summary: Samba problems cannot share.
Product: Mageia Reporter: Ezequiel Partida <ezequiel_partida>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: brtians1, geiger.david68210, lewyssmith
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.mageia.org/show_bug.cgi?id=30788
Whiteboard:
Source RPM: CVE:
Status comment:

Description Ezequiel Partida 2022-10-19 10:48:36 CEST
Hello,

To be honest, I have never been able to make samba work on mageia. I have with ubuntu and I have used the same smb.conf from ubuntu with mageia with no success.

Fist of all used MCC / Local Disks / Share your hard disk partitions / allow all users / selectec SMB

Once I got to dolphin and selected a folder / properties / share, I get a message saying that I don` t have enough permissions.

I already when to MCC and added my local user to the fileshare group.

what am I doing wrong?

Whiile on sambar server smb.conf I have it like this.

[global]
    workgroup = WORKGROUPS
    server string = Samba Server %v
    netbios name = LinuxGamerAMD
    security = user
    map to guest = bad user
    dns proxy = no
    ntlm auth = true
[public]
    path = /srv/carpeta/data
    comment = Shared Folder
    browseable = yes
    public = yes
    writable = yes
    preserve case = yes



Once I connect to my MageiaPC using windows I am asked for a username and password..

Regards
Comment 1 Ezequiel Partida 2022-10-19 11:12:14 CEST
On the fileshare using dolphin I am still stuck... I am still getting the message saying I don`t have enough permissions.

But now I am able to connect from windows after adding a samba user and password afer adding the next 2 lines to smb.conf

force user = gamer
force group = gamer

And later created the samba password.

smbpasswd -a gamer


I would still like that samba would not ask me any password... but, at least I learned something tonight.. ;-)

Any tips would be appreaciated..

Regards
Comment 2 katnatek 2022-10-20 01:22:43 CEST
(In reply to Ezequiel Partida from comment #1)
> On the fileshare using dolphin I am still stuck... I am still getting the
> message saying I don`t have enough permissions.
> 

did you have kio-fuse installed?
Comment 3 katnatek 2022-10-20 01:29:35 CEST
Also try change

map to guest = bad user

to

map to guest = bad password

i found that on arch wiki https://wiki.archlinux.org/title/samba#Windows_clients_keep_asking_for_password_even_if_Samba_shares_are_created_with_guest_permissions
Comment 4 Lewis Smith 2022-10-22 20:54:47 CEST
Thank you katnatek for looking at this.
Await feedback.

@Ezequiel : have you ever tried a different file manager, to test whether Dolphin is a factor?

CC: (none) => lewyssmith

katnatek 2022-10-27 19:45:06 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=30788

Comment 5 Lewis Smith 2022-10-31 17:49:07 CET
@Ezequiel
I think Samba has been updated recently. Please give some feedback.
Comment 6 Ezequiel Partida 2022-11-08 08:05:40 CET
Hello Katnatek

I do have kio-fuse installed and still have the message that I don´t have enough permissions to share.

With caja and caja-share plugin I get.


>ne usershare> has return error 255: ner usershare: usershares are currently disablked.

Caja says it doesn`t have correct permissions to share... or something (I have this installation in spanish so i´m just giving you something similar.

With Nautilus I could not test it since nautilus-filesharing cannot be installed sin libnautilus-extension.so.1()(64bit)) is not available yet.

I am using mageia 9 alpha 1 testing so I have latest samba.
Comment 7 Lewis Smith 2022-11-08 10:53:55 CET
Thank you for your tests with other file managers.
Did you try the change noted in comment 3 ? (which did not say where to apply it, I expect you will know).
Comment 8 Ezequiel Partida 2023-03-08 23:37:08 CET
Sorry for the delay on this.


I stop using it until today.

Please let me know if I need to open a new bug report.

Today I wanted to share a folder on mga 9 beta,


On the folders share tab I got the next error.

This Folder can´t be shared becauser ´/var/lib/samba/usershare´ does not exist.
This error is caused by your distro not setting up Samba Sharing properly. You can fx it yourself by creating that folder manually. Then close and re-open this windows.

So I created the usershare folder.

So then I got.

This folder can´t be shared because ´/var/lib/samba/usershares´ has its group owner inappropriately set to "root"

So what I changed the group owner to samba with chgrp samba usershares

Now with every test user I get the next error.

This folder can´t be shared because your user account isn´t a member of the "samba" group.

You can fix this bu makin your user a member of that group. Then restart the system.

But this time it gives me an option "Make me a Group Member"

So you probably will have to create this folder with samba group membership on the next iso?:
Comment 9 Ezequiel Partida 2023-03-09 23:37:25 CET
(In reply to katnatek from comment #3)
> Also try change
> 
> map to guest = bad user
> 
> to
> 
> map to guest = bad password
> 
> i found that on arch wiki
> https://wiki.archlinux.org/title/
> samba#Windows_clients_keep_asking_for_password_even_if_Samba_shares_are_creat
> ed_with_guest_permissions

Yes I do have kio-fuse installed and I did what you recommended on comment #3
Comment 10 sturmvogel 2023-03-13 10:32:07 CET
*** Bug 31659 has been marked as a duplicate of this bug. ***
Comment 11 David GEIGER 2023-03-16 18:02:14 CET
Please test samba-4.17.5-2.mga9 that now provide a new samba-usershares-4.17.5-2.mga9 package which should fix usershares issue!

CC: (none) => geiger.david68210

Comment 12 Brian Rockwell 2023-03-18 15:48:50 CET
MGA9 - setting up a new Samba Share through Draksambashare utility.  

- When using the utility it needs a user-id set up.
- I set up the user, but it doesn't save it (I'm running via root permission through utility.
- Exit and come back in, user is missing
- share cannot be set up

# urpmi samba
Package samba-4.17.5-2.mga9.x86_64 is already installed

Utility or permissions appear to be broken.

I ran utility through command line

# draksambashare
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.
unwanted (special shares)
printers is a printer
pdbedit: error while loading shared libraries: /usr/lib64/libtalloc.so.2: file too short
smbpasswd: error while loading shared libraries: /usr/lib64/libtalloc.so.2: file too short
smbpasswd: error while loading shared libraries: /usr/lib64/libtalloc.so.2: file too short


16 digit password, same message.

CC: (none) => brtians1

Comment 13 Ezequiel Partida 2023-06-22 23:51:04 CEST
Hello,

I found a solution on https://bugs.mageia.org/show_bug.cgi?id=30090 that might also fix this one, I will test it today or tomorrow, I will let you know.
Comment 14 Lewis Smith 2024-01-22 15:05:12 CET
Please do let us know.