HomeНаука и техникаRelated VideosMore From: Steven Gordon

Basic Linux Permissions part 6: sudo and sudoers

166 ratings | 44319 views
Demonstration of how to give users permissions to execute commands as sudo in a Linux operating system. Includes example of allowing user to execute a selected set of commands as root. Commands/files: sudo, /etc/sudoers, /etc/sudoers.d, adduser, /etc/group. Created by Steven Gordon on 7 March 2012 at Sirindhorn International Institute of Technology, Thammasat University, Thailand.
Html code for embedding videos on your blog
Text Comments (17)
gummadi sai pranavi (1 month ago)
Thank you so much great covering of sudo usage
GSP ivan (8 months ago)
great tutorial...
Cesar Garcia (2 years ago)
Hi Steven hey when i put "admin" /etc/sudoers I can see the feedback lpadmin but not admin is this the same? send me an email please [email protected]
tyto grego (2 years ago)
I Like your video but I have some problems. On my linux ubuntu the command sudo does'nt work or does not exist anymore. How to restart; or install new one. Thanks
Piotr Sarna (2 years ago)
Great, thanks! :)
isi (3 years ago)
Thanks a lot
Jose Anthony Miranda (3 years ago)
Great video.. Thank you so so so so so much..
davoidd (4 years ago)
Great video, but just too confusing I just wanted to know how to modify one user to only have access to inconfig and ifup ifdown route commands. Any idea how i'd go about that?
Zachary Windsor (4 years ago)
+Steven Gordon Ok thanks. It's a school computer, and so I'm not sure whether or not repercussions will come from it or not. 
Steven Gordon (4 years ago)
+Zachary Windsor I dont think you can stop it. By default trying to use sudo without the permissions to do so will trigger an email to the system admin and a record in a log file. The email includes the command you tried so the admin can see what you attempted to do. It depends on the system you are using and who the admin is but i suspect it wont be a problem. The admin may not even notice or care about it, or may even contact you to see if you need help. In your case if you are trying to install software in your own folder then its best to talk to admin as to how to do that.
Zachary Windsor (4 years ago)
+Steven Gordon I need info: I was trying to do something that involved a sudo command, it asked for password, and not knowing what it meant, I typed in my, non admin, password that I use to log on. It said "incident will be reported". I looked this up and found that this means an email will be sent to the admin about it. I am afraid because all I was trying to do was run steam without having to type in the admin password. I did not want to save anything permanently on the applications folder, for I was planing to put it on my usb.  So, has that email been sent, and am I going to get in trouble for doing this? Is there any way to prevent the admin from knowing, or am I fucking screwed?
davoidd (4 years ago)
Yeh thanks I could see what it was doing, will try that thanks
Steven Gordon (4 years ago)
In the video an example of such a file with multiple commands and groups (as opposed to a single user) starts at 13:36 http://youtu.be/YSSIm0g00m4?t=13m36s
Rama Kambhampati (4 years ago)
wonderful video sir. Thanks
yagnesh yagnesh (5 years ago)
A Very handy sudo configuration boss thank u
Priti Ranjan Sahoo (5 years ago)
thank u very very much ... n its really help full ... m glad dat for u only i got d IDEA..... ;-)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.