Profile Details

Toggle Sidebar
Recent updates
  • Nick Howitt wrote:

    Use this as a starting point:This is how I mount my ClearOS share on a Pi in the Pi's /etc/fstab. I'm not sure of anything after my_password and you may get by without it. I'm also not sure about the "x-systemd.automount" and I think there is a flag you can set so ClearOS does not hang on boot if it does not find the NAS drive. This mounts the ClearOS drive in /mnt/server on the Pi. You can mount it to wherever you want.


    Thanks Nick.

    I've been doing some reading and this has become quite complicated with the x-systemd.automount .

    I noticed that there are some flexshare mounts in the fstab as I have a webpage and virtual webpage.

    Does the COS7 server update the fstab when you add another flexshare directory? Will it overwrite the existing fstab?

    Thanks again.

  • How can I attach external media disk (NAS) to built in Plex Server?

    I thought I'd try the Plex media server since it is available as an install.

    All my media resides on a NAS4Free server. I don't want to copy all the media files to the COS 7 server because that would duplicate all the media files. I never installed Plex or Serviio on the NAS4Free. It serves files quite nicely using SMB and Netatalk.

    Because of the suggestions/assumption that all media is supposed to be put into the Flexshares, which I don't want to do, I'm not sure how I should go about adding the existing media disks through the NAS4Free without screwing up the COS.

    I suspect I can somehow mount the NAS in COS in the /etc/fstab with a newly created Plex userid on the NAS.

    Is this how you do it?

    Or is there something I should be doing?

    Thanks for your suggestions.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    Tony Ellis wrote:

    see https://groups.yahoo.com/neo/groups/unison-users/conversations/messages?messageStartId=12228&archiveSearch=true

    There is quite a discussion at the moment about permissions and unison - you might like to join and contribute...

    Thanks again Tony.
    I'm subscribed to the Unison mail group and have been watching the permission issue. It isn't what I've been seeing so I may need to start a new topic there.
    I'm still not sure that this is a Unison issue and not a COS 7.3 Flexshare/SMB issue.
    I'm managing for the moment doing a double sync or manually changing the permissions on the server. Slow and frustrating yes, but I want to figure out the why and fix it properly.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    nuke wrote:

    I will try to do a sync with a completely new set of files to test this out also and run Unison in debug mode. Perhaps that will shed some light on what is happening.


    Here is the results so far.

    All files started on MBP with 644.

    Created a new directory in /home/user called Test. Directory was created 755.

    I used an empty Unison prefs file (only containing the two roots) and the files that end up on the COS server are 744. I deleted and recreated the COS folder.

    I used my typical Unison prefs and the files that ended up on the COS server are also 744. I deleted and recreated the COS folder.

    I used perms = 0 and dontchmod = true and ended up with the files on the COS server are 700.

    My head is spinning right now. I suspect there is a setting on the COS smb or flexshare that is making a change since the files should not be wrx for the user.

    I'm going check the debug log and see if that sheds some light on this.

    Thanks in advance for any guidance.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    Tony Ellis wrote:

    OK - just did an experiment with permissions... this is with an empty profile file
    First named system is Fedora - Second named system is ClearoS 7.3 - command line as per previous append
    The unison command is run on the ClearOS system...
    So you have something other than unison at play there...


    Thank you for your detailed reply and help on figuring this out.

    I'm also syncing the files to an Android tablet. The very strange thing is the the Android prefs are exactly as they should be, ie. 644.

    I will try to do a sync with a completely new set of files to test this out also and run Unison in debug mode. Perhaps that will shed some light on what is happening.

    Thanks again.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    Tony Ellis wrote:

    Hmm - the doc doesn't mention perms being 0 as a pre-req
    the profile becomes :-


    Tried that on my machine and it ran OK...
    (not that it's required here...)


    Tony, thanks again for taking time to reply.

    I made that change to my prf file and re-ran Unison. I got


    Interestingly enough, the sync still happened.

    Now the file changed have permissions:
    and the new file has

    This is wacky.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    nuke wrote:

    Tony Ellis wrote:

    What happens if you add "dontchmod = true" to your preferences file?
    http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#prefs
    ...
    If this doesn't work, then would look at what samba and flexshares are doing under the covers. Since flexshares are not used here, my samba share setup is decidedly "non-ClearOS" like - cannot therefore help you with that... hate any 'automagic' that happens that yields unexpected results...


    Thanks Tony.

    I'll try the dontchmod in the Unison preference file and report back what I find.


    I tried the dontchmod preference and got a fatal error. Ouch.

    Fatal Error
    If the 'dontchmod' preference is set, the 'perms' preference should be 0


    I forgot that I had installed Netatalk on the 5.2 server so I was connecting with AFP instead of SMB. So maybe that is why I didn't have the pref issues problem before. ???

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    Nick Howitt wrote:

    OK I was slightly out. Flexshare definitions are in /etc/samba/flexshare.conf and are governed by the two parameters:Google "man smb.conf" to find more info. Unfortunately you can't really change them as every time you change something in the webconfig flexshare menu, this file gets rewritten. You could set the immutable bit "chattr +i /etc/samba/flexshare.conf" to stop ClearOS from changing the file but you'd need to remember to change it back when you wanted to make a genuine change.


    Thanks Nick.

    This sounds a bit strange. So the flexshare will over write the samba preferences? I'm going to check out the Flexshare preference and see if I can find smb.conf.

    Isn't there some complication with Samba4 and the windows domain controller and preferences? From Samba Wiki

    Instead of using Windows access control lists (ACL), you can set up a share using POSIX ACLs on your Samba server. However, when using POSIX ACL to set permissions, you must create the home directory for each new user manually and set permissions.


    We don't have any Windows machines here so I chose to install OpenLDAP.

    Will report back.

  • Nuke
    Nuke replied to a discussion, Samba file preferences

    Tony Ellis wrote:

    What happens if you add "dontchmod = true" to your preferences file?
    http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#prefs
    ...
    If this doesn't work, then would look at what samba and flexshares are doing under the covers. Since flexshares are not used here, my samba share setup is decidedly "non-ClearOS" like - cannot therefore help you with that... hate any 'automagic' that happens that yields unexpected results...


    Thanks Tony.

    I'll try the dontchmod in the Unison preference file and report back what I find.

  • Nuke
    Nuke started a new discussion, Samba file preferences

    Samba file preferences

    Hi.

    I've implemented only the Windows File sharing (Samba) on COS 7.3.

    On my old COS 5.2 server I had a directory where I sync files (using Unison) between my Mac, a file directory on the server and various Android devices. This worked fine. File permissions stayed as on the original file.

    Since upgrading, I've noticed that the files are getting changed on the server file directory somehow. They start out with permissions 644 but end up after a sync with 744. As this didn't happen before, I suspect this has something to do with the Samba settings but don't know.

    Can someone suggest how to debug this and figure out where and what is changing the permissions?

    Thanks.