SU'ing to user and getting ".bashrc permission denied"
After installing LimeWire I started getting weird permission errors on
my home account. Root is fine, but when I log in as a user, I am getting, bash: /home/chris/.bashrc: Permission denied Im frustration I did a chmod -R o+wrx /home/chris and I still get the errors, cannot even startX now as the user. I have no idea how install limewire changed my permissions, but how do I restore that? |
hello :-)
perhaps you haven't select the shell for your user. you can do it by loggin in root, running kuser, and selcting the user detail and making sure that the login shell in selected /bin/bash. |
The selected shell for the user is bash. It was working perfectly until I installed a new piece of software. Also typing bash at the prompt gives the same message.
|
Can you humour us and check/show the permissions for /home/chris/.bashrc ?
- Piete. |
There never was a .bashrc file. I dont think the problem is with any file named .bashrc but somehow its with the profile being loaded up. For fun I created a .bashrc file. Here is what happens.
ls -al .bashrc -rwxrwxrwx 1 chris root 0 2006-11-22 00:21 .bashrc* su chris bash: /home/chris/.bashrc: Permission denied touch test touch: cannot touch `test': Permission denied Looks fun huh? Somehow the user is not being given permissions for the shell and everything else it looks like. X wont work either for permission reasons. |
Here is the list for the entire directory:
ls -al /home/chris/ total 72 d-w----rwx 13 chris users 4096 2006-11-22 09:30 ./ drwxr-xr-x 6 root root 4096 2006-11-22 00:17 ../ -rwxrwxrwx 1 chris root 0 2006-11-22 00:21 .bashrc* --w----rwx 1 chris users 516 2006-11-21 22:55 .fonts.conf* d-w----rwx 3 chris users 4096 2006-11-21 16:24 .fullcircle/ d-w----rwx 4 chris users 4096 2006-11-21 22:46 .kde/ --w----rwx 1 chris users 445 2006-11-21 22:56 .kderc* d-w----rwx 4 chris users 4096 2006-11-21 23:37 .limewire/ d-w----rwx 3 chris users 4096 2006-11-21 16:22 .local/ d-w----rwx 3 chris users 4096 2006-11-21 16:22 .mcop/ --w----rwx 1 chris users 31 2006-11-21 16:22 .mcoprc* d-w----rwx 3 chris users 4096 2006-11-21 23:02 .mozilla/ d-w----rwx 2 chris users 4096 2006-11-21 22:56 .qt/ --w----rwx 1 chris users 3729 2006-11-16 00:50 .screenrc* --w----rwx 1 chris users 192 2006-11-21 22:54 .xcompmgrrc* d-w----rwx 2 chris users 4096 2006-11-21 16:22 .xine/ d-w----rwx 2 chris users 4096 2006-11-21 23:13 Desktop/ d-w----rwx 2 chris root 4096 2006-11-21 23:36 Shared/ d-w----rwx 2 chris users 4096 2006-11-21 23:39 music/ Any permissions look off there? |
d-w----rwx 13 chris users 4096 2006-11-22 09:30 ./
The permissions for your home directory are reversed. In the permissions list (bolded), spots 2-4 are the owner permissions, 5-7 are the group permissions, and 8-0 are everyone else's permissions. The owner only has write permissions, not read, while everyone else has full control. Try this: Code:
chmod -R 740 /home/chris |
ok, that was it. thanks
|
All times are GMT -5. The time now is 04:57 AM. |