ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Stavr <killkeny@yandex.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Выбор пользовательской оболочки при запуске ssh
Date: Tue, 19 Feb 2008 14:31:48 +0300
Message-ID: <708491203420708@webmail22.yandex.ru> (raw)
In-Reply-To: 1620000000235191017



19.02.08, 14:17, "Vitaly Kuznetsov" <vitty@altlinux.ru>:

> Yury Aliaev пишет:
> > Приветствую всех!
> >
> > Вопрос слегка не в тему (рассылки): как можно выбрать, какая оболочка 
> > будет использоваться при заходе на сервер через ssh. Там по умолчанию 
> > запускается /bin/sh вместо желаемого /bin/bash. Система на сервере -- 
> > FreeBSD.
> >
> > Заранее спасибо за помощь :)
> > Юрий
> >   
> Отреактировать /etc/passwd ;)
Во всех unix-подобных системах в файле /etc/passwd в строке, содержащей имя твоего пользователя, в последнем поле указываешь оболочку, которая будет запускатся при входе в систему. При чем не имеет значения, через ssh или с консоли.
Во FreeBSD, bash устанавливается вроде /usr/local/bin/bash
проверь, установлен ли bash

pkg_info | grep bash

если да, то проверь точный путь

whereis bash

и пропиши этот путь в нужную строку в /etc/passwd командой

vipw

При этот откроется vi, если не знаешь его выполни команду

EDITOR=ee; export EDITOR

или пропиш эту строку в файл ~/.profile


> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community


  parent reply	other threads:[~2008-02-19 11:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19 11:27 Yury Aliaev
2008-02-19 11:17 ` Vitaly Kuznetsov
2008-02-19 11:31 ` Stavr [this message]
2008-02-19 12:00   ` Yury Aliaev
2008-02-19 12:18     ` Глодин С.В.
2008-02-19 14:53       ` Yury Aliaev
2008-02-19 12:38   ` Stavr

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=708491203420708@webmail22.yandex.ru \
    --to=killkeny@yandex.ru \
    --cc=community@lists.altlinux.org \
    /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