Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Permission Denied, Only root can log in< Next Oldest | Next Newest >
Theo Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Dec. 2003
Posted: April 28 2004,01:00 QUOTE

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
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: April 28 2004,01:55 QUOTE

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.
Back to top
Profile PM 
Theo Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Dec. 2003
Posted: April 28 2004,02:20 QUOTE

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
Back to top
Profile PM 
PhrozenFear Offline





Group: Members
Posts: 127
Joined: Feb. 2004
Posted: April 30 2004,05:54 QUOTE

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.

--------------
>>PhrozenFear

73, VE6MSP

I find your lack of penguin disturbing. -- Darth Tux
Back to top
Profile PM ICQ AOL MSN YIM 
3 replies since April 28 2004,01:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Permission Denied

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code