Loki Samba won't start

Discussion in 'Software & Applications' started by Sean Halter, Feb 5, 2017.

  1. Sean Halter

    Sean Halter Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 5, 2017
    Messages:
    3
    Likes Received:
    0
    I have Samba installed, but, when I click on the icon, it asks for my password, I enter it, and then nothing happens. I can not configure, i.e. set up files to share.

    Any advice is appreciated.
     
  2. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Supporter

    Joined:
    Jan 24, 2017
    Messages:
    127
    Likes Received:
    25
  3. Sean Halter

    Sean Halter Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 5, 2017
    Messages:
    3
    Likes Received:
    0
    I tried that set of instructions, but, no luck.

    I may have to try again.
     
  4. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Supporter

    Joined:
    Jan 24, 2017
    Messages:
    127
    Likes Received:
    25
  5. Frederik Vos

    Frederik Vos
    Expand Collapse
    Active Member

    Joined:
    Feb 2, 2017
    Messages:
    26
    Likes Received:
    2
    Before using graphical interfaces, it makes sense to do a little test on the command-line

    start with the command smbtree ... don't give a username/passwd, just press enter
    do you see the share ?
    If not: is your firewall configured correctly ?

    after that:

    smbclient -U <username> //<server>/share

    Can you login, do you see files with dir or ls ?

    Try it graphically, if you are using Files, is gvfs-backends installed (it should be, it's installed by default)
     
  6. Frederik Vos

    Frederik Vos
    Expand Collapse
    Active Member

    Joined:
    Feb 2, 2017
    Messages:
    26
    Likes Received:
    2
    And btw: i do prefer mounting samba shares without the graphical interface.
    First create a file like /etc/samba/credentials.txt put 2 lines in it:
    username=...
    password=..
    After that, change the permissions on this file:
    chmod 400 /etc/samba/credentials.txt

    Now create a mountpoint:

    mkdir /mnt/share1

    Create a file: /etc/systemd/system/mnt-share1.mount

    [Unit]
    Description = samba share data1
    Requires = remote-fs.target

    [Mount]
    Where = /mnt/share1
    What = //server/share
    Type = cifs
    Options = defaults, credentials=/etc/samba/credentials.txt

    [Install]
    WantedBy = default.target

    Note: the filename == sharename,, replacing / with a -

    After that: systemctl start mnt-share1.mount
    check: findmnt -D /mnt/share1
    Enable at boot: systemctl enable mnt-share1.mount
     
  7. Sean Halter

    Sean Halter Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 5, 2017
    Messages:
    3
    Likes Received:
    0
    Thanks for the feedback. I tried several sets of install instructions, but, the one that worked best (for me) is the following.
    http://entornosgnulinux.com/2015/06/14/samba-en-elementary-os-freya/

    This involved the installation of Nautilus and it provided the option of installing a samba program.

    Are there any issues with Nautilus that I should be aware of? Negative issues, I mean.

    As an aside, the instructions are in Spanish, is there a way to get ASCII codes in Elementary Linux?
     
  8. salamnkoi

    salamnkoi
    Expand Collapse
    Member

    Joined:
    Mar 31, 2019
    Messages:
    6
    Likes Received:
    0
    #8 salamnkoi, Apr 24, 2019
    Last edited: Apr 24, 2019

Share This Page

Loading...