can't enter my home directory

I’ve installed Suse Linux already a lot of times on several computers. Now with version 11.1 I have a strange problem. I can’t enter my home directory. Only when I open a file manager as root, I can enter it. The security settings of my home directory are in my opinion not the problem.

My home-map calls “jan”. The settings are:

drwxr-xr-x 42 jan users 4096 jul 15 21:46 jan

Can somebody tell me what the problem is. I already installed Suse 11.1 twice on the same computer, each time with the same result.

Is /home on a separate partition?

Open a terminal and do:

cat /etc/fstab

post result

Jan Crikemans wrote:
> I’ve installed Suse Linux already a lot of times on several computers.
> Now with version 11.1 I have a strange problem. I can’t enter my home
> directory. Only when I open a file manager as root, I can enter it.
> The security settings of my home directory are in my opinion not the
> problem.
>
> My home-map calls “jan”. The settings are:
>
> drwxr-xr-x 42 jan users 4096 jul 15 21:46 jan
>
> Can somebody tell me what the problem is. I already installed Suse
> 11.1 twice on the same computer, each time with the same result.
>
>

what are the permissions for /home/[you]/.ICEauthority ??

should look kinda like this:

-rw------- 1 [you] users 1.1K 2009-07-16 06:25 .ICEauthority

in the GUI Konqueror properties box, it looks like this:

owner: can read & write
group: forbidden
others: forbidden
is not executable
ownership: user [you]
ownership: group users
advanced permissions: x in user read, and user write…all other empty

anything else and it will not work…

i GUESS you will find that yours is wrong…which is usually caused
from logging into the GUI as root and then moving around in your
home…don’t log into the GUI as root, ever!

if install new while not formatting your /home (to keep your good
stuff) then the problem will remain no matter how many times you try
the old MS standby ‘fix’: reinstall.

the fix here is to not mess it up to begin with (by logging in as
root)…


brassy

Also all the permissions from /, i.e. /, /home must be examined. / is probably ok, but if there is no world r-x permission on /home, then ordinary users cannot go to their own directories. In the Unix permission model, all the permissions in the path from / are taken into account.

you are, of course, correct…it has just been my experience that
this symptom most often pops up when someone has accidentally damaged
their .ICEauthority settings buy wrongly using root powers…

but, you are right, if at sometime he found a RedmondPowerUser here
telling how to bypass all that stupid *nix stuff, and issued a
chown/chmod -R at the wrong place…well…you know…


brassy

The permissions of my file .ICEauthority are
-rw------- 1 jan users 0 Jul 16 18:42 .ICEauthority
I think that the permissions are right, but the file is empty. Is that normal?

no, that is not normal…mine is 1.1 kb

and, i do not know how to regenerate it…(perhaps restore from a
recent backup)

WELL, maybe zero IS normal…because as a matter of course i always
add a “guest” user and spend VERY little time in there so it remains
pretty much “as born” and i see my /home/guest/.ICEauthority is a zero
length file…i’m gonna have to tell you that you need someone more
knowledgeable than me to help further…oh, check .Xauthority also
-rw------- with you as owner…

back to your first post you said “Only when I open a file manager as
root” and i wonder what that means: did you log into the GUI
(KDE/Gnome/whatever) as yourself, and then open a file manager with
root powers…or, did you log into KDE/whatever as root and click open
a file manager?

anyway, NEVER log into the GUI as root…ever…in my experience that
usually leads to exactly the problems you are having (and MANY others)…


brassy

One thing that might be worth checking is that your id adds up to the id on the folder.

ls -na
id -u