ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Некоторые несуразности в /[около]стартовых/ скриптах
@ 2003-04-13 12:44 Alexey Morozov
  2003-04-13 14:40 ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Morozov @ 2003-04-13 12:44 UTC (permalink / raw)
  To: Sisyphus mailing list

1. Встретил в /etc/profile строчки

# Users generally won't see annoyng core files, do they?
ulimit -Sc 0 >/dev/null 2>&1

Не лучше ли убрать эту заботу о юзерах в /etc/security/limits.conf?
Впрочем, там тоже выставляются соответствующие лимиты по умолчанию.

2. В /usr/bin/gdm вижу следующее:
----------------------
#!/bin/sh
# A script so that
#    1) we read the standard system env vars
#    2) syadmins/integrators can add their own private options etc...

test -f /etc/profile && . /etc/profile

exec /usr/bin/gdm-binary "$@"
...
----------------------
Это, в свою очередь, вызывает установку _рутового_ окружения для gdm (в
частности, /root/.i18n), что в свою очередь приводит к тому, что все
сообщения gdm даются на языке POSIX :-). Никаких тебе "Добро пожаловать на..."
и всё такое прочее. Грустно.

Предлагается так изменить этот скрипт:
-------------------
#!/bin/sh
# A script so that
#    1) we read the standard system env vars
#    2) syadmins/integrators can add their own private options etc...

HOME=/var/lib/gdb

export HOME

test -f /etc/profile && . /etc/profile
...
-------------------

В качестве HOME для gdm можно выбрать также /etc/X11/gdm, благо, там только
настройки его и хранятся.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Некоторые несуразности в /[около]стартовых/ скриптах
  2003-04-13 12:44 [sisyphus] Некоторые несуразности в /[около]стартовых/ скриптах Alexey Morozov
@ 2003-04-13 14:40 ` Dmitry V. Levin
  2003-04-17 13:31   ` Alexey Morozov
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2003-04-13 14:40 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

On Sun, Apr 13, 2003 at 07:44:40PM +0700, Alexey Morozov wrote:
> 1. Встретил в /etc/profile строчки
> 
> # Users generally won't see annoyng core files, do they?
> ulimit -Sc 0 >/dev/null 2>&1
> 
> Не лучше ли убрать эту заботу о юзерах в /etc/security/limits.conf?
> Впрочем, там тоже выставляются соответствующие лимиты по умолчанию.

У вас есть уверенность, что все пользователи /etc/profile прошли через pam
session management?  У меня, к сожалению, нет.  Вот когда уверенность
будет, я эту строку уберу, а пока что могу разве что комментарий
поправить.


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Некоторые несуразности в /[около]стартовых/ скриптах
  2003-04-13 14:40 ` Dmitry V. Levin
@ 2003-04-17 13:31   ` Alexey Morozov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Morozov @ 2003-04-17 13:31 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

On Sun, Apr 13, 2003 at 06:40:14PM +0400, Dmitry V. Levin wrote:
> > Не лучше ли убрать эту заботу о юзерах в /etc/security/limits.conf?
> > Впрочем, там тоже выставляются соответствующие лимиты по умолчанию.
> У вас есть уверенность, что все пользователи /etc/profile прошли через pam
> session management?  У меня, к сожалению, нет.  Вот когда уверенность
> будет, я эту строку уберу, а пока что могу разве что комментарий
> поправить.
Шелловый скрипт, eval'ящийся из /etc/profile и выставляющий параметры
сообразно /etc/security/limits.conf пойдет?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-17 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-13 12:44 [sisyphus] Некоторые несуразности в /[около]стартовых/ скриптах Alexey Morozov
2003-04-13 14:40 ` Dmitry V. Levin
2003-04-17 13:31   ` Alexey Morozov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git