How to access /root directory from a browser?

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











up vote
0
down vote

favorite
1












Disclaimer :



This question is meant to be answered for Educational and learning purpose.
/root is an important directory meant to be only accessible to Root user.
Accessing /root through a browser may lead to breaking some rules of system
causing unknown security issues with the system, So, Do it at your own risk !


Using URI Scheme file:// protocol we can access the files and folders on our local system through any browser.



file:/// in Mozilla Firefox



But,



  1. Is there a way to access /root directory from Chromium or Firefox or any other browser ?

  2. If yes, Will it be a security flaw on the part of browser ?






share|improve this question

















  • 2




    Why do you think the browser process is any different from any other process on the system?
    – Ignacio Vazquez-Abrams
    Apr 29 at 8:59






  • 1




    Anything is possible, however in the name of security, do you really want do do that?
    – Rui F Ribeiro
    Apr 29 at 9:17






  • 1




    Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
    – Rui F Ribeiro
    Apr 29 at 9:28






  • 2




    @C0deDaedalus Just chmod 0777 /root or run the browser as root.
    – dsstorefile1
    Apr 29 at 9:57






  • 1




    @C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
    – Torin Carey
    Apr 29 at 10:24














up vote
0
down vote

favorite
1












Disclaimer :



This question is meant to be answered for Educational and learning purpose.
/root is an important directory meant to be only accessible to Root user.
Accessing /root through a browser may lead to breaking some rules of system
causing unknown security issues with the system, So, Do it at your own risk !


Using URI Scheme file:// protocol we can access the files and folders on our local system through any browser.



file:/// in Mozilla Firefox



But,



  1. Is there a way to access /root directory from Chromium or Firefox or any other browser ?

  2. If yes, Will it be a security flaw on the part of browser ?






share|improve this question

















  • 2




    Why do you think the browser process is any different from any other process on the system?
    – Ignacio Vazquez-Abrams
    Apr 29 at 8:59






  • 1




    Anything is possible, however in the name of security, do you really want do do that?
    – Rui F Ribeiro
    Apr 29 at 9:17






  • 1




    Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
    – Rui F Ribeiro
    Apr 29 at 9:28






  • 2




    @C0deDaedalus Just chmod 0777 /root or run the browser as root.
    – dsstorefile1
    Apr 29 at 9:57






  • 1




    @C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
    – Torin Carey
    Apr 29 at 10:24












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Disclaimer :



This question is meant to be answered for Educational and learning purpose.
/root is an important directory meant to be only accessible to Root user.
Accessing /root through a browser may lead to breaking some rules of system
causing unknown security issues with the system, So, Do it at your own risk !


Using URI Scheme file:// protocol we can access the files and folders on our local system through any browser.



file:/// in Mozilla Firefox



But,



  1. Is there a way to access /root directory from Chromium or Firefox or any other browser ?

  2. If yes, Will it be a security flaw on the part of browser ?






share|improve this question













Disclaimer :



This question is meant to be answered for Educational and learning purpose.
/root is an important directory meant to be only accessible to Root user.
Accessing /root through a browser may lead to breaking some rules of system
causing unknown security issues with the system, So, Do it at your own risk !


Using URI Scheme file:// protocol we can access the files and folders on our local system through any browser.



file:/// in Mozilla Firefox



But,



  1. Is there a way to access /root directory from Chromium or Firefox or any other browser ?

  2. If yes, Will it be a security flaw on the part of browser ?








share|improve this question












share|improve this question




share|improve this question








edited Apr 29 at 9:47
























asked Apr 29 at 8:58









C0deDaedalus

381210




381210







  • 2




    Why do you think the browser process is any different from any other process on the system?
    – Ignacio Vazquez-Abrams
    Apr 29 at 8:59






  • 1




    Anything is possible, however in the name of security, do you really want do do that?
    – Rui F Ribeiro
    Apr 29 at 9:17






  • 1




    Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
    – Rui F Ribeiro
    Apr 29 at 9:28






  • 2




    @C0deDaedalus Just chmod 0777 /root or run the browser as root.
    – dsstorefile1
    Apr 29 at 9:57






  • 1




    @C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
    – Torin Carey
    Apr 29 at 10:24












  • 2




    Why do you think the browser process is any different from any other process on the system?
    – Ignacio Vazquez-Abrams
    Apr 29 at 8:59






  • 1




    Anything is possible, however in the name of security, do you really want do do that?
    – Rui F Ribeiro
    Apr 29 at 9:17






  • 1




    Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
    – Rui F Ribeiro
    Apr 29 at 9:28






  • 2




    @C0deDaedalus Just chmod 0777 /root or run the browser as root.
    – dsstorefile1
    Apr 29 at 9:57






  • 1




    @C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
    – Torin Carey
    Apr 29 at 10:24







2




2




Why do you think the browser process is any different from any other process on the system?
– Ignacio Vazquez-Abrams
Apr 29 at 8:59




