Simple permission problem

  • Hi people,

    probably i didn't understand something with smb permissions and i need help.

    I just want to permit the main group plus a user (that does not belong to this group) to a folder.


    So now i have a group with my PC's users that actually can access to almost everything, let's call it "mods".

    The user "backup_mobile" (that belongs only to "users" group), from my Foldersync app, should write only in the "Backup" folder, so:

    - Via plugin i reset all permissions and ACL

    - In shared folder -> privileges -> i add read/write permissions to "backup_mobile"

    result: "backup_mobile" cannot see anything. If i check on Windows the folder->proprieties->security i cannot see "mobile_backup"


    - In shared folder -> ACL -> i add "mobile_backup" read/write

    result: "backup_mobile" cannot see anything. If i check on Windows the folder->proprieties->security i actually see "mobile_backup" with read/write permission (how is it possible?).


    - add "backup_mobile" temporarely to "mods" group

    result: everything works good


    but i dont want to add "mobile_backup" to "mods".


    What am i doing wrong? Is a file system permissions problem?


    Thanks,

    Virtux

  • Hi people,

    problem solved with manual reset of permissions.

    Here some useful commands for linux noobs like me, to use after studying how permissions work in linux.


    Login with root in terminal.

    Move into the disk, you may can find it in:

    /srv/dev-disk-by-uuid-xxxxx-xxxxx-xxxxx-xxxxxx


    Show folder and files permissions:

    Code
    ls -l


    Remove ACL:

    Code
    setfacl -b <file>


    Set standard permission (without "S"):

    Code
    chmod 00755 <file>


    Set group owner to root:

    Code
    chgrp root <file>


    Set user owner root:

    Code
    chown root <file>


    Check on the subfolder too.


    Bye,

    Virtux

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!