Solved

Can two users share a home directory?

Posted on 2006-11-14
3
200 Views
Last Modified: 2013-12-16
Greetings!  

I have two users that both need to share a home directory.  The home directory is on a raid device (path: /mnt/raid/images/jpg).  I have a user (usera) set up with their home directory pointing to /mnt/raid/images/jpg.  This is so that when they use vsftp they will start in this directory (they do not have shell access).  The permissions for the directory are set to 777.  

My question:  will adding another user (user2) with the same home directory screw anything up?  My gut feeling says no, but it's always better to double check (since my test server is currently smoking).

Please and thank you.
0
Comment
Question by:Ziggie013
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
ygoutham earned 75 total points
ID: 17944732
you can put the /home/user directory with the same group.  add both the users to a separate group and have the permissions set to 770. should solve it.  do not create any separate group for the users.  add them both to the same group as their primary group.

usermod -g separate_group user1
usermod -g separate_group user2
chgrp -R separate_group /home/user
chmod -R 770 /home/user

that should do the trick.
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17944736
when you change the directory permissions to 777 then the files created by different users (assuming that they have their own private group for their username) would be on user:group basis.  change the vsftpd.conf to have the upload mask as 0770 so that the group also has read write permissions.
0
 
LVL 1

Author Comment

by:Ziggie013
ID: 17946482
Well, 777 is what we want cuz other users add files to these directories too (via Samba).  

You did though answer my question that there should be no weird results in allowing two users to share a home directory.  

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now