How can I give full permission to folder and subfolder












11















I'm new to Ubuntu and need to create a new folder in /var and need all users on the machine to have full permissions to this folder.



How should I proceed?










share|improve this question

























  • Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

    – Fabby
    Jan 11 '16 at 22:49













  • Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

    – Sam
    Jan 11 '16 at 22:54








  • 1





    /tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

    – Eduardo Cola
    Jan 11 '16 at 23:05











  • @EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

    – Fabby
    Jan 11 '16 at 23:12











  • Isn't /tmp used with tmpfs? Which uses RAM?

    – Eduardo Cola
    Jan 11 '16 at 23:43
















11















I'm new to Ubuntu and need to create a new folder in /var and need all users on the machine to have full permissions to this folder.



How should I proceed?










share|improve this question

























  • Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

    – Fabby
    Jan 11 '16 at 22:49













  • Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

    – Sam
    Jan 11 '16 at 22:54








  • 1





    /tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

    – Eduardo Cola
    Jan 11 '16 at 23:05











  • @EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

    – Fabby
    Jan 11 '16 at 23:12











  • Isn't /tmp used with tmpfs? Which uses RAM?

    – Eduardo Cola
    Jan 11 '16 at 23:43














11












11








11


2






I'm new to Ubuntu and need to create a new folder in /var and need all users on the machine to have full permissions to this folder.



How should I proceed?










share|improve this question
















I'm new to Ubuntu and need to create a new folder in /var and need all users on the machine to have full permissions to this folder.



How should I proceed?







permissions directory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 11 '16 at 22:58









Fabby

26.6k1360159




26.6k1360159










asked Jan 11 '16 at 22:42









SamSam

1432211




1432211













  • Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

    – Fabby
    Jan 11 '16 at 22:49













  • Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

    – Sam
    Jan 11 '16 at 22:54








  • 1





    /tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

    – Eduardo Cola
    Jan 11 '16 at 23:05











  • @EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

    – Fabby
    Jan 11 '16 at 23:12











  • Isn't /tmp used with tmpfs? Which uses RAM?

    – Eduardo Cola
    Jan 11 '16 at 23:43



















  • Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

    – Fabby
    Jan 11 '16 at 22:49













  • Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

    – Sam
    Jan 11 '16 at 22:54








  • 1





    /tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

    – Eduardo Cola
    Jan 11 '16 at 23:05











  • @EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

    – Fabby
    Jan 11 '16 at 23:12











  • Isn't /tmp used with tmpfs? Which uses RAM?

    – Eduardo Cola
    Jan 11 '16 at 23:43

















Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

– Fabby
Jan 11 '16 at 22:49







Welcome to Ask Ubuntu! ;-) Do you want to create a folder in /var that has full permission for all users??? There is already one! and it's called tmp!

– Fabby
Jan 11 '16 at 22:49















Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

– Sam
Jan 11 '16 at 22:54







Thanks for replying , yes that i want to do but please what do you mean by There is already one! and it's called tmp!

– Sam
Jan 11 '16 at 22:54






1




1





/tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

– Eduardo Cola
Jan 11 '16 at 23:05





/tmp is a system directory with a temporary filesystem which uses RAM memory. Anything put there will be deleted upon reboot.

– Eduardo Cola
Jan 11 '16 at 23:05













@EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

– Fabby
Jan 11 '16 at 23:12





@EduardoCola: it actually uses disk, but yes, it's deleted upon reboot! (You can see this happening when you remove quiet splash from the boot parameters...) ;-)

– Fabby
Jan 11 '16 at 23:12













Isn't /tmp used with tmpfs? Which uses RAM?

– Eduardo Cola
Jan 11 '16 at 23:43





Isn't /tmp used with tmpfs? Which uses RAM?

– Eduardo Cola
Jan 11 '16 at 23:43










2 Answers
2






active

oldest

votes


















17














Press Ctrl+Alt+T to go to a terminal and type:



sudo mkdir /var/szDirectoryName
sudo chmod a+rwx /var/szDirectoryName


Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...



Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp



For any further information, here is a great resource on all directories in Linux.






share|improve this answer


























  • but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

    – Sam
    Jan 11 '16 at 23:04













  • i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

    – Sam
    Jan 11 '16 at 23:08











  • Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

    – Fabby
    Jan 11 '16 at 23:13













  • sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

    – Sam
    Jan 11 '16 at 23:21











  • @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

    – Fabby
    Mar 5 '18 at 20:50





















5














Open Terminal



Create Directory with mkdir:



sudo mkdir /var/DirectoryName


To give all permissions to a folder give chmod -R 777:



