После обновления debian lenny, PS прекращает распознавать моих пользователей

0
задан 26 January 2011 в 22:58
1 ответ

Наличие неправильных полномочий на /etc/nsswitch.conf может вызвать этот:-

[asmith@therapy ~]$ ls -la /etc/nsswitch.conf
-rw-r--r-- 1 root root 525 2010-03-31 18:35 /etc/nsswitch.conf

[asmith@therapy ~]$ ps -ef
...
asmith   31143 31124  0 Jan13 pts/18   00:00:00 /bin/bash
asmith   31156 31124  0 Jan13 pts/19   00:00:00 /bin/bash
...

[asmith@therapy ~]$ sudo chmod 600 /etc/nsswitch.conf
[asmith@therapy ~]$ ps -ef
...
1794114690 31143 31124  0 Jan13 pts/18 00:00:00 /bin/bash
1794114690 31156 31124  0 Jan13 pts/19 00:00:00 /bin/bash
...

[asmith@therapy ~]$ ps -U asmith
ERROR: User name does not exist.

[asmith@therapy ~]$ sudo chmod 644 /etc/nsswitch.conf
[asmith@therapy ~]$ ls -la /etc/nsswitch.conf
-rw-r--r-- 1 root root 525 2010-03-31 18:35 /etc/nsswitch.conf

[asmith@therapy ~]$ ps -U asmith
31143 pts/18   00:00:00 bash
31156 pts/19   00:00:00 bash

Надежда, которая помогает!

0
ответ дан 5 December 2019 в 17:20

Теги

Похожие вопросы