Несколько пользователей SFTP'инга в один домашний каталог с CageFS?
Форум
  1. Forums
  2. General
  3. General Discussion
  1. John Buckner
  2. Wednesday, 01 April 2015
  3.  Subscribe via email
sharing same user id or using groups possible?
Rate this post:
  1. 01.04.2015 11:04:53
  2. # 1
John Buckner Accepted Answer
Posts: 5
Joined: 26.01.2015
0
Votes
Undo
Hi,

On a CageFs server using Litespeed, I would like to be able to allow multiple SFTP users with different usernames/passwords be able to login to the same /home/user directory and have read/write access.  

Any thoughts on the feasibility or obvious issues with either of these two approaches?:

1) Using the same user id for multiple users, via the useradd --non-unique option.  Seems like it would be the easiest approach though not sure if abusing the userid like this could lead to unstable behavior.

2) Using Groups -  adding users to groups and the group is the CageFS "user".  I guess would need to have multiple groups using setfacl such as group "nobody" is needed for some files.  Am guessing this approach is not possible or likely to work.

It will take me some time to try out & fully test both approaches so any insight is appreciated!
John
  1. 01.04.2015 11:04:33
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
#1 is the easiest.
  1. 06.04.2015 22:04:31
  2. # 3
John Buckner Accepted Answer
Posts: 5
Joined: 26.01.2015
0
Votes
Undo
Will do, thanks for the feedback!
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.