/bin/sh /usr/sbin/nologin

Проблемы установки, настройки и работы Правильной Операционной Системы

Модератор: terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
ProFTP
подполковник
Сообщения: 3388
Зарегистрирован: 2008-04-13 1:50:04
Откуда: %&й
Контактная информация:

/bin/sh /usr/sbin/nologin

Непрочитанное сообщение ProFTP » 2008-10-15 18:44:20

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

pw useradd user3 -c UserDomain = names -L webuser -s /usr/sbin/nologin -d /home/user3
в passwd все гда шел реальный /bin/sh

раньше такого не было вроде, пользователей было не много, в приницпе пофиг было

можно шел вырубить?

нашел сабж http://forum.sysfaq.ru/index.php?showtopic=9945
там про pwd_mkdb но так и не понял причем он там

что делать?
Pеrl FAQ
perl -e 'print join"",map $$_[rand@$_],([0..9,'a'..'z','A'..'Z'])x30'
ИзображениеИзображение

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

fxp
мл. сержант
Сообщения: 79
Зарегистрирован: 2008-10-06 1:02:58

Re: /bin/sh /usr/sbin/nologin

Непрочитанное сообщение fxp » 2008-10-15 18:51:43

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

[root@bsd /]# pw useradd ttt
[root@bsd /]# pw usermod ttt -s /sbin/nologin
[root@bsd /]# su ttt
This account is currently not available.
[root@bsd /]# passwd ttt
Changing local password for ttt
New Password:
Retype New Password:
[root@bsd /]# ssh ttt@localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
DSA key fingerprint is 7e:aa:39:4d:2d:0d:17:04:b0:5f:de:53:ae:76:21:0a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (DSA) to the list of known hosts.
Password:
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 7.1-PRERELEASE (GENERIC) #0: Fri Oct 10 22:09:10 UTC 2008

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

Could not chdir to home directory /home/ttt: No such file or directory
This account is currently not available.
Connection to localhost closed.
[root@bsd /]#
Бляяяяяяяяяяяяяяяяяяяяяяяяяяя :st:

fxp
мл. сержант
Сообщения: 79
Зарегистрирован: 2008-10-06 1:02:58

Re: /bin/sh /usr/sbin/nologin

Непрочитанное сообщение fxp » 2008-10-15 18:53:35

А нет не бля... по ssh не пускает с удаленного компа)

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

Oct 15 19:55:30 bsd nologin: Attempted login by ttt on /dev/ttyp0
Oct 15 19:57:45 bsd nologin: Attempted login by ttt on /dev/ttyp0

Аватара пользователя
ProFTP
подполковник
Сообщения: 3388
Зарегистрирован: 2008-04-13 1:50:04
Откуда: %&й
Контактная информация:

Re: /bin/sh /usr/sbin/nologin

Непрочитанное сообщение ProFTP » 2008-10-15 18:55:45

пасиба, странно что сразу не сработало...
Pеrl FAQ
perl -e 'print join"",map $$_[rand@$_],([0..9,'a'..'z','A'..'Z'])x30'
ИзображениеИзображение