T
T
Thegoldenmars2020-07-07 23:59:53
cmd/bat
Thegoldenmars, 2020-07-07 23:59:53

How to implement such a system?

There is a conditional local disk (for example, let's take D), it has two folders A and B. There are two users (U1 and U2) - U1 has access only to folder A, and U2 to A and B. The task is to make a script that would transfer (that is, with the move command) ALL contents (that is, files and folders) from folder B to A, while U1 had the same rights to interact with the transferred files that were assigned to him for folder A. The script also should not touch uncopied files. The check should be done every 2 minutes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-07-08
@saboteur_kiev

Make a third user, run the script on his behalf according to the schedule.
Configure access on folders:
A - access to the first and third user.
B - access to the second and third user.
But what are undercopied files, you already decide in the script how to check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question