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

не пускает под root

Добавлено: 2012-06-05 20:06:18
BKS
Добрый вечер уважаемые!
Во время установки isc-dhcp42-server-4.2.3_2 выдавало ошибку, поиск привел к решению изменить /etc/nsswitch.conf
было:

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

group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
изменил на :

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

group: files compat
group_compat: nis
hosts: files dns
networks: files
passwd: files compat
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

после чего dhcp успешно установился и заработал.
стали сыпаться ошибки что nsswitch.conf это не устраивает, вернул как было и перезагрузил и вот тут то стало страшно, через ssh su пишет:

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

%su
su: Sorry
через консоль тоже рута не пускает.
и в консоле сейчас

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

Creating and/or trimming log files
newsyslog: 
error in config file; unknown user:
/var/log/ppp.log        root:network    640  3     100  *     JC
и

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

find: 
-user: root: no such user

mkdir: 
/tmp/.X11-unix
: 
File exists
mkdir: 
/tmp/.XIM-unix
: 
File exists
mkdir: 
/tmp/.ICE-unix
: 
File exists
mkdir: 
/tmp/.font-unix
: 
File exists
поможайте люди добрые

Re: не пускает под root

Добавлено: 2012-06-06 9:07:04
BKS
Насшол в логах на что ругался перед тем как вернул настройки и перезагрузил

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

Jun  5 21:26:36 bisti mtree: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti mtree: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti mtree: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti pw: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti pw: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti pw: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:03 bisti pw: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:04 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:27:05 bisti install: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28150]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28150]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28151]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28151]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28152]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28152]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28153]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28153]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28154]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28154]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28155]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:49 bisti smbd[28155]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28156]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28156]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28157]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28157]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28158]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:27:51 bisti smbd[28158]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:28:30 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:28:30 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:28:34 bisti perl: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:28:34 bisti perl: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:29:52 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:29:52 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:30:00 bisti cron[28165]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:30:00 bisti cron[28165]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:33:00 bisti cron[28169]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:33:00 bisti cron[28169]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:35:00 bisti cron[28182]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:35:00 bisti cron[28182]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:39:17 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:39:17 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:00 bisti cron[28189]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:40:00 bisti cron[28189]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:40:12 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:43:16 bisti dhcpd: uid lease 192.168.1.112 for client 00:26:2d:59:c6:82 is duplicate on 192.168.1.0/24
Jun  5 21:44:00 bisti cron[28227]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:44:00 bisti cron[28227]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:45:00 bisti cron[28239]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:45:00 bisti cron[28239]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:46:04 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:46:04 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:46:35 bisti smbd[28241]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:46:35 bisti smbd[28241]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:46:35 bisti smbd[28241]: /nonexistent|admin-genius|Win2K|nobody|192.168.1.12|connect|ok|IPC$
Jun  5 21:48:40 bisti sshd[28242]: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:48:40 bisti sshd[28242]: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:48:40 bisti -csh: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:48:40 bisti -csh: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:48:42 bisti su: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:48:42 bisti su: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:48:44 bisti su: bisti to root on /dev/pts/1
Jun  5 21:49:41 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:49:41 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:00 bisti cron[28254]: NSSWITCH(nsparser): /etc/nsswitch.conf line 20: 'compat' used with sources, other than 'cache'
Jun  5 21:50:00 bisti cron[28254]: NSSWITCH(nsparser): /etc/nsswitch.conf line 24: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti chown: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:50:43 bisti dhcpd: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'
Jun  5 21:51:03 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 5: 'compat' used with sources, other than 'cache'
Jun  5 21:51:03 bisti arp: NSSWITCH(nsparser): /etc/nsswitch.conf line 9: 'compat' used with sources, other than 'cache'

Re: не пускает под root

Добавлено: 2012-06-07 11:36:15
BKS
Хелп как вернуть рута

Re: не пускает под root

Добавлено: 2012-06-07 16:12:49
Alvares
ну а в /etc/passwd чего есть? рут-то там есть?

Re: не пускает под root

Добавлено: 2012-06-07 16:56:55
BKS
Пардон:

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

root:*:0:0:Charlie &:/root:/bin/csh
;( куда бежать чего делать

Re: не пускает под root

Добавлено: 2012-06-07 17:47:33
sudo
BKS писал(а):Пардон:

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

root:*:0:0:Charlie &:/root:/bin/csh
;( куда бежать чего делать

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

group: files
group_compat: nis
hosts: files dns
networks: files
passwd: files
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

Re: не пускает под root

Добавлено: 2012-06-07 20:09:17
BKS
то есть нужно изменить, как это сделать не под рутом?

Re: не пускает под root

Добавлено: 2012-06-07 20:21:44
sudo
BKS писал(а):то есть нужно изменить, как это сделать не под рутом?
LiveCD еще никто не отменял....

Re: не пускает под root

Добавлено: 2012-06-07 20:34:31
sudo
mount -u
mount -a /
vi /etc/nsswitch.conf

вроде так в режиме Fixit

Re: не пускает под root

Добавлено: 2012-06-08 9:49:32
BKS
ОГРОМНОЕ СПАСИБО =)
помогло, но почему раньше было:

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

group: compat
passwd: compat
это значит что кто то изменил, хотя доступ у меня одного (ранее до установки dhcp установка с портов была без проблем)?