Unix Technical Forum

Private directory

This is a discussion on Private directory within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Greetings I was curious if there was a way to make a totally private directory. I have a few ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 01:01 PM
Scott Eberl
 
Posts: n/a
Default Private directory

Greetings

I was curious if there was a way to make a totally private directory. I
have a few friends who have sudo access on my box and if I recall that
means they can go ANYWHERE on the system correct?

Is there a way to grant sudo access to a user but exclude 1 specific
directory? Can I somehow change the permissions to say only let this
person in if they didn't use sudo to get root? I have sensitive stuff in
this directory but can't seem to find a way to totally close it off to
only me strictly.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 01:02 PM
Jeffrey Froman
 
Posts: n/a
Default Re: Private directory

Scott Eberl wrote:

> I was curious if there was a way to make a totally private directory. I
> have a few friends who have sudo access on my box and if I recall that
> means they can go ANYWHERE on the system correct?


"sudo" can be configured to allow users to use certain commands as other
users. If it is configured to allow these other users to use ALL commands
as "root", then yes, they can go anywhere.

> Is there a way to grant sudo access to a user but exclude 1 specific
> directory? Can I somehow change the permissions to say only let this
> person in if they didn't use sudo to get root?


If these users have full root access, there is no way, as far as I know.
Consider keeping your sensitive data on removable media, rather than the
hard drive. Another possibility would be to encrypt the data using a
password protected encryption key. You could set up encryption using "gpg"
and its relations.

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 01:02 PM
Alan Hicks
 
Posts: n/a
Default Re: Private directory

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Scott Eberl dared to utter,
> I was curious if there was a way to make a totally private directory. I
> have a few friends who have sudo access on my box and if I recall that
> means they can go ANYWHERE on the system correct?


If you only occasionally access that information, you may be able to
put it into an encrypted filesystem and only mount it when you need it.
Otherwise, you'll probably have to look at something like SE-Linux to
make that work.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBBaTflKR45I6cfKARAsxQAJ4pjDXvWzYwKtLPgjchlk gzZ5F32gCgjJxl
/04RQuV+1uctTjgV14rTf0Q=
=TEqD
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 01:02 PM
Faux_Pseudo
 
Posts: n/a
Default Re: Private directory

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

_.-In alt.os.linux.slackware, Scott Eberl wrote the following -._
> I was curious if there was a way to make a totally private directory. I
> have a few friends who have sudo access on my box and if I recall that
> means they can go ANYWHERE on the system correct?


Yup. And it means that if they decide they aren't your friend any
more then you won't have a system. Take way their sudo rights.

As one person mentioned you can limit the power of people using sudo.
But here is an old trick from my windows friends. When they had a dir
they didn't want people to find they would put it someplace that
people /never/ look. The favorit place for this was the help dir. No
one ever goes there on a windows system since help is tied directly to
the app. On a linux box places that people never go are places like
/etc/X11/xdm/pixmaps/ and /usr/src/linux/*/*/*. The bigger the system
the easier it is to hide something in plain sight. And you can always
"mkdir .\ " or "mkdir \ " to obscure a dir. But anyone playing with
"find" might stumble onto thoes. loop mouted encrypted file systems
are fun. So are portable keychain drives.

But the best of all is just not handing out sudo.

- --
.-')) http://asciipr0n.com/fp ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBBcgQSJec2PH9pbURAgIUAJ9yWpnehPb1rBiQ+Yf2Cn GUmFYotgCfWlNk
PjbyJ4FW4L6E3FtJ3TghFYQ=
=jXGY
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com