LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2017, 03:37 PM   #1
swpulitzer
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
Shared home directory for accounts on multiple hosts


I'm working on an 11-node cluster: 1 head node (hn01) and 10 computing nodes (cn01 thru cn10). RHEL-6. Ultimately what I'm trying to do is run mpirun on the cluster. I created a user account, "mac", on the head. This resulted in the expected /home/mac directory being created. When I ssh into one of the computing nodes I can see that directory in the mounted drive space. So far so good.

The problem is that there is no user "mac" on any of the computing nodes. I can create a "mac" account but then that account can't write to /home/mac, I assume because it is owned by the hn01:mac account.

How is this usually handled?

I should add that the whole reason I'm doing this is so I can save an ssh key in the computing node mac accounts to enable mpirun to use it. If there is a better way to do this then please let me know. Thanks.
 
Old 06-27-2017, 05:59 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
You can use chown:
Code:
$ chown -R mac:space/home/mac
That will give all the users in mac's group access to /home/mac. If you do:
Code:
$ chown -R mac:mac /home/mac
then only mac has access.
 
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
[SOLVED] xfs_quota on storage shared by multiple hosts CptSupermrkt Linux - Software 3 07-19-2016 12:39 PM
common home directory /etc/passwd NFS shared across multiple linux systems ron7000 Linux - General 2 09-12-2015 01:39 AM
Partially shared home directory? johnsfine Linux - Server 0 12-30-2013 06:45 PM
Multiple Accounts - Common home directory - Not with Yast!!! n8tgc SUSE / openSUSE 4 09-25-2009 08:17 AM
using one machine to serve the home directory and user accounts shishirkotkar Linux - Software 7 05-04-2008 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 AM.

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