Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-11-2012, 02:15 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
How to lock down Ubuntu

How do I install Linux but without the launcher and to lock it down so the users cannot make changes? Any tips would be helpful. I have install Ubuntu but I need to lock it down.
Old 03-11-2012, 07:26 PM   #2
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 841

Rep: Reputation: 78
You could have /etc and /usr in their own partitions, mounted as read-only file systems. Something like this in your /etc/fstab:

/dev/sda2    /etc    ext4    ro    0    0
/dev/sda3    /usr    ext4    ro    0    0
Every time you want to install something, you will have to remember to mount those file systems as read-and-write:

# mount -o remount,rw /dev/sda2
# mount -o remount,rw /dev/sda3
Then lock them up again:
# mount -o remount,ro /dev/sda2
# mount -o remount,ro /dev/sda3
Old 03-11-2012, 10:17 PM   #3
Registered: Feb 2005
Location: Germany
Distribution: Aptosid
Posts: 148

Rep: Reputation: 19
It that really feasible? I. e. what do I have to worry about that could change at runtime? /var, /tmp and /home come to mind, of course, but is there anything else? In addition to the OP's concerns, this would also be nice for added security against viruses (should any arise... you never know), crackers and so on. Limit the scope to those three directories, and the system will be much easier to monitor for unwanted changes.
Old 03-12-2012, 02:16 AM   #4
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You could also just remove the other users from sudo list, even easier. Meaning don't give them root privileges.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How lock down Ubuntu? cervantes100 Linux - Software 1 03-11-2012 04:03 PM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 12:26 PM
Getting Scroll Lock to Work in Ubuntu 9.10 route277 Linux - Newbie 4 12-28-2009 04:23 AM
lock screen not working in ubuntu gauthamk Ubuntu 5 09-17-2007 07:38 AM
Ubuntu 7.04 System Lock-up linuxschnell Linux - Newbie 4 09-08-2007 09:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration