LinuxQuestions.org
Review your favorite Linux distribution.
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 05-03-2008, 10:37 AM   #1
Thomas Theimer
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Can Users share a home directory?


I want to have multiple users configured with the same home directory. But when I tried this with two logins, when the owner name for the directory did not match the login name I receive an error when attempting to log in - even when the group of the login ID matched the group name for the directory. Is such a configuration possible? (Ubuntu 8.02 server).
Thanks.

Last edited by Thomas Theimer; 05-03-2008 at 10:38 AM.
 
Old 05-03-2008, 10:51 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,681
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
You could have them share the home directory by putting them all in the same group and setting permissions to something like 770 so that both owner and group have access.

The question is what are you trying to achieve by having all users in a single home directory? The most common need for multiple users to have access to a single directory is because it is some sort of administrative user (e.g. the Oracle Admin user, oracle).

If so it would be better to give each user their own individual login and then setup sudo so they can do something "sudo su - oracle". In this way the admin user still owns all the files. You get the added benefit of knowing who last became that user because all the sudo access is logged.
 
Old 05-03-2008, 12:08 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Just to reinforce a key point: What problem are you trying to solve?

If everyone uses the same directory:
Users cannot have their own settings.
Users can access each other's files.
e-mail is harder to manage.

...and more.
 
Old 05-03-2008, 01:55 PM   #4
Thomas Theimer
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Received your response - went back to verify my configuration - found that I had defined an owner group improperly. Thanks for the prompt.

My intent for users sharing the same home directory is to set up individual FTP access only. Multiple users need access to the same web site source files. A little tweaking of FTP and it appears to be working!

Tom
 
Old 05-03-2008, 02:00 PM   #5
Thomas Theimer
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
pixellany - Hopefully the response I was writing to jlightner answers the question of purpose. I must have made misleading statements in my question, this is not for all users. It seems to be working as I need for giving FTP only access to a couple users. If there is a better way to approach this I am interested as it is all so new. (using proftpd)

Thanks.
 
Old 05-03-2008, 03:32 PM   #6
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
I was able to set my ftp up so that the files the users create are all owned by the same user, so permissions don't conflict. i'm using vsftpd but i'm sure there is a way to do it with proftpd.



Dan
 
  


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
Can't start X on a machine where users home are on an NFS share slacroix Linux - Networking 2 06-10-2005 01:37 PM
Samba :share files from home directory to an other user flashdelux Linux - Software 0 11-29-2004 01:57 PM
Share /home Directory aeruzcar Linux - General 5 09-02-2003 08:50 PM
Can I share my /home directory.. GhostInDarkness Linux - Newbie 7 08-28-2003 04:02 PM
Share home directory cruella Linux - Newbie 4 01-22-2002 02:17 AM


All times are GMT -5. The time now is 02:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration