LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-26-2006, 08:30 PM   #1
ravisghosh
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
unable to access ICEauthority/no directory, logging in with HOME=/


Hi friends,

After updating my system and then installing kmyfirewall and fwbuilder with sudo, I restarted my box and when trying to login, I was getting this error:

xfce-session: Unable to access file /home/shantanu/.ICEauthority: Permission Denied

Whereas I'm able to login with root but not with user (shantanu).

Then I looked into forums and found http://bbs.archlinux.org/viewtopic.p...t=iceauthority . So, i tried copying the file ICEauthority, Xauthority, and change permission as described in the thread, but that too did not work. Then after looking a while in the forums, I got a clue to delete the account using userdel and then re-create the same account with adduser with the same directory (/home/shantanu). But now I'm getting:

no directory, logging in with HOME=/


Then I logged back in as root and created another account called "test" but again got the same error with this account also, ie, "no directory, logging in with HOME=/."

Finally, I tried to change permission of the folder /home/shantanu after logging in as root and doing:

chmod -R 755 /home/shantanu

But still getting the same error. Then I created another user test2 with home directory being /media/test2. Now, i was able to log in as normal.

NOTE: My / is hda9 and /home is hda8. I guess it is the problem with hda8 since the directories hda8 is not accessable by users but only by root.

Can anyone please suggest something. Also, i dont want to lose the settings of my account.
_________________
Thanks in advance.

Ravi S Ghosh

Last edited by ravisghosh; 11-26-2006 at 08:43 PM.
 
Old 11-26-2006, 09:35 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can delete the .ICEauthority file and try logging in again.
 
Old 11-26-2006, 09:38 PM   #3
ravisghosh
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
As mentioned in my original post, i have tried that..
 
Old 11-26-2006, 10:28 PM   #4
ravisghosh
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
EDIT: After doing 6 hours of googling, I found this http://episteme.arstechnica.com/grou...m/100000554731 .

and following that I added "compat" in /etc/nsswitch.conf and got things working. However, I dont know what was wrong. Could anybody please shed some light on what went wrong. Also, in my /etc I find many files that seem to be backups like

passwd, passwd-, and passwd.pacnew
pmount.allow and pmount.allow.pacsave
esd.conf and esd.conf.pacsave
fstab and fstab.pacsave

So there are 4 kinds one is without any extension, another with " - ", one with pacnew, and finally one with pacsave.

Could anybody tell me which files are backup and can be deleted safely.
 
Old 11-27-2006, 06:54 AM   #5
ravisghosh
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
EDIT 2: The problem has nothing to do with nsswitch.conf. I removed compat. Actually, the problem was with permission in hda8 (/home) and /home/shantanu. I logged in as root and changed the the owner of /home to root with Code:

chown root /home



Then using right click on /home in thunar i changed permission of /home to read only for "users" and "others." Then, changed owner of /home/shantanu to shantanu
Code:

chown shantanu /home/shantanu



and changed permission of /home/shantanu using the same right click to "none" for "users" and "others."

And its working now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access home directory zillah Solaris / OpenSolaris 50 07-07-2005 07:39 AM
unable to Mount server home directory to clients abhishek124 Linux - Networking 1 06-24-2005 02:44 AM
Others should not access my home directory. u4u Linux - General 3 01-16-2005 09:28 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 05:43 AM
Logging Directory access vl7 Linux - Security 1 11-26-2003 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration