LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2013, 09:38 AM   #1
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Private mount namespace for remote logins?


I want to inject a switch to a private mount namespace into the remote login process, so the remote user's desktop and everything under it is running under that namespace.

I've only just read about private mount namespace (while searching for a solution to another problem). I've never used the feature, so any tutorial or cookbook instructions for any use of private mount namespace would help.

Having discovered this feature exists, I'll probably want to use it for a few things, but at the moment my objective to make most of the hidden files and subdirectories in a user's home directory differ depending on whether the user is logged in on the local display or logged in remotely.

My basic plan (please tell me if there is a better way or if there is a serious flaw) is to replace each of the .* names in /home/fred with a symlink to the same name in /local/fred those would be the files used if fred logs into the physical display.

Now if I can get remote log ins to use a different private mount namespace, I would mount a directory on one of our fileservers in place of /local in the private mount namespace of remote users. That would contain a fred subdirectory with a different version of those hidden files, a version used whenever fred logs in remotely to any Centos 6.5 in our LAN.

Any constructive suggestions, alternatives, etc. would be appreciated. I'm way out of my depth here.

Centos 6.6
Kernel 2.6.32

My purpose for all this is explained better in my related thread:
http://www.linuxquestions.org/questi...06#post5088506

Last edited by johnsfine; 12-29-2013 at 09:58 AM.
 
  


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] [C++] How to access a private member of a class through a friend function of another namespace? Aquarius_Girl Programming 5 02-12-2013 05:14 AM
No supported authentication methods available when using a private key for login j.smith1981 Linux - Server 8 03-02-2011 08:14 AM
Namespace! greplinux Linux - Newbie 4 09-02-2008 12:00 AM
namespace vs classes in C++ xeon123 Programming 3 02-18-2007 03:08 AM
LXer: Keep your private documents private LXer Syndicated Linux News 0 06-07-2006 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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