Understanding Multi-Person Directory and File Permissions

Asked 2 years ago, Updated 2 years ago, 97 views

There is an environment where sftp simultaneously edits files on the server.

Sftp users have as many people as they want to connect, so how would you like to set permissions?

In this case, I don't even know if it's better for sftp users to share as one.

ftp

2022-09-30 20:14

1 Answers

It may depend on the reason for separating users, but when sharing files between different UNIX users, the following methods may be considered:

(a). Create a UNIX group for sharing and join each user to that group
(b)Specify permissions per user using the file system ACL feature (POSIX ACL)

(a) is a group-by-group permission designation, so I think it is difficult to specify an exception only for a specific user.

(b) can specify permissions in detail on a per-user basis, but may require remounting of partitions in some environments.

Also, if you don't mind giving the same access across shared users,
"Create a single UNIX user for sharing and use public key authentication to register and manage each user's public key with a UNIX user for sharing."


2022-09-30 20:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.