* [Comm] Неудаляемый /tmp/.private
@ 2004-10-31 1:37 Alexey Borovskoy
2004-10-31 21:50 ` Dmitry V. Levin
2004-11-01 8:54 ` Денис Смирнов
0 siblings, 2 replies; 12+ messages in thread
From: Alexey Borovskoy @ 2004-10-31 1:37 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
Добрый день.
Появился у меня недавно непонятный каталог /tmp/.private. Локов
на него нет, файлов в нем нет, его невозможно удалить даже
рутом. Файловая система XFS.
Но есть одна особенность, если загружаться через init=/bin/bash,
то этого каталога нет. Полтергейст какой-то.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 1:37 [Comm] Неудаляемый /tmp/.private Alexey Borovskoy
@ 2004-10-31 21:50 ` Dmitry V. Levin
2004-11-01 2:20 ` Alexey Borovskoy
` (3 more replies)
2004-11-01 8:54 ` Денис Смирнов
1 sibling, 4 replies; 12+ messages in thread
From: Dmitry V. Levin @ 2004-10-31 21:50 UTC (permalink / raw)
To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
Hi,
On Sun, Oct 31, 2004 at 01:37:08PM +1200, Alexey Borovskoy wrote:
> Появился у меня недавно непонятный каталог /tmp/.private. Локов
rpmquery -f не пробовали?
> на него нет, файлов в нем нет, его невозможно удалить даже
> рутом. Файловая система XFS.
$ rpmquery -f /tmp/.private --scripts --triggers
postinstall scriptlet (through /bin/sh):
/bin/mkdir -p -m711 /tmp/.private
triggerin script (through /bin/sh) -- e2fsprogs
if [ -d /tmp/.private -a -O /tmp/.private ]; then
chattr +a /tmp/.private 2>/dev/null ||:
fi
> Но есть одна особенность, если загружаться через init=/bin/bash,
> то этого каталога нет. Полтергейст какой-то.
У вас /tmp куда-то монтируется.
P.S. (мечтательно) Если бы все вопросы были такими...
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 21:50 ` Dmitry V. Levin
@ 2004-11-01 2:20 ` Alexey Borovskoy
2004-11-01 9:10 ` Dmitry V. Levin
2004-11-01 4:43 ` [JT] " Sergey Golovin
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Alexey Borovskoy @ 2004-11-01 2:20 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
* Понедельник 01 Ноябрь 2004 09:50 "Dmitry V. Levin"
<ldv@altlinux.org>
> Hi,
>
> On Sun, Oct 31, 2004 at 01:37:08PM +1200, Alexey Borovskoy
wrote:
> > Появился у меня недавно непонятный каталог /tmp/.private.
> > Локов
>
> rpmquery -f не пробовали?
>
> > на него нет, файлов в нем нет, его невозможно удалить даже
> > рутом. Файловая система XFS.
>
> $ rpmquery -f /tmp/.private --scripts --triggers
> postinstall scriptlet (through /bin/sh):
> /bin/mkdir -p -m711 /tmp/.private
> triggerin script (through /bin/sh) -- e2fsprogs
> if [ -d /tmp/.private -a -O /tmp/.private ]; then
> chattr +a /tmp/.private 2>/dev/null ||:
> fi
А для чего он создается? Зачем ему защита от удаления?
> > Но есть одна особенность, если загружаться через
> > init=/bin/bash, то этого каталога нет. Полтергейст какой-то.
Если через init=/bin/bash, каталога нет. Если через init {1,3,5}
- каталог есть.
>
> У вас /tmp куда-то монтируется.
Нет, не монтируется. /tmp находится на корневой fs.
У меня нет разделов с ext2 или ext3.
>
> P.S. (мечтательно) Если бы все вопросы были такими...
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-11-01 2:20 ` Alexey Borovskoy
@ 2004-11-01 9:10 ` Dmitry V. Levin
0 siblings, 0 replies; 12+ messages in thread
From: Dmitry V. Levin @ 2004-11-01 9:10 UTC (permalink / raw)
To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]
Hi,
On Mon, Nov 01, 2004 at 02:20:22PM +1200, Alexey Borovskoy wrote:
[...]
> > > Появился у меня недавно непонятный каталог /tmp/.private.
> > > Локов
> >
> > rpmquery -f не пробовали?
> >
> > > на него нет, файлов в нем нет, его невозможно удалить даже
> > > рутом. Файловая система XFS.
> >
> > $ rpmquery -f /tmp/.private --scripts --triggers
> > postinstall scriptlet (through /bin/sh):
> > /bin/mkdir -p -m711 /tmp/.private
> > triggerin script (through /bin/sh) -- e2fsprogs
> > if [ -d /tmp/.private -a -O /tmp/.private ]; then
> > chattr +a /tmp/.private 2>/dev/null ||:
> > fi
>
> А для чего он создается? Зачем ему защита от удаления?
Чтобы вы его случайно не удалили. :)
Если серьёзно, то чтобы нельзя было случайно удалить подкаталоги в нём.
> > > Но есть одна особенность, если загружаться через
> > > init=/bin/bash, то этого каталога нет. Полтергейст какой-то.
>
> Если через init=/bin/bash, каталога нет. Если через init {1,3,5}
> - каталог есть.
>
> > У вас /tmp куда-то монтируется.
>
> Нет, не монтируется. /tmp находится на корневой fs.
И тем не менее, посмотрите на результат
fgrep /tmp /proc/mounts
> У меня нет разделов с ext2 или ext3.
Зато есть xfs.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [JT] Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 21:50 ` Dmitry V. Levin
2004-11-01 2:20 ` Alexey Borovskoy
@ 2004-11-01 4:43 ` Sergey Golovin
2004-11-01 5:07 ` Dmitry Derjavin
2004-11-01 10:32 ` Alexey Borovskoy
3 siblings, 0 replies; 12+ messages in thread
From: Sergey Golovin @ 2004-11-01 4:43 UTC (permalink / raw)
To: ALT Linux general discussion list
* Dmitry V. Levin <ldv@altlinux.org> [ 1 Nov Mon 0:50]
> P.S. (мечтательно) Если бы все вопросы были такими...
(поднимаясь из лужи и суша попу феном)
ага, счас же!
:-)
--
Sergey Golovin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 21:50 ` Dmitry V. Levin
2004-11-01 2:20 ` Alexey Borovskoy
2004-11-01 4:43 ` [JT] " Sergey Golovin
@ 2004-11-01 5:07 ` Dmitry Derjavin
2004-11-01 10:32 ` Alexey Borovskoy
3 siblings, 0 replies; 12+ messages in thread
From: Dmitry Derjavin @ 2004-11-01 5:07 UTC (permalink / raw)
To: community
On Mon, Nov 01 2004 at 07:50, "Dmitry V. Levin" <ldv@altlinux.org> wrote:
>> Появился у меня недавно непонятный каталог /tmp/.private.
>
> rpmquery -f не пробовали?
[...]
> У вас /tmp куда-то монтируется.
>
> P.S. (мечтательно) Если бы все вопросы были такими...
И ответы. ;)
--
~dd
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 21:50 ` Dmitry V. Levin
` (2 preceding siblings ...)
2004-11-01 5:07 ` Dmitry Derjavin
@ 2004-11-01 10:32 ` Alexey Borovskoy
2004-11-01 21:48 ` Dmitry V. Levin
3 siblings, 1 reply; 12+ messages in thread
From: Alexey Borovskoy @ 2004-11-01 10:32 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
* Понедельник 01 Ноябрь 2004 09:50 "Dmitry V. Levin"
<ldv@altlinux.org>
> On Sun, Oct 31, 2004 at 01:37:08PM +1200, Alexey Borovskoy
wrote:
> > Появился у меня недавно непонятный каталог /tmp/.private.
> > Локов
>
> rpmquery -f не пробовали?
>
> > на него нет, файлов в нем нет, его невозможно удалить даже
> > рутом. Файловая система XFS.
>
> $ rpmquery -f /tmp/.private --scripts --triggers
> postinstall scriptlet (through /bin/sh):
> /bin/mkdir -p -m711 /tmp/.private
> triggerin script (through /bin/sh) -- e2fsprogs
> if [ -d /tmp/.private -a -O /tmp/.private ]; then
> chattr +a /tmp/.private 2>/dev/null ||:
> fi
>
> > Но есть одна особенность, если загружаться через
> > init=/bin/bash, то этого каталога нет. Полтергейст какой-то.
>
> У вас /tmp куда-то монтируется.
>
> P.S. (мечтательно) Если бы все вопросы были такими...
Сделал следующее:
1. chattr -a /tmp/.private
2. rm -r /tmp/.private
На очистке /tmp при старте теперь не ругается.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-11-01 10:32 ` Alexey Borovskoy
@ 2004-11-01 21:48 ` Dmitry V. Levin
2004-11-02 0:42 ` Alexey Borovskoy
0 siblings, 1 reply; 12+ messages in thread
From: Dmitry V. Levin @ 2004-11-01 21:48 UTC (permalink / raw)
To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
On Mon, Nov 01, 2004 at 10:32:54PM +1200, Alexey Borovskoy wrote:
> Сделал следующее:
> 1. chattr -a /tmp/.private
> 2. rm -r /tmp/.private
Тогда сделайте и
3. rpm -e pam0_mktemp
> На очистке /tmp при старте теперь не ругается.
А так что, ругается?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-11-01 21:48 ` Dmitry V. Levin
@ 2004-11-02 0:42 ` Alexey Borovskoy
2004-11-02 13:09 ` Alexey Borovskoy
0 siblings, 1 reply; 12+ messages in thread
From: Alexey Borovskoy @ 2004-11-02 0:42 UTC (permalink / raw)
To: community
[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]
* Вторник 02 Ноябрь 2004 09:48 "Dmitry V. Levin"
<ldv@altlinux.org>
> On Mon, Nov 01, 2004 at 10:32:54PM +1200, Alexey Borovskoy
wrote:
> > Сделал следующее:
> > 1. chattr -a /tmp/.private
> > 2. rm -r /tmp/.private
>
> Тогда сделайте и
> 3. rpm -e pam0_mktemp
Машина дома. На работе такого пакета нет, нет и каталога.
> > На очистке /tmp при старте теперь не ругается.
>
> А так что, ругается?
Да. Говорит что не может удалить. Нарисовал патч
на /etc/rc.d/scripts/cleanup.
$rpm -qf /etc/rc.d/scripts/cleanup
startup-0.9.1-alt1
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #1.2: cleanup.patch --]
[-- Type: text/x-diff, Size: 308 bytes --]
--- cleanup.old 2003-05-12 22:05:18 +1300
+++ cleanup 2004-11-02 12:38:41 +1200
@@ -55,6 +55,7 @@
! \( -name quota.group -uid 0 \) \
! \( -name aquota.user -uid 0 \) \
! \( -name aquota.group -uid 0 \) \
+ ! \( -name .private \) \
-depth -print0 |xargs -r0 rm -rf --
)
fi
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] Неудаляемый /tmp/.private
2004-10-31 1:37 [Comm] Неудаляемый /tmp/.private Alexey Borovskoy
2004-10-31 21:50 ` Dmitry V. Levin
@ 2004-11-01 8:54 ` Денис Смирнов
1 sibling, 0 replies; 12+ messages in thread
From: Денис Смирнов @ 2004-11-01 8:54 UTC (permalink / raw)
To: community
On Sun, Oct 31, 2004 at 01:37:08PM +1200, Alexey Borovskoy wrote:
AB> Появился у меня недавно непонятный каталог /tmp/.private. Локов
AB> на него нет, файлов в нем нет, его невозможно удалить даже
AB> рутом. Файловая система XFS.
AB> Но есть одна особенность, если загружаться через init=/bin/bash,
AB> то этого каталога нет. Полтергейст какой-то.
Во-первых у вас, видимо, установлен и используется pam_mktemp.
cat fstab | grep /tmp
что говорит? (мне интересно, почему он исчезает при загрузке с /bin/bash).
А неубиваемый он потому как lsattr /tmp/ | grep .private
--
С уважением, Денис
http://freesource.info
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-11-02 22:46 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-31 1:37 [Comm] Неудаляемый /tmp/.private Alexey Borovskoy
2004-10-31 21:50 ` Dmitry V. Levin
2004-11-01 2:20 ` Alexey Borovskoy
2004-11-01 9:10 ` Dmitry V. Levin
2004-11-01 4:43 ` [JT] " Sergey Golovin
2004-11-01 5:07 ` Dmitry Derjavin
2004-11-01 10:32 ` Alexey Borovskoy
2004-11-01 21:48 ` Dmitry V. Levin
2004-11-02 0:42 ` Alexey Borovskoy
2004-11-02 13:09 ` Alexey Borovskoy
2004-11-02 22:46 ` Dmitry V. Levin
2004-11-01 8:54 ` Денис Смирнов
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