ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: Sergei <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Re: окружение
Date: Sun Aug 12 13:53:11 2001
Message-ID: <20010812142031.A2006@localhost.localdomain> (raw)
In-Reply-To: <6553096678.20010812130741@yahoo.com>; from npecca@yahoo.com on Sun, Aug 12, 2001 at 01:07:41PM +0400

Hello Henri,

On Sun, Aug 12, 2001 at 01:07:41PM +0400, Henri Bourbon wrote:
>
> Wednesday, August 08, 2001, 8:02:45, Sergei wrote:
> 
> >>> Каждый раз выставляю переменную MY=/home export MY
> >>> Как сделать так чтобы она была выставлена раз и навсегда для всех???
> 
> >> Если в качестве shell используется bash, то в ~/.profile
> >> export MY=/home
> 
> > В файл etc/bashrc записать указанную выше строчку. Это для bash.
> 
> Я  прочел  этот  thread.  Почему-то все считают само собой разумеющимся, что
> речь  идет  о  bash.  Я  же  хотел  бы задать тот же самый вопрос, что автор
> thread, только без каких-то ограничений на shell.
> 
> Итак,   как   установить   Environment   variable,  чтобы  ее  "видели"  все
> пользователи,  вне  зависимости  от того, является ли их оболочка tcsh, bash
> или minesweeper?
> /* аналог
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
> в NT */

Такой возможности (пока) нет. Начальный shell дается пользователю
свыше (из файла /etc/passwd) и инициализируется по своим стартовым
скриптам. В Spring все глобальные настройки дублируются для семейства
sh (bash) и csh (csh,tcsh,zsh).

> Есть  ли  возможность установить разные переменные для разных пользователей?
> Подчеркиваю еще раз, файлы ~/.bash* для этой цели не годятся.
> /* аналог HKEY_CURRENT_USER\Environment в NT */

Файл .bash_profile в домашнем каталоге предназначен ровно для этой
цели. Это стартовый скрипт изначальной оболочки пользователя, в
котором можно установить любые переменные, какие душе угодно. Алиасы,
функции и т.п. нужно устанавливать в .bashrc, поскольку они не
передаются вызванным программам и должны быть установлены при каждом
(интерактивном) запуске bash.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
Catproof is an oxymoron, childproof nearly so.



  reply	other threads:[~2001-08-12 13:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-07 13:43 [mdk-re] окружение Bao Chen
2001-08-07 15:17 ` Antonio
2001-08-08  7:32   ` Sergei
2001-08-12 12:49     ` Re[2]: [mdk-re] ÏËÒÕÖÅÎÉÅ Henri Bourbon
2001-08-12 13:53       ` Mikhail Zabaluev [this message]
2001-08-13 14:42         ` [mdk-re] Re: [mdk-re] Re: окружение Dmitry V. Levin
2001-08-12 14:19       ` [mdk-re] Re: [mdk-re] окружение S. Budnevitch
2001-08-13  2:29       ` Re[2]: " Sergei
2001-08-08  7:49 ` [mdk-re] ÏËÒÕÖÅÎÉÅ Russu V.F.
2001-08-08 10:08   ` [mdk-re] окружение Bao Chen

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=20010812142031.A2006@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    /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