帮帮我! 我很绝望 :)
我无法以root身份以外的任何用户身份login。 我在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上的权限是荒谬的。 那是因为我试图确定没有任何问题。
这是怎么回事? 请任何build议,欢迎! 我不知道该怎么办!
丹尼斯在评论中发表了同样的答案。 在Ubuntu 10.04有一些更新,导致/ bin上的权限成为660 – 这会导致此问题。 检查一下。