Ubuntu sucks
Andy Ger написал(а) к Den Grigoriev в Apr 18 22:21:04 по местному времени:
Привет, Den!
03 апр 18 18:07, Den Grigoriev -> Andy Ger:
AG>> ~$ ls -l /etc/profile.d/
AG>> итого 8
AG>> -rw-r--r-- 1 root root 660 Июн 17 2012 bash_completion.sh
AG>> -rwxr--r-- 1 root root 68 Апр 3 07:49 java.sh
DG> Файлы из /etc/profile.d выполняются при запуске оболочки для
DG> пользователя. А он у тебя стоит только для root выполняемым!
Та делал я. Без разницы. А тебя не смущает, что рядом лежит bash_completion.sh, и он 644?
В дебиан /etc/profile.d/*.sh выполняются при наличии /etc/profile и только в login shell.
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bashprofile, ~/.bashlogin, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of /etc/bash.bashrc and ~/.bashrc.
ЗЫ: Когда я делаю su - [юзер] тогда срабатывает. Но firefox'у всё равно без разницы.
Короче, завтра буду думать.
С наилучшими пожеланиями, Andy.
--- gl es 73 sk ee
|