Samba Nautilus-Share funktioniert nicht mehr

Jupp funzt jetzt.
Musste noch durchs ganze rumbastelen paar andere “Fehler” fixen.

1 Like

The issue isn’t with nautilus-share, the net command is part of smbclient.

Das Problem liegt nicht bei nautilus-share, der net-Befehl ist Teil von smbclient.

The -l or --long switches are both valid:

Die Schalter -l oder --long sind beide gültig:

❯ net help usershare add
net usershare add [-l|--long] <sharename> <path> [<comment>] [<acl>] [<guest_ok=[y|n]>]
	Adds the specified share name for this user.
	<sharename> is the new share name.
	<path> is the path on the filesystem to export.
	<comment> is the optional comment for the new share.
	<acl> is an optional share acl in the format "DOMAIN\name:X,DOMAIN\name:X,...."
	<guest_ok=y> if present sets "guest ok = yes" on this usershare.
		"X" represents a permission and can be any one of the characters f, r or d
		where "f" means full control, "r" means read-only, "d" means deny access.
		name may be a domain user or group. For local users use the local server name instead of "DOMAIN"
		The default acl is "Everyone:r" which allows everyone read-only access.
	Add -l or --long to print the info on the newly added share.

I can reproduce the error with the -l switch, but not the --long switch.

Ich kann den Fehler mit dem -l-Schalter reproduzieren, aber nicht mit dem --long-Schalter.


Translated from English to German with Google Translate

Übersetzt aus dem Englischen ins Deutsche mit Google Translate

1 Like

Thanks for answering here @Yochanan and confirming that it is reproduceable. However I have not much expertise to say where this bug of smbclient is exactly located, but changing the parameter at the extension is for now a workaround.

I know that both parameter should be valid, but why so ever, the short one does not work.

Der Samba Server startet gar nicht. Hab eine komplette Neuinstallation. Ich krieg auch den 255er im Nautilus Dialog. Wenn ich ein sudo systemctl start samba versuche kommt das:

Okt 26 13:44:20 KalandraLinux samba[9528]: samba version 4.15.0 started.
Okt 26 13:44:20 KalandraLinux samba[9528]: Copyright Andrew Tridgell and the Samba Team 1992-2021
Okt 26 13:44:20 KalandraLinux samba[9528]: daemon_status: daemon 'samba' : Starting process...
Okt 26 13:44:20 KalandraLinux samba[9528]: At this time the 'samba' binary should only be used for either:
Okt 26 13:44:20 KalandraLinux samba[9528]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
Okt 26 13:44:20 KalandraLinux samba[9528]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Okt 26 13:44:20 KalandraLinux samba[9528]: exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Okt 26 13:44:20 KalandraLinux systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE

Hab einige Foren-Beträge gefunden wo man die smb.config verändern soll. Finde es aber merkwürdig wenn hier ein Samba-Server ausgeliefert wird, der in der default Konfiguration gar nicht läuft.

Hab mich an das hier gehalten: Using Samba in your File Manager - Manjaro

Die Samba Config so ist in Ordnung. Nur wenn Du einen Activ Directory Server beitreiben würdest, muss dies angepasst und aktiviert werden. Zum “normalen” freigeben und durchsuchen von Samba Shares muss Samba Server nicht aktiviert sein.

Siehe hier : Samba AD Daemon fail to start

The same applies to all other sharing plugins for file managers that apparently use -l instead of --long.
I can reproduce that with thunar-shares-plugin as well.
Thanks a lot to all here, in particular to @megavolt for elaboration and for the patch. With that patch, thunar-shares-plugin works again, too!

Apparently, this is an error in the documentation. The -l switch apparently means something like log file and is not an abbreviated version of the --long switch.
I am just wondering why this has not been noticed by anybody else, in particular, the smbclient developers.

The net man page, although also erroneously mentioning

 -l|--long
           When listing data, give more information on each item.

also has this one:

-l|--log-basename=logdirectory
           Base directory name for log/debug files. The extension ".progname" will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never
           removed by the client.

Clearly an error in the documentation.

1 Like

@DAC324 Thanks for pointing out the incorrect documentation. Seems like the code has changed but not the documentation.

@Yochanan Finally added the solution to the arch bug tracker as a comment: FS#72642 : [nautilus-share] Does not work and the upstream project link shows that the repository is archived.

I hope it will be fixed soon.

1 Like