Permission DeniedForum: User Feedback Topic: Permission Denied started by: Theo Posted by Theo on April 28 2004,01:00
I have installed 0.6.3 and am very impressed. I installed Open Office in my user directory and have started shifting my files from MS Word and Excel.This morning I was logged in as root and entered my user directory to update a spreadsheet file. The file initially would only open as read only which I assumed was something to do with permissions. I opened emelfm and changed the permissions for this file, which then opened for normal use. I then logged off as root and logged on as user only to be denied as follows (quotation marks are mine): "Warning: Cannot change to home directory" The Welcome to DSL logo then displayed then: "-bash: /home/theo/.bash_profile: Permission denied" It looks as though I am logged in but X doesn't start. If I type in "startx" an error message about xauthority comes up and the machine hangs until it is rebooted. If instead I logout to return to root I get: "-bash: /home theo/.bash_logout: Permission denied" Obviously I have screwed something up, but what, and how do I fix it? Thanks, Theo Posted by cbagger01 on April 28 2004,01:55
It sounds to me like you have accidentally changed the permissions on your/home/theo/ files including your executable scripts. I would log in as user 'root', open an Xterm and type in the following: chmod 755 /home/theo/.bash* chmod 755 /home/theo/*.sh chmod 755 /home/theo/*.pl Then log out and try logging in as use theo again. Good Luck. Posted by Theo on April 28 2004,02:20
Thanks for the help. The last two commands received the response "chmod: failed to get attributes of 'home/theo/.....': No such file or directory"I created a new user using the adduser command and this new user is also denied access with the same set of responses. There was no change in permissions for this new user. Thanks, Theo Posted by PhrozenFear on April 30 2004,05:54
Try doing a chown -R theo /home/theo - that'll change the owner to theo and should allow you the perms you're lookin' for.
|