Sudo command and its source
The sudo
command is at /usr/bin/sudo
on my Xubuntu 16.04
I'm interested to know if anyone can advise which program I could use to open this sudo
file and see what the sudo
command is made up of?
I tried using a regular text editor but the file isn't correctly encoded so I can't see anything useful.
sudo source-code
add a comment |
The sudo
command is at /usr/bin/sudo
on my Xubuntu 16.04
I'm interested to know if anyone can advise which program I could use to open this sudo
file and see what the sudo
command is made up of?
I tried using a regular text editor but the file isn't correctly encoded so I can't see anything useful.
sudo source-code
3
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34
add a comment |
The sudo
command is at /usr/bin/sudo
on my Xubuntu 16.04
I'm interested to know if anyone can advise which program I could use to open this sudo
file and see what the sudo
command is made up of?
I tried using a regular text editor but the file isn't correctly encoded so I can't see anything useful.
sudo source-code
The sudo
command is at /usr/bin/sudo
on my Xubuntu 16.04
I'm interested to know if anyone can advise which program I could use to open this sudo
file and see what the sudo
command is made up of?
I tried using a regular text editor but the file isn't correctly encoded so I can't see anything useful.
sudo source-code
sudo source-code
edited Dec 7 '18 at 13:08
Zanna
50.3k13133241
50.3k13133241
asked Jul 2 '16 at 11:10
DayfiriDayfiri
265
265
3
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34
add a comment |
3
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34
3
3
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34
add a comment |
1 Answer
1
active
oldest
votes
sudo
is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudo
To understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
you will see these lines near the beginning:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
You have to uncomment the deb-src
line (remove the #) so it says:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
Save the file and exit. Now run sudo apt update
and then, to dowload the source code package to the current working directory
apt source sudo
Super short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.
add a comment |
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
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f793919%2fsudo-command-and-its-source%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
sudo
is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudo
To understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
you will see these lines near the beginning:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
You have to uncomment the deb-src
line (remove the #) so it says:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
Save the file and exit. Now run sudo apt update
and then, to dowload the source code package to the current working directory
apt source sudo
Super short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.
add a comment |
sudo
is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudo
To understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
you will see these lines near the beginning:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
You have to uncomment the deb-src
line (remove the #) so it says:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
Save the file and exit. Now run sudo apt update
and then, to dowload the source code package to the current working directory
apt source sudo
Super short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.
add a comment |
sudo
is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudo
To understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
you will see these lines near the beginning:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
You have to uncomment the deb-src
line (remove the #) so it says:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
Save the file and exit. Now run sudo apt update
and then, to dowload the source code package to the current working directory
apt source sudo
Super short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.
sudo
is a command and it is an executable program.
You can find out more about how to use it using these commands in the terminal (in order of least -> most detailed):
sudo --help
man sudo
info sudo
To understand more about how it works, you can visit the sudo website where you can browse the source code. You can also download the source code:
First edit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
you will see these lines near the beginning:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
You have to uncomment the deb-src
line (remove the #) so it says:
deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
Save the file and exit. Now run sudo apt update
and then, to dowload the source code package to the current working directory
apt source sudo
Super short summary: sudo is short for 'superuser do' meaning 'execute the following command as the superuser'. Thus, it grants the humble user root privileges for one command and any commands triggered by that command.
edited Nov 25 '16 at 13:33
community wiki
7 revs, 5 users 58%
Zanna
add a comment |
add a comment |
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f793919%2fsudo-command-and-its-source%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
3
I think what you want is Where can I find the source code of Ubuntu. You can't read binary files (stuff in /usr/bin and so on)
– Zanna
Jul 2 '16 at 11:41
Yeah something like that. I mean, I was looking just for sudo source code but this is even wider spectrum. Thanks
– Dayfiri
Jul 2 '16 at 11:49
actually, I think you will find what you want more easily on the sudo website - I edited the wiki answer to include this
– Zanna
Jul 2 '16 at 12:34