LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2002, 07:17 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Stop root from accessing my files


Is there a way to make it so root cannot see my files? Such as creating a directory that only I can view, and add files to it.

I mean root can log in, and go into the directory in which my directory existed, and even by typing 'ls -a' then root still wouldn't see it, so I don't mean just hidden, but even if root could see the folder, root couldn't access it.

I only have linux on my home system, so no, I am not trying to hide files from any admin dudes or anything, I am just wanting to know if you can do this, and if so, how.

Thanks for any ideas/links.

Cool
 
Old 10-17-2002, 07:46 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Basically no, root has no restrictions on the system, even if you chmod 400 your files that only you can view it, root can modify these files
 
Old 10-17-2002, 08:05 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you will need to encrypt your files.
 
Old 10-17-2002, 08:19 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Crypto FS - It's available through the setup (yast2) on SuSE 7.3 and up.
 
Old 10-17-2002, 08:49 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Cool, thanks guys.

I also am wondering about cross distro root access...

If I use encription for any given file, if I log into another distro on the same box, and mount the drive, can root still access the file then?

Example:
I have Slack installed on /dev/hda1
I install another Slack on /dev/hdb1
boot into /dev/hdb1 and mount /dev/hda1 on /mnt/slack1
Now, as root, I enter directory /mnt/slack1/home/ecryption
in which the files are encrypted, but I encrypted them when I was booted into slack on /dev/hda1.
Would I be able to then access them?

I think my example is more confusing than just realizing what I am asking

Anyway, any thoughts on that?

Thanks guys for participating

Cool
 
Old 10-17-2002, 09:21 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Encrypting the individual files will not hide them. You should look into something such as CryptoFS or StegFS.

Last edited by stickman; 10-17-2002 at 09:26 PM.
 
Old 10-17-2002, 09:44 PM   #7
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
visible like this?

Z`s`kg<"3^CV̘0AV ^8~8"bXa_\DcYa*0

I invite everybody to crack it. I'll give you one year.
 
Old 10-18-2002, 03:09 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
though it's visable it cannot be read.

However it can be deleted
 
Old 10-20-2002, 11:58 AM   #9
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Rep: Reputation: 15
chmod 000 myfile
 
Old 10-20-2002, 12:01 PM   #10
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Rep: Reputation: 15
you need: http://www.gnupg.org/
 
Old 10-20-2002, 12:05 PM   #11
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Rep: Reputation: 15
Oh there are many cool thing you could do.

cat your encryped file to the end of a seemingly beniegn file like tmp.txt.
you could name your file .myfile (that way root would have to ls -a to see it).
You could call it ".. " ( dor dot space ) , just like viruses do.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A question on Apache accessing root files narc SUSE / openSUSE 3 05-01-2005 10:25 AM
creating files/folders accessing root folder remotely NapalmBob Linux - Networking 2 09-24-2004 10:47 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
how do i stop root password reset? robhargreaves Linux - Security 3 01-31-2004 09:16 AM
Iptables stop my linux box from accessing the web sundown Linux - Networking 7 06-12-2001 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:44 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