[SOLVED] Samba on openhabian and ubuntu server 16.04

I have just is installed openhabian on an Intel NUC i5 running ubuntu server 16.04

Every is working 100% and installed without any issues. AWSOME!!

The issue still be be addresses is my samba shares. I can see the shares on my mac but it is read only.
Should like an easy fix, but I just cannot resolve it.

Details:

  • I installed ubuntu server and created an ‘opehabian’ user account during the install process.
  • I installed all components including samba via the openhabian-config
  • I used option 14 ‘fix permissions’ to correctly set permissions
  • Permissions look ok to me, but I am still learning?
    drwxrwxr-x+  15 openhab openhabian 4096 Mar 27 15:41 .
    drwxr-xr-x  100 root    root       4096 Mar 27 21:37 ..
    drwxrwxr-x+   8 openhab openhabian 4096 Mar 29 16:46 .git
    -rw-rw-r--    1 openhab openhabian   22 Mar 27 15:41 .gitignore
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 15:41 html
    drwxrwxr-x+   3 openhab openhabian 4096 Mar 26 20:24 icons
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 28 15:47 items
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 15:41 persistence
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 19:30 rules
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 15:41 scripts
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 19:12 services
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 18:56 sitemaps
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 26 20:24 sounds
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 28 15:48 things
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 15:41 transform
    drwxrwxr-x+   2 openhab openhabian 4096 Mar 27 15:41 .vscode

Currently:

  • I am still only getting read only access to all my shares.
  • I am connecting as ‘openhabian’

I used option 34 within the openhabian-config to change the samba password. This seams to be successful, but it does not seam to change as mac will not even connect. (wrong password).

I had to use the ‘sudo smbpasswd -a openhabian’ command, and set a new password. Only then will the mac even connect (but read only)

Any advice will be appreciated.
My previous installation was on a openahabian image for pi and that work 100%. Something I am missing during the openhabian manual install on ubuntu server 16.0.4?

Thank you so so much!!

You need to change your samba configuration:

1 Like

Thank you for the reply. If I create an ‘openhab’ smb user manually it works without any issues.

I can at least continue working.

I am just still very confused as to why the ‘openhabian’ account is not working.
‘openhabian’ is my primary account and I would really like to just use ‘openhabian tools’ as is, so will still like to resolve my initial issue.

Once again, thank you!

Kind Regards
Jason

1 Like

Indeed!

This should be added to the documentation.

The openhabian user account serves another purpose than the openhab user account.