UrbanPro

Learn Linux from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How can one build a self-control app for Ubuntu? I can edit the /etc/hosts file using a script but the sudo user can still revert the changes. Please help.

Asked by Last Modified  

1 Answer

Learn Linux

Follow 0
Answer

Please enter your answer

Hello Jana :-). In a linux system the root is called the super user for a reason. The root can do anything. The only way that I know of to restrict is to put a password for the root user. Sudo can do anything on a linux system which can be dangerous or self destructive like deleting everything...
read more
Hello Jana :-). In a linux system the root is called the super user for a reason. The root can do anything. The only way that I know of to restrict is to put a password for the root user. Sudo can do anything on a linux system which can be dangerous or self destructive like deleting everything (happens more often than you think with rm -rf command). So your best bet is to lock your root with password. But most linux distributions don’t allow root users to be accessed. Instead they use sudo to get temporary root privileges. This can be controlled by setting which users are part of the sudo group (If your user account is not part of this group you cannot use sudo for temporary root privileges.) So if the user account is like a Guest account then I suggest you create limited accounts without sudo privileges. You cannot block sites through proxies generally. You may block proxies but it turns into a game of cat and mouse. The ultimate one would be Tor browser which nobody can do much about. The only fool proof solution is to block everything except what you want others to access (like only your company website or something). Blacklists to prevent some sites is difficult because there is so many alternatives. You will probably spend all your time on blocking new sites that people find to circumvent your control. tl;dr Limit the privilege of the user account to not be able to use sudo altogether. (This is what management does at my college for the lab systems with linux) NO sudo - Less hassle. The other one can be limited to a certain extent by firewalls but there is no 100% working solution except if the sole purpose of the network is to connect to an intranet. Thanking You, Ngcc Software Technologies. read less
Comments

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

UNDERSTANDING PROCESSES - RED HAT ENTERPRISE LINUX
What is a Process An instance of a program is called a Process. Any command that you give to your Linux machine starts a new process. It is possible that for the same program we have multiple processes. Types...
A

Aseem .

1 0
0

How to detect duplicate address manually in a network from Linux ?
Below script will help you to detect duplicate IP address in a subnet The key command is the arping command which will send out an ARP packet with DAD (duplicate address detection) If the return...

how to learn linux system/server adminstration effectively
First the person looking to learn linux adminstration needs to strat from the basic and should practise everyday for atleast 2 hours a day

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

Linux Syllabus
Part I Geting Familiar with Red Hat Enterprise Linux Chapter 1 Geting Started with Red Hat Enterprise Linux Linux, Open Source, and Red Hat Origins of Linux Distributions Fedora Red Hat Enterprise...

Recommended Articles

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for Linux Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Linux Classes?

The best tutors for Linux Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Linux with the Best Tutors

The best Tutors for Linux Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more