sudo chmod -R 777 /var/DirectoryName





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f719996%2fhow-can-i-give-full-permission-to-folder-and-subfolder%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    17














    Press Ctrl+Alt+T to go to a terminal and type:



    sudo mkdir /var/szDirectoryName
    sudo chmod a+rwx /var/szDirectoryName


    Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...



    Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp



    For any further information, here is a great resource on all directories in Linux.






    share|improve this answer


























    • but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

      – Sam
      Jan 11 '16 at 23:04













    • i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

      – Sam
      Jan 11 '16 at 23:08











    • Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

      – Fabby
      Jan 11 '16 at 23:13













    • sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

      – Sam
      Jan 11 '16 at 23:21











    • @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

      – Fabby
      Mar 5 '18 at 20:50


















    17














    Press Ctrl+Alt+T to go to a terminal and type:



    sudo mkdir /var/szDirectoryName
    sudo chmod a+rwx /var/szDirectoryName


    Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...



    Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp



    For any further information, here is a great resource on all directories in Linux.






    share|improve this answer


























    • but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

      – Sam
      Jan 11 '16 at 23:04













    • i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

      – Sam
      Jan 11 '16 at 23:08











    • Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

      – Fabby
      Jan 11 '16 at 23:13













    • sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

      – Sam
      Jan 11 '16 at 23:21











    • @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

      – Fabby
      Mar 5 '18 at 20:50
















    17












    17








    17







    Press Ctrl+Alt+T to go to a terminal and type:



    sudo mkdir /var/szDirectoryName
    sudo chmod a+rwx /var/szDirectoryName


    Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...



    Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp



    For any further information, here is a great resource on all directories in Linux.






    share|improve this answer















    Press Ctrl+Alt+T to go to a terminal and type:



    sudo mkdir /var/szDirectoryName
    sudo chmod a+rwx /var/szDirectoryName


    Where szDirectoryName is the name of the directory you would like, a means "all" (users) + means "add the following rights" and rwx means read, write and execute respectively...



    Note: there already is such a directory in /var which all users have access to: tmp (full path: /var/tmp) which itself is symlinked to /tmp



    For any further information, here is a great resource on all directories in Linux.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 20 '18 at 20:27

























    answered Jan 11 '16 at 22:56









    FabbyFabby

    26.6k1360159




    26.6k1360159













    • but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

      – Sam
      Jan 11 '16 at 23:04













    • i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

      – Sam
      Jan 11 '16 at 23:08











    • Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

      – Fabby
      Jan 11 '16 at 23:13













    • sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

      – Sam
      Jan 11 '16 at 23:21











    • @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

      – Fabby
      Mar 5 '18 at 20:50





















    • but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

      – Sam
      Jan 11 '16 at 23:04













    • i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

      – Sam
      Jan 11 '16 at 23:08











    • Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

      – Fabby
      Jan 11 '16 at 23:13













    • sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

      – Sam
      Jan 11 '16 at 23:21











    • @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

      – Fabby
      Mar 5 '18 at 20:50



















    but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

    – Sam
    Jan 11 '16 at 23:04







    but what is that mean after i executed your command i got total 0 when i wrote ls -l /var/nameoffolder?

    – Sam
    Jan 11 '16 at 23:04















    i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

    – Sam
    Jan 11 '16 at 23:08





    i know that command ls .. used for listing what is in that folder but -l give me the permissions rigth ?

    – Sam
    Jan 11 '16 at 23:08













    Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

    – Fabby
    Jan 11 '16 at 23:13







    Your original question has been answered. If you have any further questions, just ask another one! Please also visit the Ask Ubuntu Tour to better understand how this site works, as it is quite different from a forum... A click on ☑ would be appreciated in the mean time... ;-)

    – Fabby
    Jan 11 '16 at 23:13















    sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

    – Sam
    Jan 11 '16 at 23:21





    sorry , you edited your answer with statement i want to ask about there is already a directory in /var that all users have access to: tmp which is symlinked to /tmp this means that folders that i will created in /var will be deleted liken in /tmp

    – Sam
    Jan 11 '16 at 23:21













    @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

    – Fabby
    Mar 5 '18 at 20:50







    @user5520049 Apparently I never answered your last question: No they will not be: only tmp is deleted at boot of that OS, not the directories you create beside tmp...

    – Fabby
    Mar 5 '18 at 20:50















    5














    Open Terminal



    Create Directory with mkdir:



    sudo mkdir /var/DirectoryName


    To give all permissions to a folder give chmod -R 777:



    sudo chmod -R 777 /var/DirectoryName





    share|improve this answer




























      5














      Open Terminal



      Create Directory with mkdir:



      sudo mkdir /var/DirectoryName


      To give all permissions to a folder give chmod -R 777:



      sudo chmod -R 777 /var/DirectoryName





      share|improve this answer


























        5












        5








        5







        Open Terminal



        Create Directory with mkdir:



        sudo mkdir /var/DirectoryName


        To give all permissions to a folder give chmod -R 777:



        sudo chmod -R 777 /var/DirectoryName





        share|improve this answer













        Open Terminal



        Create Directory with mkdir:



        sudo mkdir /var/DirectoryName


        To give all permissions to a folder give chmod -R 777:



        sudo chmod -R 777 /var/DirectoryName






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 10 '17 at 7:58









        Pradeep Kumar PrabaharanPradeep Kumar Prabaharan

        15316




        15316






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f719996%2fhow-can-i-give-full-permission-to-folder-and-subfolder%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

            Questions related to Moebius Transform of Characteristic Function of the Primes

            List of scandals in India

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?