无法以 Root 以外的任何用户身份登录 - 权限被拒绝

无法以 Root 以外的任何用户身份登录 - 权限被拒绝

救命!我绝望了 :)

我无法以 root 以外的任何用户身份登录。我在使用 Ubuntu 10.04。

以下是命令输出:

root@pinky:~# adduser test
Adding user `test' ...
Adding new group `test' (1003) ...
Adding new user `test' (1003) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
    Full Name []: Test User
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] 
root@pinky:~# su test
Cannot execute /bin/bash: Permission denied
root@pinky:~# su test -c touch thefile # Does nothing
root@pinky:~# strace -u test /bin/ls
execve("/bin/ls", ["/bin/ls"], [/* 17 vars */]) = -1 EACCES (Permission denied)
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb771b000
_llseek(3, 0, 0xbfbbe4f8, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied
) = 32
close(3)                                = 0
munmap(0xb771b000, 4096)                = 0
exit_group(1)                           = ?
root@pinky:~# ls -l /bin/ls
-rwxrwxrwx 1 root root 104528 2010-03-04 22:29 /bin/ls

您会注意到 /bin/ls 上的权限很荒谬。那是因为我试图确保没有任何问题。

发生了什么事?请大家提出任何建议!我不知道该怎么办!

答案1

与 Dennis 在上面的评论中发布的答案相同。在 ubuntu 10.04 上,有一些更新导致 /bin 上的权限变为 660 - 这导致了此问题。检查一下。

相关内容