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

Related Questions

Hi my name is Raja i have 8 Years Expnt in Desktop Support i Need to change my Platform From linux basic are Network Base Work
Hi Raja, As you said, you already have some experience on desktop support, so better choose Linux Administration. First learn basic level of Linux Administration from any institute, then go to real time...
Rajasubramanian
My name is Rajesh , working as a Recruiter from past 6 years and thought to change my career into software (development / admin/ testing ) am seeking for some suggestion which technology I need to learn ? Any job after training ? Or where I can get job within 3 months after finishing my training programme- your advices are highly appreciated
Mr rajesh if you want to enter in to software Choose SAP BW AND SAP HANA because BW and HANA rules the all other erp tools next 50 years.it provides rubust reporting tools for quicker decesion of business It very easy to learn
Rajesh
1 0
6
I am having 5+ years exp in civil engineering now I am thinking to move in IT sector can u suggest me which field is better to learn ? I am thinking to do Linux+devops+aws or powerBi 
Hi Waseem, I am a Devops and cloud engineed since last approximatelt 4 years.Linux,DevOps (techniques and tools) and Cloud, all are very much intera-related. DevOps and Cloud both are burning needs in...
Waseem
What is the cost of linux course and how much do the certification cost?
1000 for basic and 2000 for linux advance, for certification, give exam, clear it and you are certified
Anusha

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

Ask a Question

Related Lessons

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...

Linux File System
Linux File system: Right click on Desktop and click open interminal Login to Linux system and run simple commands: Check present Working Directory: $pwd /home/cloudera/Desktop Change Directory: $cd...

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...

Be prepared to get trained--init
Before starting the training,students must be mentally prepared for acceptance of new knowledge. Students must attend training with open minded forgetting the position they are working.This will help...
S

Smartnub Softsolutions

0 0
0

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 A.

1 0
0

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