I was trying to install the printer driver for my Samsung printer that I got from Samsung’s website some time ago. I first tried to install it from user account using sudo, but noticed that it changed ownership and permissions for /lib64, /etc and /usr (they were now owned by my user account drlove). I then tried to install it from the root account, and noticed that it changed the permissions for the same folders again (though it kept ownerships as root:root). I tried to change everything back, but I must have missed something because I can no longer log into my user account, nor run any commands from areas that are logged in already.
I can still log in as root. When I try “su drlove”, I get the error “su: /bin/bash: Permission denied”
I’ve installed the Samsung driver on two other Linux machines, one Arch and one Ubuntu, and never had problems like this before.
I’ve posted this on the Arch Linux forums, which hasn’t yet generated any responses. I’m hoping to get some ideas soon, otherwise I’m going to have to reinstall the operating system, which will take a while to get everything set up again.
Some information that might be helpful:
# ls -l /
total 69
drwxr-xr-x 2 root root 4096 Feb 1 12:52 bin/
drwxr-xr-x 4 root root 1024 Jan 27 20:27 boot/
drwxr-xr-x 16 root root 5300 Feb 4 08:11 dev/
drwxr-xr-x 76 root root 4096 Feb 5 21:34 etc/
drwxr-xr-x 4 root root 4096 Oct 25 03:54 home/
drwxr-xr-x 11 root root 4096 Feb 5 14:24 lib/
drwxr-xr-x 2 root root 4096 Jan 27 20:27 lib64/
drwx------ 2 root root 16384 Oct 24 19:58 lost+found/
drwxr-xr-x 2 root root 4096 Jan 27 20:27 media/
drwxr-xr-x 2 root root 4096 Dec 19 10:44 mnt/
drwxr-xr-x 4 root root 4096 Feb 5 21:22 opt/
dr-xr-xr-x 160 root root 0 Feb 4 01:11 proc/
drwxr-x--- 6 root root 4096 Feb 5 21:44 root/
drwxr-xr-x 18 root root 600 Feb 5 21:21 run/
drwxr-xr-x 2 root root 4096 Feb 1 12:52 sbin/
drwxr-xr-x 4 root root 4096 Dec 19 10:44 srv/
drwxr-xr-x 13 root root 0 Feb 4 01:11 sys/
drwxrwxrwt 16 root root 400 Feb 5 21:30 tmp/
drwxr-xr-x 10 root root 4096 Feb 5 21:30 usr/
drwxr-xr-x 12 root root 4096 Jan 27 20:27 var/
# ls -l home
total 20
drwx------ 39 drlove users 4096 Feb 5 20:02 drlove/
drwx------ 2 root root 16384 Oct 24 19:58 lost+found/
# ls -l /bin/bash
-rwxr-xr-x 1 root root 733896 Nov 22 23:46 /bin/bash*
# ls -l /etc/passwd
-rw-r--r-- 1 root root 613 Oct 25 20:46 /etc/passwd
Can anyone think of anything that I haven’t checked?