Help! I'm desperate 🙂
I can't login as any user other than root. I'm on Ubuntu 10.04.
Here's command output:
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
You'll note that the permissions on /bin/ls are ridiculous. That's because I was trying to make sure there weren't any problems.
What's going on? Please, any suggestions are welcome! I don't know what to do!
Best Answer
Same answer as Dennis posted above in comments. On ubuntu 10.04 there are some updates that cause the permissions on /bin to become 660 - which causes this problem. Check that.