* [Comm] mount при login, umount при logout
@ 2007-10-04 14:12 Olexander Chernetskyy
2007-10-04 14:17 ` Алексей Синицын
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Olexander Chernetskyy @ 2007-10-04 14:12 UTC (permalink / raw)
To: community
Вообщем так.
В fstab есть строка для ntfs-тома с опциями user,noauto.
У каждого юзверя в ~/.kde/Autostart лежит скрипт, который монтирует этот том.
Логинится юзер1. Всё хорошо. Читает, пишет...
Потом юзер1 заканчивает работу и логинится юзер2. И тут - опаньки! Том
остается примонтирован с правами юзеря1. И при копировании на него
получаем ругань "Не могу сменить (не помню чего)". И файл штампуется датой
копирования, что очень плохо и даже вредно. umount требует рута, и ни на
что другое не соглашается.
Вопрос. Как сделать umount этого тома когда юзер заканчивает работу?
--
Best regards,
ArCher
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] mount при login, umount при logout
2007-10-04 14:12 [Comm] mount при login, umount при logout Olexander Chernetskyy
@ 2007-10-04 14:17 ` Алексей Синицын
2007-10-04 14:22 ` Алексей Шенцев
2007-10-04 19:56 ` Michael Shigorin
2 siblings, 0 replies; 6+ messages in thread
From: Алексей Синицын @ 2007-10-04 14:17 UTC (permalink / raw)
To: sp_archer, ALT Linux Community general discussions
04.10.07, Olexander Chernetskyy<sp_archer@meta.ua> написал(а):
> Вообщем так.
>
> В fstab есть строка для ntfs-тома с опциями user,noauto.
> У каждого юзверя в ~/.kde/Autostart лежит скрипт, который монтирует этот том.
> Логинится юзер1. Всё хорошо. Читает, пишет...
> Потом юзер1 заканчивает работу и логинится юзер2. И тут - опаньки! Том
> остается примонтирован с правами юзеря1. И при копировании на него
> получаем ругань "Не могу сменить (не помню чего)". И файл штампуется датой
> копирования, что очень плохо и даже вредно. umount требует рута, и ни на
> что другое не соглашается.
>
> Вопрос. Как сделать umount этого тома когда юзер заканчивает работу?
>
В зависимости от среды. В KDE, в частности, если не ошибаюсь, должно
сработать то что лежит в каталоге ~/.kde/shutdown/ (где прочел про это
не помню и как работает не проверял).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] mount при login, umount при logout
2007-10-04 14:12 [Comm] mount при login, umount при logout Olexander Chernetskyy
2007-10-04 14:17 ` Алексей Синицын
@ 2007-10-04 14:22 ` Алексей Шенцев
2007-10-04 19:56 ` Michael Shigorin
2 siblings, 0 replies; 6+ messages in thread
From: Алексей Шенцев @ 2007-10-04 14:22 UTC (permalink / raw)
To: sp_archer, ALT Linux Community general discussions
В сообщении от Thursday 04 October 2007 18:12:55 Olexander Chernetskyy
написал(а):
> Вообщем так.
>
> В fstab есть строка для ntfs-тома с опциями user,noauto.
Используйте users, а не user
В таком случае пользователи могут не только монтировать, но и размонтировать.
--
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] mount при login, umount при logout
2007-10-04 14:12 [Comm] mount при login, umount при logout Olexander Chernetskyy
2007-10-04 14:17 ` Алексей Синицын
2007-10-04 14:22 ` Алексей Шенцев
@ 2007-10-04 19:56 ` Michael Shigorin
2007-10-08 9:48 ` Olexander Chernetskyy
2 siblings, 1 reply; 6+ messages in thread
From: Michael Shigorin @ 2007-10-04 19:56 UTC (permalink / raw)
To: community
On Thu, Oct 04, 2007 at 05:12:55PM +0300, Olexander Chernetskyy wrote:
> Вопрос. Как сделать umount этого тома когда юзер заканчивает работу?
Мож Вы pam_mount хотите на самом деле?
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
---- Oct 26--27, Kiev, Ukraine:
-- http://conference.osdn.org.ua
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-09 18:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 14:12 [Comm] mount при login, umount при logout Olexander Chernetskyy
2007-10-04 14:17 ` Алексей Синицын
2007-10-04 14:22 ` Алексей Шенцев
2007-10-04 19:56 ` Michael Shigorin
2007-10-08 9:48 ` Olexander Chernetskyy
2007-10-09 18:37 ` Michael Shigorin
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