LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 08:48 AM   #1
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Rep: Reputation: 4
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 11:23 AM. Reason: corrected mistakes
 
Old 03-07-2013, 10:25 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

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, 10:41 AM   #3
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Original Poster
Rep: Reputation: 4
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, 01:06 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 07:06 AM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

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, 01:14 AM   #6
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Original Poster
Rep: Reputation: 4
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, 10:05 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration