LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2013, 09:48 AM   #1
bangnagr
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Rep: Reputation: 0
How to create hidden mount point?


OS: CentOS 6.3 GUI

i use a shared centos box and i am trying to figure out how to create hidden mount point to keep my personal files. i am an administrator and i have full access.

earlier i had created 50 gb partition with ext4 file system on it. i used to mount file-system as and when needed and unmount it when i am done. its no problem in boxes with no X, but on boxes with GUI the mount point is clearly visible in "Places" menu eventhough it is not mounted, and since i am supposed to share my root password with fellow admins it is creating unnecessary problems.

is there any way i can do this?

Note: Its ok for me if someone figures it out through terminal, but not through GUI.

Last edited by bangnagr; 03-07-2013 at 12:23 PM. Reason: corrected mistakes
 
Old 03-07-2013, 11:25 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Disable the places menu from config file
mount the directory over some other existing directory with stupid content.
 
Old 03-07-2013, 11:41 AM   #3
bangnagr
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: 0
Do you mean the whole "Places" menu...? If that is what you meant, then i can't, because it contains bookmarks of frequently visited folders/mounts and also you cant access usb drive. not everybody is terminal expert.

unless what you meant is disable my mount point entry from "places" menu... i dont know how to do it. some lights on that will be appreciated.
 
Old 03-07-2013, 02:06 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,649
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Just use encrypted partitions, this way even if an administrator figures it out and tries to mount the partition he still needs a passphrase to do so. Security by obscurity never works anyways, so I wouldn't even try to hide the mountpoint.
 
3 members found this post helpful.
Old 03-08-2013, 08:06 AM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Just use encrypted partitions, this way even if an administrator figures it out and tries to mount the partition he still needs a passphrase to do so. Security by obscurity never works anyways, so I wouldn't even try to hide the mountpoint.
+1

The other option would be to use encrypted directories with ecryptfs etc
 
1 members found this post helpful.
Old 03-09-2013, 02:14 AM   #6
bangnagr
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: 0
Lightbulb

just went through following links about encrypted partitions and tried in virtualbox.

Youtube - Linux Cryptosetup LUKS Tutorial
Create and configure LUKS-Encrypted partitions

looks promising. i always stayed away from encryption as i have heard that if you lose passphrase or usb with key there is NO WAY you can bring back the data. but i can afford that for my partition.

thanks TobiSGD & amani for ideas.

some confusion on luks-encryption
1. after every "cryptsetup luksClose "and "cryptsetup luksOpen" (umount and mount), a new name for device-mapper should be given. is it normal?
2. is it normal/best practice that encryption should be used on production servers? cause i've not encrypted any of my servers.

i would like to keep this post open for any new ideas pop in. hope its not an issue.
 
Old 03-09-2013, 11:05 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,649
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
1. Yes, that is normal, luksClose and luksOpen are not really resembling the umount and mount commands, since you still have to do that afterwards, it is more like attaching a new device to the system and you have to choose its device descriptor.
2. Usually encryption is used for systems that can easily be stolen or get lost, like laptops or netbooks. On servers it does not really make sense, since they are usually running 24/7 and have the partitions mounted, so they have different attack vectors there.
 
1 members found this post helpful.
  


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
how do you create a mount point in se linux jasonaude Linux - Newbie 3 04-13-2012 01:44 AM
unable to create mount point in OEL.. Govind Bisht Linux - Newbie 1 03-25-2012 11:57 AM
[SOLVED] how to create new mount point in linux raffimalik Linux - Newbie 2 10-06-2011 10:04 AM
Create mount point for unused space. lowsy Linux - Newbie 3 10-30-2009 12:16 AM
Create one mount point / partition from 2 drives sir-lancealot Linux - Server 1 08-11-2009 08:29 PM


All times are GMT -5. The time now is 06:23 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration