davekimble
Posts: 10
Joined: Sat Dec 15, 2012 3:20 am

Samba's GUI failure

Thu Nov 14, 2013 7:40 am

I am used to using Lubuntu 13.04, so Raspbian (2013-09-25-wheezy-raspbian.zip) is very familiar.
For all the boxes on the LAN to play nicely together, they need to network share in the same way,
so I installed samba, but the configuration GUI did not appear in Menu > System Tools > Samba , or any other place I can find.
On Lubuntu I can see /usr/share/applications/system-config-samba.desktop
but on Raspbian there's no corresponding .desktop file .

So I edited Lubuntu//usr/share/applications/system-config-samba.desktop to Raspian//home/pi/.local/share/applications/system-config-samba.desktop :
======
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Samba
Comment=Create, modify, and delete samba shares
Categories=System;Settings;
Icon=system-config-samba
Exec=gksu system-config-samba
Type=Application
StartupNotify=true
Terminal=false
=======
and now it appears in Menu > System Tools > .

When I run it, I get a dialog saying I didn't have to authenticate, but we are running as root.
And then nothing else happens.

So trying the .desktop's "Exec=" line at the command line:
======
pi@raspberrypi ~ $ gksu system-config-samba
(gksu:11767): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
pi@raspberrypi ~ $
======

So I tried:
======
pi@raspberrypi ~ $ gksu system-config-samba --debug
No ask_pass set, using default!
xauth: /tmp/libgksu-W5nQSq/.Xauthority
STARTUP_ID: gksu/system-config-samba/14714-0-raspberrypi_TIME0
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: root
cmd[7]: --
cmd[8]: system-config-samba
buffer: -sudo-
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: -: system-config-samba: command not found-
buffer: --
buffer: --

[30 more of these here]

buffer: --
brute force GNOME_SUDO_PASS ended...
No password prompt found; we'll assume we don't need a password.
Calling pass_not_needed window...
xauth: /tmp/libgksu-W5nQSq/.Xauthority
xauth_env: /home/pi/.Xauthority
dir: /tmp/libgksu-W5nQSq

(gksu:14714): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
pi@raspberrypi ~ $
=======

I did try some other options, but didn't get anywhere, and I didn't get the Samba Server Configuration GUI to appear.

It seems to be a problem with not needing to authenticate.
I am very reluctant to edit /etc/samba/smb.conf without assistance.
If I could just make /home/pi/Public/ shared, that would do for a start.

MoosePi
Posts: 112
Joined: Wed Nov 06, 2013 4:42 pm

Re: Samba's GUI failure

Thu Nov 14, 2013 8:17 am

There are several Samba GUI http://www.samba.org/samba/GUI

An overview of Samba Sharing etal: http://elinux.org/R-Pi_NAS

gadmin-samba seems like a fully featured Samba GUI !
Last edited by MoosePi on Thu Nov 14, 2013 4:51 pm, edited 1 time in total.
Pi Forum Search and Google yields answers to many questions

klricks
Posts: 7240
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Samba's GUI failure

Thu Nov 14, 2013 1:46 pm

Samba does not have a built in GUI. You have to install a 3rd party GUI (configuration tool) as a package.
Search the repository for [samba config]
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
DougieLawson
Posts: 39895
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Samba's GUI failure

Fri Nov 15, 2013 12:55 am

Just a quick observation.

If you're trying to share between Linux systems then I've found that NFS is easier to use than samba. In my network ALL of the Linux machines use NFS, one of the Linux systems runs samba so that our Windows laptops can see the shared NFS drives.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

davekimble
Posts: 10
Joined: Sat Dec 15, 2012 3:20 am

Re: Samba's GUI failure

Fri Nov 15, 2013 3:58 am

Thanks for those suggestions - this rant is not aimed at you.

If Samba doesn't have a GUI, what is system-config-samba ?
Admittedly it doesn't work, but it exists, and the script seemed to be going OK until
"(gksu:11767): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed"
- whatever that means.

I installed gadmin-samba, but when I tried to "apply" my new share it said it "couldn't do it for now", and "now" never came. And what an appalling layout - who writes this stuff? The system-config-samba that I am used to clearly doesn't do half of what gadmin-samba can do (if you know how to, and if you want to) but is quite adequate for what I want.

Yes, I suppose I could scrap samba on six Linux machines, and use NFS instead, but after looking at https://help.ubuntu.com/community/SettingUpNFSHowTo , it would be much easier to throw the pi in the electronic trash, along with all the other good ideas that didn't quite work. Why do you have to do all that post-install command line stuff anyway? You don't have to do it in Windows.

ghans
Posts: 7883
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Samba's GUI failure

Fri Nov 15, 2013 6:38 am

davekimble wrote: buffer: -: system-config-samba: command not found-
OK , its pretty stupid that this message only appears in debug
mode.

system-config-samba is not part of Debian it seems, so it won't
be in the Raspbian repos either.
davekimble wrote: Why do you have to do all that post-install command line stuff anyway? You don't have to do it in Windows.
I guess it's because Linux ... isn't Windows ? How would you
setup a headless Samba server on Windows ? Why do you need
to start a GUI on a headless server ? I don't need to do that on
Linux.

Did you try starting gadmin-samba via gksu ?

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

davekimble
Posts: 10
Joined: Sat Dec 15, 2012 3:20 am

Re: Samba's GUI failure

Sun Nov 17, 2013 12:21 am

> Did you try starting gadmin-samba via gksu ?

I had to, as the .desktop file for it fails "You must be root to run this" - even though that's always true, and when it gets to authentication for root it says I don't have to.

Anyway, I don't know what I've done, but I can access ~/Public now from other machines with
smb://pi@samba24/pi/pi/Public/
which is grotesque but usable.
/etc/samba/smb.conf and smbusers seem to have been updated when gadmin-samba closed, so perhaps that's the trick.

allanonmage
Posts: 25
Joined: Wed Jun 12, 2013 2:40 pm

Re: Samba's GUI failure

Mon Feb 10, 2020 2:18 am

davekimble wrote:
Fri Nov 15, 2013 3:58 am
Thanks for those suggestions - this rant is not aimed at you.

If Samba doesn't have a GUI, what is c ?
Admittedly it doesn't work, but it exists, and the script seemed to be going OK until
"(gksu:11767): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed"
- whatever that means.

I installed gadmin-samba, but when I tried to "apply" my new share it said it "couldn't do it for now", and "now" never came. And what an appalling layout - who writes this stuff? The system-config-samba that I am used to clearly doesn't do half of what gadmin-samba can do (if you know how to, and if you want to) but is quite adequate for what I want.

Yes, I suppose I could scrap samba on six Linux machines, and use NFS instead, but after looking at https://help.ubuntu.com/community/SettingUpNFSHowTo , it would be much easier to throw the pi in the electronic trash, along with all the other good ideas that didn't quite work. Why do you have to do all that post-install command line stuff anyway? You don't have to do it in Windows.
My thoughts exactly! Even here in the future, system-config-samba is not installable by apt-get.

Return to “General discussion”