Why do you think the browser process is any different from any other process on the system?
– Ignacio Vazquez-Abrams
Apr 29 at 8:59




1




1




Anything is possible, however in the name of security, do you really want do do that?
– Rui F Ribeiro
Apr 29 at 9:17




Anything is possible, however in the name of security, do you really want do do that?
– Rui F Ribeiro
Apr 29 at 9:17




1




1




Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
– Rui F Ribeiro
Apr 29 at 9:28




Do not try to work around security protections for your own good. root should not be used to regular operations or even regular maintenance. use a non-priliged user.
– Rui F Ribeiro
Apr 29 at 9:28




2




2




@C0deDaedalus Just chmod 0777 /root or run the browser as root.
– dsstorefile1
Apr 29 at 9:57




@C0deDaedalus Just chmod 0777 /root or run the browser as root.
– dsstorefile1
Apr 29 at 9:57




1




1




@C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
– Torin Carey
Apr 29 at 10:24




@C0deDaedalus /root is no different from any other folder. To access it in a browser you would either need the folder to be readable by an unprivileged user or have the browser run as root. Both of these are a bad idea as that's either leaking sensitive files or potentially compromising your system
– Torin Carey
Apr 29 at 10:24










1 Answer
1






active

oldest

votes

















up vote
3
down vote













As you are trying to access using file:// urls, so access is to the local machine and therefore the directories you can see will be limited to whatever the logged on user that ran the browser, can see.



/root is not a particularly special directory except that it is the home directory of root user. So root user obviously can see it. So will anybody else who is either in the group the /root directory is set to (usually root group) or indeed anybody on the machine if the /root is set world readable.



Note that contrary to the comment posted to your question, to do what you ask, it should be enough to set the directory rights to 0755 - group and world readable instead of 0777 which sets the directory to world writeable and is therefore even bigger security risk.



By and large there shouldn't be anything in /root dir of any interest, so the whole idea is a security risk with no inherent value.






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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f440699%2fhow-to-access-root-directory-from-a-browser%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    As you are trying to access using file:// urls, so access is to the local machine and therefore the directories you can see will be limited to whatever the logged on user that ran the browser, can see.



    /root is not a particularly special directory except that it is the home directory of root user. So root user obviously can see it. So will anybody else who is either in the group the /root directory is set to (usually root group) or indeed anybody on the machine if the /root is set world readable.



    Note that contrary to the comment posted to your question, to do what you ask, it should be enough to set the directory rights to 0755 - group and world readable instead of 0777 which sets the directory to world writeable and is therefore even bigger security risk.



    By and large there shouldn't be anything in /root dir of any interest, so the whole idea is a security risk with no inherent value.






    share|improve this answer

























      up vote
      3
      down vote













      As you are trying to access using file:// urls, so access is to the local machine and therefore the directories you can see will be limited to whatever the logged on user that ran the browser, can see.



      /root is not a particularly special directory except that it is the home directory of root user. So root user obviously can see it. So will anybody else who is either in the group the /root directory is set to (usually root group) or indeed anybody on the machine if the /root is set world readable.



      Note that contrary to the comment posted to your question, to do what you ask, it should be enough to set the directory rights to 0755 - group and world readable instead of 0777 which sets the directory to world writeable and is therefore even bigger security risk.



      By and large there shouldn't be anything in /root dir of any interest, so the whole idea is a security risk with no inherent value.






      share|improve this answer























        up vote
        3
        down vote










        up vote
        3
        down vote









        As you are trying to access using file:// urls, so access is to the local machine and therefore the directories you can see will be limited to whatever the logged on user that ran the browser, can see.



        /root is not a particularly special directory except that it is the home directory of root user. So root user obviously can see it. So will anybody else who is either in the group the /root directory is set to (usually root group) or indeed anybody on the machine if the /root is set world readable.



        Note that contrary to the comment posted to your question, to do what you ask, it should be enough to set the directory rights to 0755 - group and world readable instead of 0777 which sets the directory to world writeable and is therefore even bigger security risk.



        By and large there shouldn't be anything in /root dir of any interest, so the whole idea is a security risk with no inherent value.






        share|improve this answer













        As you are trying to access using file:// urls, so access is to the local machine and therefore the directories you can see will be limited to whatever the logged on user that ran the browser, can see.



        /root is not a particularly special directory except that it is the home directory of root user. So root user obviously can see it. So will anybody else who is either in the group the /root directory is set to (usually root group) or indeed anybody on the machine if the /root is set world readable.



        Note that contrary to the comment posted to your question, to do what you ask, it should be enough to set the directory rights to 0755 - group and world readable instead of 0777 which sets the directory to world writeable and is therefore even bigger security risk.



        By and large there shouldn't be anything in /root dir of any interest, so the whole idea is a security risk with no inherent value.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Apr 29 at 10:29









        Gnudiff

        37318




        37318






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440699%2fhow-to-access-root-directory-from-a-browser%23new-answer', 'question_page');

            );

            Post as a guest













































































            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?