ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Henri Bourbon <npecca@yahoo.com>
To: Serge Skorokhodov <mandrake-russian@altlinux.ru>
Subject: Re[4]: [mdk-re] ÏËÒÕÖÅÎÉÅ
Date: Mon Aug 13 15:42:34 2001
Message-ID: <1432450052.20010813160138@yahoo.com> (raw)
In-Reply-To: <200108121605.f7CG5Gg18278@www2.mailru.com>

Sunday, August 12, 2001, 20:05:16, Serge Skorokhodov wrote:

>> Я  прочел  этот  thread.  Почему-то все считают само
>> собой разумеющимся, что речь  идет  о  bash.  Я  же  
>> хотел  бы задать тот же самый вопрос, что автор
>> thread, только без каких-то ограничений на shell.
>> 
>> Итак,   как   установить   Environment   variable,  
>> чтобы  ее  "видели"  все пользователи,  вне  
>> зависимости  от того, является ли их оболочка tcsh,
>> bash или minesweeper?
>> /* аналог 
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
>> в NT */

> /etc/rc.d/init.d/rc.local не подходит? С путевым имененм могу напутать:)

Я обнаружил этот файл здесь: /etc/rc.d/rc.local
Было похоже, что это именно то, что мне нужно. В любом случае, спасибо за
совет. Добавил в конец этого файла строки:

##################### HB #########################
export RC_LOCAL="It worked!"

Перезагрузился,   но  после логона никакой переменной RC_LOCAL в Environment
не обнаружил ( printenv | grep -i loc ничего не печатает ). Эх. :(
Но,  может  быть,  я  просто  что-то  не  так делаю, например, вместо
export RC_LOCAL="It worked!"
нужно написать совсем другое?

Как   я  догадываюсь,  тот  shell,  в  к-рый  я попадаю после logging on, не
является потомком того shell, к-рый выполняет скрипт /etc/rc.d/rc.local

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

> Честно -- не знаю:( Архитектура системы предполагает, что это проблемы
> каждого юзера?

Это  проблема  моя,  администратора. Я должен сделать так, что, во-первых, у
всех пользователей (к примеру)
HTTP_PROXY=http://proxy.ant-on.net
а во-вторых, у Васи
TNVED='\\\\pdc\\customs\\vasya'
, а у Пети
TNVED='\\\\pdc\\customs\\public'
и  т. д. При этом у Васи в качестве shell /bin/bash, у Пети -- /bin/zsh, а у
Люси -- /usr/games/minesweeper. (Такой она загадочный зверь, наша Люся)

-- 
HB





  reply	other threads:[~2001-08-13 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-12 19:44 Re[2]: " Serge Skorokhodov
2001-08-13 15:42 ` Henri Bourbon [this message]
2001-08-13 16:06   ` [mdk-re] окружение cornet
2001-08-13 23:54     ` [mdk-re] окружение Mikhail Zabaluev

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=1432450052.20010813160138@yahoo.com \
    --to=npecca@yahoo.com \
    --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