How do you give two users access to в single dropbox folder?

I have two accounts on my computer. One ты существуешь в password, the other doesn't. They both need access to the same поля but гd also like to keep these поля backed up. гm doing stenography and these пахал my персонал dictionaries. They're going to change в lot over украл and гd like to have access to those changes from one account to the other.

I использовал the stenography account because it's в clean desktop which isn't cluttered with thousands of icons from all my other interests (game-dev, communications programs, и т.д.). It's where I do transcription services for work.

What I need:

I do not want the other account having access to my home folder. It's not password protected so anyone could get into my stuff. I need в single folder, which is automatically backed up whenever changes пахал made (preferably in my dropbox folder), to be accessible to both accounts.

гve tried 777ing the folder and putting в соединение in the / directory of the hard drive. That didn't work.

3
задан 8 January 2016 в 22:24

1 ответ

Я создал бы новую группу, добавить оба учетных записей пользователей к той группе и затем установить группу каталога рекурсивно на ту и дать ему чтение и полномочия записи для всех файлов, затем наконец установить его, что все новые файлы и папки автоматически принадлежат новой группе:

sudo addgroup newgroup
sudo adduser user1 newgroup
sudo adduser user2 newgroup
sudo chgrp -R newgroup /path/to/shared/folder
sudo chmod -R g+rw /path/to/shared/folder
sudo find /path/to/shared/folder -type d -exec chmod g+s {} +

команды выше предполагают, что Ваши два учетных записей пользователей user1 и user2, новая общая группа станет именованной newgroup и что местоположение Ваших файлов для совместного использования между учетными записями /path/to/shared/folder. Измените их для установки ситуации.

2
ответ дан 1 December 2019 в 16:59

Другие вопросы по тегам:

Похожие вопросы: