We have an SFTP server (CentOS) set up to give our clients larger files. We set each user up with the following commands:
useradd -g sftpgroup -d /data1 -s /sbin/nologin user1 passwd user1 mkdir /sftp/user1/ mkdir /sftp/user1/data chown user1:sftpgroup /sftp/user1/data/
and the same thing for user2.
This allows our clients to use WinScp to log into the sftp - automatically landing in their own data directory.
Each client's data directory resides on the server in
We have two current issues.
- our sda has become full, and
- we have several very large files that we need to share with at least 6 clients.
We have mounted a new sdb and configured it with
how do I put a shared directory in /data/sftpdata/shareddocs and make it available to the clients winscp login? Possibly with something like a shortcut in each data directory?
If I create a new user with
useradd -g sftpgroup -d /data1 -s /sbin/nologin user3 passwd user3 mkdir /data/sftpdata/user3/ mkdir /data/sftpdata/user3/data chown user1:sftpgroup /data/sftpdata/user3/data/
would that work to create a new user, but use the new drive? Or is there something else embedded in CentOS that needs to be set?