From: anyr@tut.by To: community@lists.altlinux.org Subject: [Comm] Общий доступ к файлам для пользователей. Date: Tue, 26 Jan 2010 22:36:24 +0200 Message-ID: <hjnjo7$62q$1@ger.gmane.org> (raw) Знаю, что тема уже неоднократно поднималась. Было рекомендовано для таких целей использовать samba или fat32. Но ни того ни другого пока не хочется. Суть задачи - разрешить общий доступ к файлам нескольким пользователям, скажем в каталоге /public. Необходимо, чтобы вновь созданные и скопированные туда файлы и каталоги имели права 664 и 775 соответственно, при условии, что они будут принадлежать общей для пользователей группе. У меня всего 2 пользователя на компьютере. Я поменял umask в /etc/profile на 002 и добавил каждого пользователя в персональную группу другого (благо их только 2), а также ко всем уже имеющимся файлам в ~/ применил chmod -R ug=rwXrwX. Теперь при копировании старых файлов из ~/ в общий каталог, или при создании новых проблем не должно возникнуть. Но вот с файлы, которые копируются со сменных устройств будут иметь права 700. Есть ли возможность заставить udev давать права файлам на сменных устройствах 664, а для каталогов 775? P.S.: Сейчас в cron висит задание давать требуемые права раз в неделю. Есть еще вот такой способ: http://karapuzz.blogspot.com/2009/03/linux.html Хотелось бы "на лету". -- Andrey Yurkovsky
next reply other threads:[~2010-01-26 20:36 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-01-26 20:36 anyr [this message] 2010-01-30 9:36 ` anyr 2010-01-31 12:25 ` anyr 2010-01-31 15:36 ` anyr 2010-01-31 15:44 ` Denis Nazarov 2010-01-31 18:38 ` anyr
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='hjnjo7$62q$1@ger.gmane.org' \ --to=anyr@tut.by \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git