Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user-ru
Navigation:
Lists: gentoo-user-ru: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user-ru@g.o
From: "Alex V. Fansky" <garen@...>
Subject: Re: /etc/profile
Date: Tue, 2 Oct 2007 08:06:31 +0300
В сообщении от Monday 01 October 2007 23:48:50 Rain написал(а):
> Mad Deer пишет:
> > вообще-то для zsh используется /etc/zprofile
>
> ну я думаю, что он девелоперами не зря положен(например предполагает тот
> же каталог /etc/profile.d/, наполненный всякими полезными скриптами :)
> ), и не юзать его есть не генту вей
>

синтаксис скриптов bash и zsh отличается, поэтому профиль /etc/profile из zsh 
использовать невозможно. самый простой вариант - смигрейтить свои настройки 
в /etc/zprofile

% ls /etc/profile.d/
bash-completion  java-config-2.csh  java-config-2.sh

:)

> > но вопрос с пропаданием переменных при sudo меня тоже интересует.
> > насколько я знаю это связано с сукьюрностью. но точно где-то должно
> > отключатся.
> > потому что на работе у меня пропадают все переменные, а дома они все
> > на месте после sudo -s
>
> не совсем понимаю где там секюрность, если прочитав тот же /etc/profile
> можно вернуть себе все переменные, али слаб духом я еще чтоб осознать...
>
> кстати, вот почитал каменты в /etc/sudoers :-[  , и нашел корень зла :)
> # Reset environment by default
> Defaults        env_reset
> ^^^^^^^^^^^^^^^^^^^^^^^^это было раскомментировано
>
> # Uncomment to allow users in group wheel to export variables
>  Defaults:%wheel        !env_reset
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ а это закоментировано
> я второе раскомментировал и мне полегчало



-- 
Alex V. Fansky
Minsk, BSU
Attachment:
signature.asc (This is a digitally signed message part.)
Replies:
Re: /etc/profile
-- Rain
References:
/etc/profile
-- Rain
Re: /etc/profile
-- Mad Deer
Re: /etc/profile
-- Rain
Navigation:
Lists: gentoo-user-ru: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: /etc/profile
Next by thread:
Re: /etc/profile
Previous by date:
Re: /etc/profile
Next by date:
Re: Re: [gentoo-user-ru] Проблема с доступом к /usr/portage/distfiles


Updated Jun 17, 2009

Summary: Archive of the gentoo-user-ru mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.