LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-13-2011, 09:26 AM   #1
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
Sharing .bash_profile across several machines


Hi all. So, I have several Linux machines I'd like to share the same .bash_profile and an Active Directory server (running Windows 2008) with Microsoft Identity Management for Unix. I'm using LikeWise to join the Linux guests to the AD domain which seems to work fine. I'm wondering if there's a way I can tell the Linux guests to share a common .bash_profile, similar, I suppose, to roaming profiles for Windows guests. Or, if there's another way to get the job done, I don't necessarily have to go through AD at all. Just trying to find a way to have each user have their own .bash_profile files presented to them as soon as they login to the Linux guest.
 
Old 12-14-2011, 03:36 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by loadedmind View Post
Hi all. So, I have several Linux machines I'd like to share the same .bash_profile and an Active Directory server (running Windows 2008) with Microsoft Identity Management for Unix. I'm using LikeWise to join the Linux guests to the AD domain which seems to work fine. I'm wondering if there's a way I can tell the Linux guests to share a common .bash_profile, similar, I suppose, to roaming profiles for Windows guests. Or, if there's another way to get the job done, I don't necessarily have to go through AD at all. Just trying to find a way to have each user have their own .bash_profile files presented to them as soon as they login to the Linux guest.
It's been a while so I'll reply even though I know nothing about "Microsoft Identity Management for Unix" or LikeWise,starting with some clarifying questions ...

What do you want to achieve with the shared .bash_profile?

Do you want one .bash_profile to be used by each user, regardless of which Linux system they log on to? Will each user's be different?
 
Old 12-15-2011, 10:57 AM   #3
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Hi catkin and thanks for the reply. The .bash_profile will be catered to each individual user and will be brought in as the accounts are created. Each user will have their own set of aliases they prefer within these .bash_profile files, along with any other personalizations. I wasn't sure whether the hosts could somehow get these files pulled automatically from the Active Directory server - perhaps upon successful authentication the .bash_profile will be sent across or some other way. It doesn't have to involve Active Directory, but that was just my thought process of possible ways to get the end result accomplished.
 
Old 12-19-2011, 09:43 AM   #4
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Anyone?
 
Old 12-19-2011, 09:59 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How are the accounts being created? If that is when you want to copy the .bash_profile file (any reason for .bash_profile rather than the more conventional .bashrc?) then whatever is being used to create the accounts is what you need to hook into. Assuming some hook is available, where is the master copy of .bash_profile to be copied from?

Whatever you do, if the user changes their .bash_profile on one system it will not be updated on others. You could get around this by keeping a master .bash_profile (or a scrippet it sources) on a networked drive ...
 
Old 01-05-2012, 10:07 AM   #6
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
Thanks catkin. The accounts are being created with the newusers script, unless you suggest a better alternative. I'm supposing I'll just end up choosing one of the Linux machines that already has the most pristine rendition of the .bash_profile and user accounts present and then just push out from that machine.

The last part you mentioned - "You could get around this by keeping a master .bash_profile..." - can you please elaborate more on what that might look like?

Thanks for your time.
 
Old 01-06-2012, 08:25 AM   #7
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
How about yet another idea. Assuming the network can handle the load, you could just centralize the home directories of each machine. Then you have 1 place to distribute everything to, everyone has their personal files no matter which machine they're sitting at, and you simplify backing up documents.
 
Old 01-10-2012, 05:26 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Have you looked into NFS home dirs?
 
Old 01-16-2012, 11:44 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by loadedmind View Post
The last part you mentioned - "You could get around this by keeping a master .bash_profile..." - can you please elaborate more on what that might look like?
Sorry for delay -- a cyclone took away our electricity for a while. I was thinking of putting the .bash_profile (or a scrippet sourced from a local .bash_profile) on a networked drive along the lines custangro has suggested.
 
  


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
sharing users between several machines coal-fire-ice Linux - Security 3 08-24-2007 02:18 AM
file sharing between 2 linux machines. keeshan Linux - Networking 1 07-26-2007 09:22 PM
File sharing between two linux machines sridharanvinod Linux - Distributions 2 02-01-2004 11:23 AM
Internet Sharing on Linux machines varunbihani Linux - Networking 10 07-20-2003 09:34 AM
Sharing drives - 2 Linux Machines mjgeiger Linux - Networking 4 10-25-2002 11:37 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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