LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-01-2008, 11:33 AM   #1
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Rep: Reputation: 15
Question Is it possible to deny changing a file's contents even when booting from a LiveCD?


Hi,

I am using /etc/security/time.conf to deny a certain user access based on the time of day. This user, however, has knowledge enough to boot the system using a LiveCD, mounting the partition where time.conf resides, and changing it to allow him to login. I a8.m aware that this is a strange circumstance, but it's actually for real. Is there any way to deny changing a file even if the partition is mounted from another distribution (e.g. a LiveCD).

Thanks.

I am using Ubuntu 8.04.
 
Old 11-01-2008, 12:58 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, if the person isn't enough computer savvy to modify file permissions, you might try to remove the "write" permission from the file alltogether. Another option would be filesystem encryption, but I have no experience with it. From what I understand, you can encrypt just one file,one directory, or the whole partition.

serafean
 
Old 11-01-2008, 02:12 PM   #3
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Disable booting from CD in the BIOS, and password-protect the BIOS?
 
Old 11-01-2008, 04:23 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by dtheorem View Post
Is there any way to deny changing a file even if the partition is mounted from another distribution (e.g. a LiveCD).
No, there isn't. Once you've got to that point, the game is over.
 
Old 11-01-2008, 05:29 PM   #5
Savet
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 73

Rep: Reputation: 15
I'm going to suggest the BIOS password as well for this one.

Remove the cdrom and usb from the boot order, as well as network...leaving only the hard drive as a boot point.

Then password protect the BIOS and they should not be able to boot outside the loaded operating system.
 
Old 11-02-2008, 01:40 AM   #6
ramesh.mimit
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Rep: Reputation: 15
You can change the file attributes so that no one can write data on the file time.conf. Hope this may help.
 
Old 11-02-2008, 01:45 AM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by ramesh.mimit View Post
You can change the file attributes so that no one can write data on the file time.conf. Hope this may help.
Huh? That doesn't make any sense.

File attributes mean nothing to someone using a live CD to access a drive.
 
  


Reply


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
Recover truncated file's contents on XFS? Tomasu Linux - Server 10 04-29-2008 08:08 AM
booting a livecd from Grub replica9000 Linux - General 10 05-23-2007 06:41 PM
changing contents of initrd image kushalkoolwal Debian 4 08-10-2006 09:05 PM
changing contents of $_POST in PHP jiml8 Programming 2 04-04-2006 09:11 AM
Changing a table contents dynamically based on select box rose_bud4201 Programming 4 01-13-2005 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:59 AM.

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