Страница 1 из 1

запуск не от рута

Добавлено: Пт сен 10, 2021 1:43 pm
ssorokatiy
Добрый день, от рута всё запускается без проблем, но если запускать от пользователя то столкнулся с проблемой:

Вот часть того что не работает:

[user@site sites]ssh-keygen -t rsa
bash: ssh-keygen: command not found

[user@site site.ru.com]$ git pull
/usr/libexec/git-core/git-sh-setup: line 84: basename: command not found
/usr/libexec/git-core/git-sh-setup: line 265: uname: command not found

[user@site ~]$ mc
Directory /var/tmp/mc-user is not owned by you
Temporary files will be created in /var/tmp
Press any key to continue...

[user@site site.ru.com]$ mc
bash: /usr/libexec/mc/mc-wrapper.sh: No such file or directory


Подскажите как решить?

Re: запуск не от рута

Добавлено: Пт сен 10, 2021 1:46 pm
KyKyIIIKuH
если пользователь находится в jail
то нужно прописать путь до пакета и перестроить jail
Screenshot_20210910_164536.png
Screenshot_20210910_164536.png (23 КБ) 3691 просмотр
https://127.0.0.1:8000/index.php?do=hos ... ction=jail

Re: запуск не от рута

Добавлено: Пт сен 10, 2021 4:58 pm
ssorokatiy
Спасибо
ssh-keygen заработал

а вот git pull нет


/usr/libexec/git-core/git-sh-setup: line 84: basename: command not found
/usr/libexec/git-core/git-sh-setup: line 265: uname: command not found
/usr/libexec/git-core/git-pull: line 251: tr: command not found
Your configuration specifies to merge with the ref 'main'
from the remote, but no such ref was fetched.

Re: запуск не от рута

Добавлено: Пт сен 10, 2021 5:06 pm
KyKyIIIKuH
я так понимаю что

Код: Выделить всё

basename
uname
tr
тоже надо добавить

Re: запуск не от рута

Добавлено: Пн сен 13, 2021 8:08 am
ssorokatiy
спасибо

Re: запуск не от рута

Добавлено: Вт июн 14, 2022 2:37 pm
HukpoFuJl
Появилась такая же проблема. Не от рута не могу сделать pull, получаю вот это:

Код: Выделить всё

[user@test admin-test]$ git pull
/usr/libexec/git-core/git-sh-setup: line 84: basename: command not found
/usr/libexec/git-core/git-sh-setup: line 265: uname: command not found
/usr/libexec/git-core/git-pull: line 251: tr: command not found
Your configuration specifies to merge with the ref 'dev'
from the remote, but no such ref was fetched.
От рута все те же действия проходят без проблем.
Следуя этим советам что только не пробовал в Jail добавлять - ничего не меняется...

Код: Выделить всё

/usr/bin/stat
/usr/bin/convert ; /usr/bin/md5sum
/usr/bin/sftp
/usr/libexec/openssh/sftp-server
/usr/bin/ffmpeg
/usr/bin/wget
/usr/local/bin/composer
/usr/libexec/git-core
/usr/bin/git
/usr/libexec/git-core/git-sh-setup
/usr/libexec/git-core/git-pull
/usr/libexec/git-core/git-sh-setup/basename
/usr/libexec/git-core/git-sh-setup/uname
/usr/libexec/git-core/git-pull/tr
basename
uname
tr

Re: запуск не от рута

Добавлено: Вт июн 14, 2022 4:59 pm
sbury

Код: Выделить всё

/usr/bin/basename
/usr/bin/uname
/usr/bin/tr

Re: запуск не от рута

Добавлено: Ср июн 15, 2022 10:37 am
alenka
Исправили чтобы при установке git автоматом прописывалось в jail
/usr/bin/basename
/usr/bin/uname

Сейчас вы это можете прописать вручную, и пересобрать хостаккаунт.