Re: [openSSH] home dir shared between users
- From: Ertugrul Soeylemez <never@xxxxxxxxxxxxxx>
- Date: Mon, 6 Feb 2006 00:15:47 +0100
Hi there,
You shouldn't have a common home directory between users. Instead
create an own home directory for each user and put an authorized_keys
(with a single key) and a symlink to the actual data directory there.
Example:
/var/scpusers/ Directory containing data to download
/var/scpupload/ Common upload directory
/home/someuser/.ssh/authorized_keys Holding a single auth key
/home/someuser/pub Symlink to /var/scpusers
/home/someuser/upload Symlink to /var/scpupload
If you use useradd(8) to create users, then you can predefine this
directory structure in /etc/skel/, and then create users with something
like this:
useradd -m USERNAME
You'll still need to create the authorized_keys file manually in a
separate step.
Regards.
.
- Follow-Ups:
- Re: [openSSH] home dir shared between users
- From: Lars Wilke
- Re: [openSSH] home dir shared between users
- References:
- [openSSH] home dir shared between users
- From: Lars Wilke
- [openSSH] home dir shared between users
- Prev by Date: [openSSH] home dir shared between users
- Next by Date: Re: OpenSSH passwordless scp not working
- Previous by thread: [openSSH] home dir shared between users
- Next by thread: Re: [openSSH] home dir shared between users
- Index(es):
Relevant Pages
|