Change permissions for mounted veracrypt drive in linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows).



The problem is, I cannot change the permissions for this volume (permissions are 700) thus samba gives an error because permissions are not correct. I share the folder via the same samba user who's mounted the veracrypt device, but still no permissions to view the folder. Other folders like home and everything inside home of the user are working fine.



If I do the same using windows, there is no problem and all computers can access the drive via network.



Does anybody know a workaround or is there a mistake (e.g. like, should every computer mount this drive)? I just want to secure the drives against physical access.



Thanks in advance, SJF










share|improve this question






















  • What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

    – nwildner
    Jun 23 '17 at 11:56












  • The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

    – SirJohnFranklin
    Jun 24 '17 at 10:40















2















I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows).



The problem is, I cannot change the permissions for this volume (permissions are 700) thus samba gives an error because permissions are not correct. I share the folder via the same samba user who's mounted the veracrypt device, but still no permissions to view the folder. Other folders like home and everything inside home of the user are working fine.



If I do the same using windows, there is no problem and all computers can access the drive via network.



Does anybody know a workaround or is there a mistake (e.g. like, should every computer mount this drive)? I just want to secure the drives against physical access.



Thanks in advance, SJF










share|improve this question






















  • What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

    – nwildner
    Jun 23 '17 at 11:56












  • The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

    – SirJohnFranklin
    Jun 24 '17 at 10:40













2












2








2








I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows).



The problem is, I cannot change the permissions for this volume (permissions are 700) thus samba gives an error because permissions are not correct. I share the folder via the same samba user who's mounted the veracrypt device, but still no permissions to view the folder. Other folders like home and everything inside home of the user are working fine.



If I do the same using windows, there is no problem and all computers can access the drive via network.



Does anybody know a workaround or is there a mistake (e.g. like, should every computer mount this drive)? I just want to secure the drives against physical access.



Thanks in advance, SJF










share|improve this question














I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows).



The problem is, I cannot change the permissions for this volume (permissions are 700) thus samba gives an error because permissions are not correct. I share the folder via the same samba user who's mounted the veracrypt device, but still no permissions to view the folder. Other folders like home and everything inside home of the user are working fine.



If I do the same using windows, there is no problem and all computers can access the drive via network.



Does anybody know a workaround or is there a mistake (e.g. like, should every computer mount this drive)? I just want to secure the drives against physical access.



Thanks in advance, SJF







linux networking fedora permissions samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 23 '17 at 11:39









SirJohnFranklinSirJohnFranklin

112




112












  • What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

    – nwildner
    Jun 23 '17 at 11:56












  • The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

    – SirJohnFranklin
    Jun 24 '17 at 10:40

















  • What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

    – nwildner
    Jun 23 '17 at 11:56












  • The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

    – SirJohnFranklin
    Jun 24 '17 at 10:40
















What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

– nwildner
Jun 23 '17 at 11:56






What is the point of having an encrypted disk and share this on your network? If you answer my question first, i can think on an answer to you(not sure if i will find it)...

– nwildner
Jun 23 '17 at 11:56














The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

– SirJohnFranklin
Jun 24 '17 at 10:40





The point is: I can access the files from my server from my computers but if I don't need the data, so the drive is unmounted, it is secured.

– SirJohnFranklin
Jun 24 '17 at 10:40










1 Answer
1






active

oldest

votes


















0














In Veracrypt, before mounting the volume, go to preferences > mount options, and add "umask=022" as mount option string, this adds read and execute permissions to group and others, you can also change it to 000 for full access. Mount your volume.
The samba share should work then.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f372950%2fchange-permissions-for-mounted-veracrypt-drive-in-linux%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    In Veracrypt, before mounting the volume, go to preferences > mount options, and add "umask=022" as mount option string, this adds read and execute permissions to group and others, you can also change it to 000 for full access. Mount your volume.
    The samba share should work then.






    share|improve this answer



























      0














      In Veracrypt, before mounting the volume, go to preferences > mount options, and add "umask=022" as mount option string, this adds read and execute permissions to group and others, you can also change it to 000 for full access. Mount your volume.
      The samba share should work then.






      share|improve this answer

























        0












        0








        0







        In Veracrypt, before mounting the volume, go to preferences > mount options, and add "umask=022" as mount option string, this adds read and execute permissions to group and others, you can also change it to 000 for full access. Mount your volume.
        The samba share should work then.






        share|improve this answer













        In Veracrypt, before mounting the volume, go to preferences > mount options, and add "umask=022" as mount option string, this adds read and execute permissions to group and others, you can also change it to 000 for full access. Mount your volume.
        The samba share should work then.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 26 '18 at 13:09









        akemakem

        1




        1



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f372950%2fchange-permissions-for-mounted-veracrypt-drive-in-linux%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?