* [Comm] p6: root locale after su
@ 2012-09-10 5:25 Andrew Borodin
2012-09-10 5:42 ` Ilja Raskin
2012-09-11 8:51 ` Dmitry V. Levin
0 siblings, 2 replies; 15+ messages in thread
From: Andrew Borodin @ 2012-09-10 5:25 UTC (permalink / raw)
To: community
Здравствуйте!
Исходные данные: /etc/sysconfig/i18n пуст, у пользователя и рута
свои ~/.i18n с разными локалями: у юзера KOI8-R, у рута POSIX.
После перехода на p6 неожиданно обнаружил следующее:
1. Если залогиниться рутом, то локаль у рута POSIX.
2. Если залогиниться пользователем, а потом перейти в рута через
su -, то у рута локаль KOI8-R, т. е. пользовательская.
Как так?
--
С уважением
А. Бородин.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-10 5:25 [Comm] p6: root locale after su Andrew Borodin
@ 2012-09-10 5:42 ` Ilja Raskin
2012-09-10 6:18 ` Andrew Borodin
2012-09-11 8:51 ` Dmitry V. Levin
1 sibling, 1 reply; 15+ messages in thread
From: Ilja Raskin @ 2012-09-10 5:42 UTC (permalink / raw)
To: ALT Linux Community general discussions
А если через su а не su - (разница в этом самом "-").
10 сентября 2012 г., 9:25 пользователь Andrew Borodin
<borodin@zarya-k.ru> написал:
> Здравствуйте!
>
> Исходные данные: /etc/sysconfig/i18n пуст, у пользователя и рута
> свои ~/.i18n с разными локалями: у юзера KOI8-R, у рута POSIX.
>
> После перехода на p6 неожиданно обнаружил следующее:
> 1. Если залогиниться рутом, то локаль у рута POSIX.
> 2. Если залогиниться пользователем, а потом перейти в рута через
> su -, то у рута локаль KOI8-R, т. е. пользовательская.
>
> Как так?
>
> --
>
> С уважением
> А. Бородин.
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
--
With best regards,
Ilya V. Raskin.
e-mail: ilja.raskin@gmail.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-10 5:42 ` Ilja Raskin
@ 2012-09-10 6:18 ` Andrew Borodin
2012-09-11 5:36 ` Andrew Borodin
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Borodin @ 2012-09-10 6:18 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Mon, Sep 10, 2012 at 09:42:34AM +0400, Ilja Raskin wrote:
> А если через su а не su - (разница в этом самом "-").
А смысл? Я знаю, чем отличается "su -" от просто "su".
p6 у меня пока только дома, так что смогу всё ещё раз проверить
только вечером.
--
С уважением
А. Бородин.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-10 6:18 ` Andrew Borodin
@ 2012-09-11 5:36 ` Andrew Borodin
2012-09-11 5:57 ` REAL
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Borodin @ 2012-09-11 5:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Mon, Sep 10, 2012 at 10:18:46AM +0400, Andrew Borodin wrote:
> On Mon, Sep 10, 2012 at 09:42:34AM +0400, Ilja Raskin wrote:
> > А если через su а не su - (разница в этом самом "-").
> А смысл? Я знаю, чем отличается "su -" от просто "su".
В общем, что с минусом, что без минуса, всё едино: локаль у рута
не та, что у него в ~/.i18n.
Неужели ни у кого не воспроизводится?
--
С уважением
А. Бородин.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 5:36 ` Andrew Borodin
@ 2012-09-11 5:57 ` REAL
2012-09-11 6:17 ` Ilja Raskin
0 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2012-09-11 5:57 UTC (permalink / raw)
To: ALT Linux Community general discussions
11.09.2012 12:36, Andrew Borodin пишет:
>>> А если через su а не su - (разница в этом самом "-").
>
>> А смысл? Я знаю, чем отличается "su -" от просто "su".
>
> В общем, что с минусом, что без минуса, всё едино: локаль у рута
> не та, что у него в ~/.i18n.
>
> Неужели ни у кого не воспроизводится?
Воспроизводится. Правда, у меня в /etc/sysconfig/i18n отнюдь не пусто.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 5:57 ` REAL
@ 2012-09-11 6:17 ` Ilja Raskin
2012-09-11 6:22 ` REAL
2012-09-11 6:26 ` Andrew Borodin
0 siblings, 2 replies; 15+ messages in thread
From: Ilja Raskin @ 2012-09-11 6:17 UTC (permalink / raw)
To: ALT Linux Community general discussions
У меня тоже воспроизвелось. Пытался читать man su и создалось
впечатление что при этом подменяется только идентификатор, а не
происходит вход в систему заново.
11 сентября 2012 г., 9:57 пользователь REAL <real@kemsu.ru> написал:
> 11.09.2012 12:36, Andrew Borodin пишет:
>
>>>> А если через su а не su - (разница в этом самом "-").
>>
>>
>>> А смысл? Я знаю, чем отличается "su -" от просто "su".
>>
>>
>> В общем, что с минусом, что без минуса, всё едино: локаль у рута
>> не та, что у него в ~/.i18n.
>>
>> Неужели ни у кого не воспроизводится?
>
>
> Воспроизводится. Правда, у меня в /etc/sysconfig/i18n отнюдь не пусто.
>
> --
>
> REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
>
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
--
With best regards,
Ilya V. Raskin.
e-mail: ilja.raskin@gmail.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 6:17 ` Ilja Raskin
@ 2012-09-11 6:22 ` REAL
2012-09-11 6:26 ` Andrew Borodin
1 sibling, 0 replies; 15+ messages in thread
From: REAL @ 2012-09-11 6:22 UTC (permalink / raw)
To: ALT Linux Community general discussions
11.09.2012 13:17, Ilja Raskin пишет:
> У меня тоже воспроизвелось. Пытался читать man su и создалось
> впечатление что при этом подменяется только идентификатор, а не
> происходит вход в систему заново.
"su -" ещё и переменные окружения подменяет. Только с локалью,
оказывается, это не проходит.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 6:17 ` Ilja Raskin
2012-09-11 6:22 ` REAL
@ 2012-09-11 6:26 ` Andrew Borodin
2012-09-11 7:40 ` Андрей Черепанов
1 sibling, 1 reply; 15+ messages in thread
From: Andrew Borodin @ 2012-09-11 6:26 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Tue, Sep 11, 2012 at 10:17:18AM +0400, Ilja Raskin wrote:
> У меня тоже воспроизвелось. Пытался читать man su и создалось
> впечатление что при этом подменяется только идентификатор, а не
> происходит вход в систему заново.
"su -" -- это короткая варинт "su -l root". Ключ -l -- это именно
login shell. На p5 всё работает адекватно.
Версия пакета su та же самая, что в p5, что в p6 - 0.60. Разница
только в номере сборки пакета: в p5 -- alt26, в p6 -- alt29.
http://packages.altlinux.org/en/Platform6/srpms/SimplePAMApps/changelog
Мне из этого не ясно, кто же виноват.
--
С уважением
А. Бородин.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 6:26 ` Andrew Borodin
@ 2012-09-11 7:40 ` Андрей Черепанов
2012-09-11 8:00 ` Andrew Borodin
0 siblings, 1 reply; 15+ messages in thread
From: Андрей Черепанов @ 2012-09-11 7:40 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
11.09.2012 10:26, Andrew Borodin пишет:
> On Tue, Sep 11, 2012 at 10:17:18AM +0400, Ilja Raskin wrote:
>> У меня тоже воспроизвелось. Пытался читать man su и создалось
>> впечатление что при этом подменяется только идентификатор, а не
>> происходит вход в систему заново.
>
> "su -" -- это короткая варинт "su -l root". Ключ -l -- это именно
> login shell. На p5 всё работает адекватно.
>
> Версия пакета su та же самая, что в p5, что в p6 - 0.60. Разница
> только в номере сборки пакета: в p5 -- alt26, в p6 -- alt29.
>
> http://packages.altlinux.org/en/Platform6/srpms/SimplePAMApps/changelog
>
>
Мне из этого не ясно, кто же виноват.
http://git.altlinux.org/gears/S/SimplePAMApps.git?p=SimplePAMApps.git;a=shortlog
Там два содержательных коммита и пересборка с libaudit.so.1.
- --
Андрей Черепанов
ALT Linux
cas@altlinux.ru
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlBO6tIACgkQSGPA9Knr8TEcRQCgjA65TByLtcwCQe48CTUNlEq2
8BUAn2o1ss9l6Yyke32VhUHJn0BObpQ9
=+Q+W
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 7:40 ` Андрей Черепанов
@ 2012-09-11 8:00 ` Andrew Borodin
2012-09-11 8:22 ` Sergey
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Borodin @ 2012-09-11 8:00 UTC (permalink / raw)
To: community
On Tue, Sep 11, 2012 at 11:40:02AM +0400, Андрей Черепанов wrote:
> http://git.altlinux.org/gears/S/SimplePAMApps.git?p=SimplePAMApps.git;a=shortlog
> Там два содержательных коммита и пересборка с libaudit.so.1.
Я бы всё-таки хотел понять -- это теперь нормальное поведение
"su -" или нет. Если да, то больше вопросов не имею. Если нет, то
вешать баг?
--
С уважением
А. Бородин.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 8:00 ` Andrew Borodin
@ 2012-09-11 8:22 ` Sergey
2012-09-11 8:27 ` REAL
0 siblings, 1 reply; 15+ messages in thread
From: Sergey @ 2012-09-11 8:22 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Tuesday 11 September 2012, Andrew Borodin wrote:
> Я бы всё-таки хотел понять -- это теперь нормальное поведение
> "su -" или нет. Если да, то больше вопросов не имею. Если нет,
> то вешать баг?
Думаю, надо просто дождаться, пока у ldv@ руки дойдут эту ветку
почитать. Наверное, за день-другой объявится, если не в отпуске...
--
С уважением, Сергей
a_s_y@sama.ru
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 8:22 ` Sergey
@ 2012-09-11 8:27 ` REAL
0 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2012-09-11 8:27 UTC (permalink / raw)
To: ALT Linux Community general discussions
11.09.2012 15:22, Sergey пишет:
>> Я бы всё-таки хотел понять -- это теперь нормальное поведение
>> "su -" или нет. Если да, то больше вопросов не имею. Если нет,
>> то вешать баг?
>
> Думаю, надо просто дождаться, пока у ldv@ руки дойдут эту ветку
> почитать. Наверное, за день-другой объявится, если не в отпуске...
Можно ускорить процесс: завести багу.
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-10 5:25 [Comm] p6: root locale after su Andrew Borodin
2012-09-10 5:42 ` Ilja Raskin
@ 2012-09-11 8:51 ` Dmitry V. Levin
2012-09-11 9:01 ` REAL
1 sibling, 1 reply; 15+ messages in thread
From: Dmitry V. Levin @ 2012-09-11 8:51 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
On Mon, Sep 10, 2012 at 09:25:46AM +0400, Andrew Borodin wrote:
> Здравствуйте!
>
> Исходные данные: /etc/sysconfig/i18n пуст, у пользователя и рута
> свои ~/.i18n с разными локалями: у юзера KOI8-R, у рута POSIX.
>
> После перехода на p6 неожиданно обнаружил следующее:
> 1. Если залогиниться рутом, то локаль у рута POSIX.
> 2. Если залогиниться пользователем, а потом перейти в рута через
> su -, то у рута локаль KOI8-R, т. е. пользовательская.
>
> Как так?
Эта веселая история описана в https://bugzilla.altlinux.org/show_bug.cgi?id=11814
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 8:51 ` Dmitry V. Levin
@ 2012-09-11 9:01 ` REAL
2012-09-11 10:06 ` Dmitry V. Levin
0 siblings, 1 reply; 15+ messages in thread
From: REAL @ 2012-09-11 9:01 UTC (permalink / raw)
To: ALT Linux Community general discussions
11.09.2012 15:51, Dmitry V. Levin пишет:
>> Как так?
>
> Эта веселая история описана в https://bugzilla.altlinux.org/show_bug.cgi?id=11814
Действительно, весело :)
Наверно, желающим всё же придётся вбивать настройки в свои
~/.{bashrc,zshrc}
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Comm] p6: root locale after su
2012-09-11 9:01 ` REAL
@ 2012-09-11 10:06 ` Dmitry V. Levin
0 siblings, 0 replies; 15+ messages in thread
From: Dmitry V. Levin @ 2012-09-11 10:06 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
On Tue, Sep 11, 2012 at 04:01:02PM +0700, REAL wrote:
> 11.09.2012 15:51, Dmitry V. Levin пишет:
> >>Как так?
> >
> >Эта веселая история описана в
> >https://bugzilla.altlinux.org/show_bug.cgi?id=11814
>
> Действительно, весело :)
>
> Наверно, желающим всё же придётся
> вбивать настройки в свои ~/.{bashrc,zshrc}
Или предложить более подходящее решение, чем нынешнее.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2012-09-11 10:06 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-10 5:25 [Comm] p6: root locale after su Andrew Borodin
2012-09-10 5:42 ` Ilja Raskin
2012-09-10 6:18 ` Andrew Borodin
2012-09-11 5:36 ` Andrew Borodin
2012-09-11 5:57 ` REAL
2012-09-11 6:17 ` Ilja Raskin
2012-09-11 6:22 ` REAL
2012-09-11 6:26 ` Andrew Borodin
2012-09-11 7:40 ` Андрей Черепанов
2012-09-11 8:00 ` Andrew Borodin
2012-09-11 8:22 ` Sergey
2012-09-11 8:27 ` REAL
2012-09-11 8:51 ` Dmitry V. Levin
2012-09-11 9:01 ` REAL
2012-09-11 10:06 ` Dmitry V. Levin
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