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

We are looking for IT Training for Online Training Could you please how i select them
Hi Raheem, You can attend demo classes. Please contact me for your requirement.
Profile Photo
Raheem
0 0
View Comments8
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
Profile Photo
Rajesh
1 0
View Comments6
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
Profile Photo
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

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

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

LINUX - SETTING UP YUM REPOSITORY
If we buy RHEL 7 the system by default will be connected to Red Hat Network (RHN). All packages and updates will be installed from RHN. So RHN will be our main source and repository. Since we have...
A

Aseem A.

1 0
View Comments0

Linux Introdution
Linux is a UNIX-base operating system. Its original creator was a Finnish student name Linus Torvalds, although being ‘open source’ it has change a great deal since its original conception....
Profile Photo

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
Profile Photo

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