Forums

Resolved
0 votes
I've just made a clean install of ClearOS 7.7.2 as a virtual machine on a Dell T110 server, running VMware ESXi 6.5U3. It replaces the previous CentOS distro with ClearOS but uses a new and bigger hard disk which I've reinstalled from scratch, and will be used primarily (solely at the moment) as a Plex Media Server, which was the role of the previous server on the same hardware except for the new hard disk.

I've set up Samba as far as the limited samba Settings screen allows - specified a hostname (but it won't let me use a simple name like 'plexserver', only an FQDN), and an internet hostname (also FQDN).

I've also set up a winadmin user password.

I try to connect from my iMac using Finder/Go/Connect to server.. It won't even find the server when specified by IP number (192.168.0.31). I also tried to browse the network. There's a hangover from my previous Plexserver CentOS server, which I had before on the same IP address.

I've looked in the Knowledge Base and can't find any reference to how to set it up to connect from Mac OS.

I can't see anywhere in either Accounts or Account Manager to give permissions to users, as one can (and I have) given FTP permission to the user john (me - FTP doesn't work either, but I'll post separately about that).

What am I missing?

Do I have to manually configure the samba.conf file?
Monday, March 09 2020, 06:53 PM
Share this post:
Responses (13)
  • Accepted Answer

    Monday, March 09 2020, 07:11 PM - #Permalink
    Resolved
    0 votes
    All users get access to Samba shares designated to the "allusers". Otherwise it is done by group membership
    Have you set up any flexshares, because you have not mentioned them. You won't get any sharing with Samba or FTP unless you set a flexshare, and in the flexshare you set up the group owner.
    Can you also check if winbind is running and post back if it is not:
    systemctl status winbind
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 09 2020, 07:45 PM - #Permalink
    Resolved
    0 votes
    Many thanks for such a prompt response, Nick. I'd forgotten about the need to have a Flexshare first, as it's now at least five years since I last used ClearOS.

    I'll follow that up later this evening, or on Wednesday.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 09 2020, 09:56 PM - #Permalink
    Resolved
    0 votes
    Sorry, one of my missing posts it seems was not missing, but it and two other seem out of chronological order.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 09 2020, 10:03 PM - #Permalink
    Resolved
    0 votes
    I've drafted a reply to this three times, and lost it three times inadvertently, without any draft being saved. Must get used to this forum.

    I've added a Flexshare off the filesystem root, at //plexserver/plexmedia.

    I can connect to it via FTP, and the Samba settings page says I can access it at the same URL.

    But i can't access it from Finder, either using Finder/Go/Connect to Server //plexserver/plexmedia or to its IP address smb://192.168.0.31/plexmedia.

    So I'm still missing a crucial connection to Plex - I can't connect via the Plex client either.

    Again, I'm missing something, but can't see what and would be grateful for further help.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 09 2020, 10:19 PM - #Permalink
    Resolved
    0 votes
    Sorry my posts have got out of order, and I haven't responded to your request to run 'systemctl status winbind' in a terminal.

    I can't seem to get a VM console any more. All I get is this set of unhelpful choices instead.
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 10 2020, 08:19 AM - #Permalink
    Resolved
    0 votes
    I think from the screen you've shown, alt+f2 will get you to a console but it is best avoided! On Windows you'd use PuTTY (or the built-in ssh client) and WinSCP for file management. I don't know Mac's but I believe they also have a built in ssh client. Then you can easily copy and paste back to the forums.

    Does "plexserver" resolve to 192.168.0.31? Try pinging it.

    Did you enable the flexshare for File sharing as well as FTP? Are you sure the server is off the ClearOS filesystem root? I think you'll find it at /var/flexshare/shares/plexmedia but it will appear off the Samba root.

    For Plex, I never seem to get an answer on the forums. I think you have to enable Third Party Access to allow Plex to read the share. I'd love to know if that is correct.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 14 2020, 02:57 PM - #Permalink
    Resolved
    0 votes
    I finally managed to figure out how to get an SSH connection to the ClearOS 'plexserver', and ran the command you suggested.

    winbind seems to be working:

    [root@plexserver plexmedia]# systemctl status winbind
    ● winbind.service - Samba Winbind Daemon
    Loaded: loaded (/usr/lib/systemd/system/winbind.service; enabled; vendor preset: disabled)
    Active: active (running) since Mon 2020-03-09 18:37:49 GMT; 4 days ago
    Docs: man:winbindd(8)
    man:samba(7)
    man:smb.conf(5)
    Main PID: 1479 (winbindd)
    Status: "winbindd: ready to serve connections..."
    CGroup: /system.slice/winbind.service
    ├─1479 /usr/sbin/winbindd --foreground --no-process-group
    ├─1684 /usr/sbin/winbindd --foreground --no-process-group
    └─1687 /usr/sbin/winbindd --foreground --no-process-group

    Mar 09 18:37:49 plexserver.mcclenahan.dyndns.org winbindd[1479]: [2020/03/09 18:37:49.861485, 0] ../lib/util/become_daemon.c:138(daemon_ready)
    Mar 09 18:37:49 plexserver.mcclenahan.dyndns.org winbindd[1479]: daemon_ready: STATUS=daemon 'winbindd' finished starting up and ready to serve connections
    [root@plexserver plexmedia]#


    The Flexshare is where you said it would be - in
    /var/flexshare/shares/plexmedia
    and my media content is within that folder, to which I'd copied it via FTP.

    The Samba configuration says the share should be at
    //plexserver/plexmedia


    And the Plex Media Server is installed, and set up by default to allow access to media by any device on the network.

    So everything so far seems to be set up.

    But I still can't figure out what to do to get access to the media.

    If I try in a browser
    https://192.168.0.31:3400
    , which is the usual way to access the server, I get "Connection refused".

    Then, a small brainwave: try without https://, just http://

    And BINGO - I have a connection, prompting me to log in to my Plex account.

    So thank you everyone who's helped me get to this point.

    So I think now I have just to wait for the server to reindex all my content - which may take several hours. Nothing so far is visible under music, photos or video.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 14 2020, 05:01 PM - #Permalink
    Resolved
    0 votes
    Nick said: "Does "plexserver" resolve to 192.168.0.31? Try pinging it."

    Using Terminal in Mac, no it doesn't resolve but says "unknown host".

    Pinging the IP address does get a response:

    Johns-iMac:~ JohnWMcC$ ping 192.168.0.31
    PING 192.168.0.31 (192.168.0.31): 56 data bytes
    64 bytes from 192.168.0.31: icmp_seq=0 ttl=64 time=0.458 ms
    64 bytes from 192.168.0.31: icmp_seq=1 ttl=64 time=0.565 ms
    64 bytes from 192.168.0.31: icmp_seq=2 ttl=64 time=0.400 ms
    64 bytes from 192.168.0.31: icmp_seq=3 ttl=64 time=0.325 ms
    ^C
    --- 192.168.0.31 ping statistics ---
    4 packets transmitted, 4 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.325/0.437/0.565/0.088 ms


    I can add an entry to the hosts file on my iMac to get a resolution of 'plexserver'.

    But I still can't get smb access to the replacement server. Even using the IP address, Finder won't connect via
    Go/Connect to server [smb://192.168.0.31]
    and eventually returns a pop up message box saying
    There was a problem connecting to server "192.168.0.31". Check the server name or IP address, and then try again. If you continue to have problems, contact  your system administrator
    . I am the system administrator, and have no idea how to fix this.

    I've looked at the
    /etc/samba/smb.conf
    file and couldn't see anything amiss, and also in
    /etc/samba/flexshare.conf
    .

    I changed 'browseable = No' to 'browseable = Yes' in a couple of places and restarted the smb service but it hasn't made any difference. There were no error messages after restarting smb and nmb servers.

    One error message after the start, which I don't understand and can't see how to fix, when I run
     systemctl status smb
    :
    # systemctl status smb
    ● smb.service - Samba SMB Daemon
    Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
    Active: active (running) since Mon 2020-03-09 18:37:54 GMT; 4 days ago
    Docs: man:smbd(8)
    man:samba(7)
    man:smb.conf(5)
    Main PID: 1492 (smbd)
    Status: "smbd: ready to serve connections..."
    CGroup: /system.slice/smb.service
    ├─1492 /usr/sbin/smbd --foreground --no-process-group
    ├─1498 /usr/sbin/smbd --foreground --no-process-group
    ├─1499 /usr/sbin/smbd --foreground --no-process-group
    └─1690 /usr/sbin/smbd --foreground --no-process-group

    Mar 09 18:37:53 plexserver.mcclenahan.dyndns.org smbd[1492]: [2020/03/09 18:37:53.510298, 0] ../source3/auth/user_util.c:371(map_username)
    Mar 09 18:37:53 plexserver.mcclenahan.dyndns.org smbd[1492]: can't open username map /etc/samba/smbusers. Error No such file or directory
    Mar 09 18:37:54 plexserver.mcclenahan.dyndns.org smbd[1492]: [2020/03/09 18:37:54.051552, 0] ../lib/util/become_daemon.c:138(daemon_ready)
    Mar 09 18:37:54 plexserver.mcclenahan.dyndns.org smbd[1492]: daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
    [root@plexserver ~]#


    "Can't open username map /etc/samba/smbusers. Error No such file or directory"

    What does that mean, and does it matter?

    It isn't desperately important, but it is helpful to have smb access to upload new media files. I can do it via FTP, but it isn't so convenient.

    Where else might I look?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 14 2020, 05:52 PM - #Permalink
    Resolved
    0 votes
    Don't worry about the samba error. It is normal.

    You have a typo somewhere, either in your configs or you error message. The finder error mentions 192.158.0.31, but this is not a private address. the earlier line mentions 192.168.0.31.

    If you are using ClearOS for DNS, you'd do better to use the CleearOS DNS Server to map plexserver to your ClearOS IP.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 14 2020, 06:21 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    You have a typo somewhere, either in your configs or you error message. The finder error mentions 192.158.0.31, but this is not a private address. the earlier line mentions 192.168.0.31.

    If you are using ClearOS for DNS, you'd do better to use the CleearOS DNS Server to map plexserver to your ClearOS IP.


    It was a typo in my manual transcription of the error message (the message wouldn't copy/paste).

    I typed it correctly in the Go/Connect to server address box. The problem isn't that plexserver doesn't map to the IP address, but that I can't connect even to the IP address itself.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 15 2020, 06:31 PM - #Permalink
    Resolved
    0 votes
    I don't know Mac's. In finder do you just give the host or do you also have to give the sharename as you do with Windows?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 15 2020, 10:17 PM - #Permalink
    Resolved
    0 votes
    Using Finder, you just give the hostname or IP address. IF it connects, you may at first access be prompted for username and password. But I'm not getting that far. It's not seeing the ClearOS machine as a samba share resource at all. As in Windows, if there isn't anything shared, you can't connect, but the plexmedia folder is shared on the server, and the Plex client can now see it and work with it. The Samba configuration page in ClearOS says the share is \\plexserver\plexmedia.

    Just that Finder can't find it, to allow easy upload of any new media files.

    As an aside, is there any way I can set this forum to remember to sort my posts with oldest first? Otherwise, it's hard to find and read the posts in sequence. With Latest first, the original post is on the top, but the rest are in reverse order of posting.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 16 2020, 08:54 AM - #Permalink
    Resolved
    0 votes
    What is the contents of /etc/samba/flexshare.conf?
    The reply is currently minimized Show
Your Reply