How to access /root directory from a browser?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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.
But,
- Is there a way to access
/root
directory from Chromium or Firefox or any other browser ? - If yes, Will it be a security flaw on the part of browser ?
browser root-access
 |Â
show 6 more comments
up vote
0
down vote
favorite
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.
But,
- Is there a way to access
/root
directory from Chromium or Firefox or any other browser ? - If yes, Will it be a security flaw on the part of browser ?
browser root-access
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 Justchmod 0777 /root
or run the browser asroot
.
â 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
 |Â
show 6 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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.
But,
- Is there a way to access
/root
directory from Chromium or Firefox or any other browser ? - If yes, Will it be a security flaw on the part of browser ?
browser root-access
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.
But,
- Is there a way to access
/root
directory from Chromium or Firefox or any other browser ? - If yes, Will it be a security flaw on the part of browser ?
browser root-access
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 Justchmod 0777 /root
or run the browser asroot
.
â 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
 |Â
show 6 more comments
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 Justchmod 0777 /root
or run the browser asroot
.
â 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
 |Â
show 6 more comments
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Apr 29 at 10:29
Gnudiff
37318
37318
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 asroot
.â 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