/bin/bash problem with RH 7.3
When I try to login as a non-root user on my new Red Hat box I get the error:/bin/bash: Permission denied
Connection to db closed.
Looking in /bin I see that bash (along with all the other shells) is owned by root group shells with no read or execute permission for others:
-r-xr-x--- 1 root shell 541096 Apr 12 12:09 bash
Trying to chmod the file brings another error:
chmod o+rx bash
chmod: changing permissions of `bash': Operation not permitted
Now I've never had a linux box tell me that I couldn't chmod something when I was logged in as root. I thought perhaps the shell wouldn't let me chmod the shell I was using so I tried to chmod tcsh which has the same permissions but got the same result.
I have 3 questions:
1) why the heck is it setup this way in the first place
2) why won't it let me chmod the files
3) what do I do to fix it
Luckily I'm just using the machine to run a db and don't need to login frequently or have users login directly but it's a bit of a hassle to not be able to login as a non root user.