Results 1 to 8 of 8

Thread: Samba and paradox.lck and pdoxusrs.lck - permissions

  1. #1
    Join Date
    Apr 2015
    Beans
    100

    Samba and paradox.lck and pdoxusrs.lck - permissions

    Hello

    I have one shared folder on Ubuntu server with paradox.db files.

    But my problem is when one user open database from one windows client, they create 2 files PARADOX.LCK AND PDOXUSRS.LCK with permissions 744 for the first user. when other user try to open database, they can´t because don´t have permissions to re-write files. Folders Have permissions 770 , but I can´t fix permissions on that 2 files, because when client logout from db manager software, software delete .LCK files. The only thing I can do is have same samba user for all client machines.
    But I realy don´t like

  2. #2
    Join Date
    Apr 2015
    Beans
    100

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    Any suggestion?

  3. #3
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    Are you sure your pdoxusers.net location is correct for all clients?
    https://support.novell.com/docs/Tids...t/1203264.html


    I don't see why you can't setup group permission and force creation of file as 764. Make samba share force group and make sure
    all users are added to the group so they can write to the file.

    Things you want to research, force group, group sticky bit http://unix.stackexchange.com/questi...in-samba-share

    Also if you are running ACL's you can setup inheritance, which may help. I have found this article very helpful with samba permissions
    http://users.telenet.be/mydotcom/how...sbs/samba4.htm

    When first user runs db what are full permissions? Have first user exit then second user connect, what are permissions now?
    Please post output of command below for both scenarios above.

    Code:
    ls -al /path/to/pdoxdbDir
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  4. #4
    Join Date
    Apr 2015
    Beans
    100

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    Is strange!

    Is do-it before # ls-al /pathtoParadoxdir

    Folder Have 770, but paradox create 2 files PARADOX.LCK AND PDOXUSRS.LCK with permissions 744 for the first user

  5. #5
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    Can you post the previously requested info?
    Also post your smb.conf.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    If you don't care about auditing the users at the OS level, you can use "force user" and "force group" to make all files in the share owned by the same Linux user. For something like Paradox, this might be the easiest solution, if the application manages authentication and auditing itself. I used the force user/group commands for a shared accounting application, since it handled all the user authentication.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Apr 2015
    Beans
    100

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    How I can force user and group?

  8. #8
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Samba and paradox.lck and pdoxusrs.lck - permissions

    https://www.samba.org/~ab/output/htm...html#FORCEUSER

    https://www.samba.org/~ab/output/htm...tml#FORCEGROUP

    Basically

    1) Create a Linux user who will own the share and all the files therein.
    Code:
    sudo adduser bossman
    2) Create the shared directory and assign ownership to the user.
    Code:
    sudo mkdir /srv/shared
    sudo chown bossman:bossman /srv/shared
    sudo chmod 0770 /srv/shared
    3) Add "force user/force group" to smb.conf:
    Code:
    [sharename]
    path = /srv/shared
    force user = bossman
    force group = bossman
    [other stuff]
    4) Restart Samba.
    Last edited by SeijiSensei; May 16th, 2015 at 10:28 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •