Mailing List Archive

Weird user login problem: start directory messed up
Hi there,

I already posted this on the forums but nobody seems to have an answer...
The problem: when Logging in as a user, you normally start in the
shell in the home directory. /home/[user]. Or /root of course. Well,
the user "jefklak" is f*cked up: I start in the /home dir instead of
/home/jefklak! I don't have any idea what changed it - it's this way
since upgrading xorg to 6.8...

Checking /etc/profile, /etc/profile.env/* e.d. doesn't result into anything.
"echo $HOME" gives me "/home/jefklak" so the variable isn't messed
up... But I do start in another directory. "cd ~" works. BTW, when
firing up ROX e.d. - I also start in /home. Very annoying!


Could anyone give me a hand in here?
Thanks a lot!!

--
==============
>> Jefklak
Gentoo Linux 2.6.8.1-klak3
==============

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Did something happen with the permissions of the user's directory
under home? Check who owns it, what group it's in, and the specific
user's info in /etc/passwd and /etc/groups. Possibly some value has
gotten modified?

Good luck,
Mark

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
No, No and No - already checked all those things :-(
Adding a new "test" user works like it should - he starts in /home/test...

I also noticed when NOT in X, I do start in /home/jefklak.
But as soon as the graphical server is set up and I log into a WM and
start a terminal like x/a/eterm or rox, /home it is.


On Mon, 13 Sep 2004 07:55:45 -0700, Mark Knecht <markknecht@gmail.com> wrote:
> Did something happen with the permissions of the user's directory
> under home? Check who owns it, what group it's in, and the specific
> user's info in /etc/passwd and /etc/groups. Possibly some value has
> gotten modified?
>
> Good luck,
> Mark
>
> --
> gentoo-user@gentoo.org mailing list
>
>



--
==============
>> Jefklak
Gentoo Linux 2.6.8.1-klak3
==============

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
The home directory is usually recorded in the /etc/passwd file. Check
that the entry
for jefklak has not been damaged. Then check that the home directory
listed there
exists and has the right owner and permissions.

Specifically:
1) log in as jefklak
2) echo $HOME
this should be /home/jefklak; if not, suspect the /etc/passwd file
3) cd
you should now be in /home/jefklak, or get some error message
telling you why not.
4) touch foo
this should create the file "foo" in your current directory.
If it fails, track down the
permissions problem. If it succeeds, the owner and group of
the file should agree
with the /home/jefklak directory itself.
5) The permissions of the home directory are commonly
750 if the user has no web page, and
751 if there is a web page,
but there's a lot of variation about how much permission to give
to the group; also
the availability of ACL's may affect this.

++ kevin





On Mon, 13 Sep 2004 16:29:35 +0200, Wouter Groeneveld <jefklak@gmail.com> wrote:
> Hi there,
>
> I already posted this on the forums but nobody seems to have an answer...
> The problem: when Logging in as a user, you normally start in the
> shell in the home directory. /home/[user]. Or /root of course. Well,
> the user "jefklak" is f*cked up: I start in the /home dir instead of
> /home/jefklak! I don't have any idea what changed it - it's this way
> since upgrading xorg to 6.8...
>
> Checking /etc/profile, /etc/profile.env/* e.d. doesn't result into anything.
> "echo $HOME" gives me "/home/jefklak" so the variable isn't messed
> up... But I do start in another directory. "cd ~" works. BTW, when
> firing up ROX e.d. - I also start in /home. Very annoying!
>
> Could anyone give me a hand in here?
> Thanks a lot!!
>
> --
> ==============
> >> Jefklak
> Gentoo Linux 2.6.8.1-klak3
> ==============
>
> --
> gentoo-user@gentoo.org mailing list
>
>



--
Kevin O'Gorman, PhD
want a free gmail account? email me for an invitation

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Wouter Groeneveld wrote:
> No, No and No - already checked all those things :-(
> Adding a new "test" user works like it should - he starts in /home/test...
>
> I also noticed when NOT in X, I do start in /home/jefklak.
> But as soon as the graphical server is set up and I log into a WM and
> start a terminal like x/a/eterm or rox, /home it is.
>
>
> On Mon, 13 Sep 2004 07:55:45 -0700, Mark Knecht <markknecht@gmail.com> wrote:
>
>>Did something happen with the permissions of the user's directory
>>under home? Check who owns it, what group it's in, and the specific
>>user's info in /etc/passwd and /etc/groups. Possibly some value has
>>gotten modified?

Regardless of what happened, you might want to just make up a new user
account and see it all goes smoothly. If it does, then just delete
that account name, and make a new account with the desired
username/userid.

If this does not fix the problem and the second and third user
accounts you make up are similarly hosed, then you have a deeper
problem....


James




--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Shit man.
Even that does not work!! :-(
What now?

I deleted the user jefklak, re-added it - had some permission problems
after that (solved, user #1000 and not #1003) but I still start in
/home...
And it only appers in X.
That has to mean SOMETHING!!


On Mon, 13 Sep 2004 11:25:21 -0400, wireless <wireless@tampabay.rr.com> wrote:
> Wouter Groeneveld wrote:
> > No, No and No - already checked all those things :-(
> > Adding a new "test" user works like it should - he starts in /home/test...
> >
> > I also noticed when NOT in X, I do start in /home/jefklak.
> > But as soon as the graphical server is set up and I log into a WM and
> > start a terminal like x/a/eterm or rox, /home it is.
> >
> >
> > On Mon, 13 Sep 2004 07:55:45 -0700, Mark Knecht <markknecht@gmail.com> wrote:
> >
> >>Did something happen with the permissions of the user's directory
> >>under home? Check who owns it, what group it's in, and the specific
> >>user's info in /etc/passwd and /etc/groups. Possibly some value has
> >>gotten modified?
>
> Regardless of what happened, you might want to just make up a new user
> account and see it all goes smoothly. If it does, then just delete
> that account name, and make a new account with the desired
> username/userid.
>
> If this does not fix the problem and the second and third user
> accounts you make up are similarly hosed, then you have a deeper
> problem....
>
> James
>
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>



--
==============
>> Jefklak
Gentoo Linux 2.6.8.1-klak3
==============

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Wouter Groeneveld wrote:
> Shit man.
> Even that does not work!! :-(
> What now?
>
> I deleted the user jefklak, re-added it - had some permission problems
> after that (solved, user #1000 and not #1003) but I still start in
> /home...
> And it only appers in X.
> That has to mean SOMETHING!!
>


Did you use something like this to make the user account?

useradd jefklak2 -m -G users,wheel,audio,tty -s /bin/bash

Use a new, different username and try it?


James



--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
yes I did except the tty user group and -s /bin/zsh
new different usernames work correctly but the problem is my
/home/jefklak directory is owned by user "jefklak" and not by the
different user name...


On Mon, 13 Sep 2004 12:26:05 -0400, wireless <wireless@tampabay.rr.com> wrote:
> Wouter Groeneveld wrote:
> > Shit man.
> > Even that does not work!! :-(
> > What now?
> >
> > I deleted the user jefklak, re-added it - had some permission problems
> > after that (solved, user #1000 and not #1003) but I still start in
> > /home...
> > And it only appers in X.
> > That has to mean SOMETHING!!
> >
>
>
> Did you use something like this to make the user account?
>
> useradd jefklak2 -m -G users,wheel,audio,tty -s /bin/bash
>
> Use a new, different username and try it?
>
>
>
>
> James
>
> --
> gentoo-user@gentoo.org mailing list
>
>



--
==============
>> Jefklak
Gentoo Linux 2.6.8.1-klak3
==============

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Still need help :-(


On Mon, 13 Sep 2004 19:28:21 +0200, Wouter Groeneveld <jefklak@gmail.com> wrote:
> yes I did except the tty user group and -s /bin/zsh
> new different usernames work correctly but the problem is my
> /home/jefklak directory is owned by user "jefklak" and not by the
> different user name...
>
>
>
>
> On Mon, 13 Sep 2004 12:26:05 -0400, wireless <wireless@tampabay.rr.com> wrote:
> > Wouter Groeneveld wrote:
> > > Shit man.
> > > Even that does not work!! :-(
> > > What now?
> > >
> > > I deleted the user jefklak, re-added it - had some permission problems
> > > after that (solved, user #1000 and not #1003) but I still start in
> > > /home...
> > > And it only appers in X.
> > > That has to mean SOMETHING!!
> > >
> >
> >
> > Did you use something like this to make the user account?
> >
> > useradd jefklak2 -m -G users,wheel,audio,tty -s /bin/bash
> >
> > Use a new, different username and try it?
> >
> >
> >
> >
> > James
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
>
>
> --
> ==============
> >> Jefklak
> Gentoo Linux 2.6.8.1-klak3
> ==============
>



--
==============
>> Jefklak
Gentoo Linux 2.6.8.1-klak3
==============

--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
Wouter Groeneveld wrote:
> yes I did except the tty user group and -s /bin/zsh
> new different usernames work correctly but the problem is my
> /home/jefklak directory is owned by user "jefklak" and not by the
> different user name...
>
>
> On Mon, 13 Sep 2004 12:26:05 -0400, wireless <wireless@tampabay.rr.com> wrote:
>
>>Wouter Groeneveld wrote:
>>
>>>Shit man.
>>>Even that does not work!! :-(
>>>What now?
>>>
>>>I deleted the user jefklak, re-added it - had some permission problems
>>>after that (solved, user #1000 and not #1003) but I still start in
>>>/home...
>>>And it only appers in X.
>>>That has to mean SOMETHING!!
>>>
>>
>>
>>Did you use something like this to make the user account?
>>
>>useradd jefklak2 -m -G users,wheel,audio,tty -s /bin/bash
>>
>>Use a new, different username and try it?
>>

OK,

Try using /bin/bash instead of /bin/zsh just to see if things work
with a different shell... I'm new to gentoo, also, so we may quickly
run out of ideas.... You may want to search for any know bugs with zsh
and gentoo....


James







--
gentoo-user@gentoo.org mailing list
Re: Weird user login problem: start directory messed up [ In reply to ]
xterms have a different startup file to console bash sessions.

one uses ~/.bashrc and one uses ~/.bash_profile, i can never remember
which is which. If the xterm one has a line like cd .. this might
account for what u are seeing.


On Tue, 14 Sep 2004 11:09:47 +0200
Wouter Groeneveld <jefklak@gmail.com> wrote:

> Still need help :-(
>
>
> On Mon, 13 Sep 2004 19:28:21 +0200, Wouter Groeneveld <jefklak@gmail.com> wrote:
> > yes I did except the tty user group and -s /bin/zsh
> > new different usernames work correctly but the problem is my
> > /home/jefklak directory is owned by user "jefklak" and not by the
> > different user name...
> >
> >
> >
> >
> > On Mon, 13 Sep 2004 12:26:05 -0400, wireless <wireless@tampabay.rr.com> wrote:
> > > Wouter Groeneveld wrote:
> > > > Shit man.
> > > > Even that does not work!! :-(
> > > > What now?
> > > >
> > > > I deleted the user jefklak, re-added it - had some permission problems
> > > > after that (solved, user #1000 and not #1003) but I still start in
> > > > /home...
> > > > And it only appers in X.
> > > > That has to mean SOMETHING!!
> > > >
> > >
> > >
> > > Did you use something like this to make the user account?
> > >
> > > useradd jefklak2 -m -G users,wheel,audio,tty -s /bin/bash
> > >
> > > Use a new, different username and try it?
> > >
> > >
> > >
> > >
> > > James
> > >
> > > --
> > > gentoo-user@gentoo.org mailing list
> > >
> > >
> >
> >
> > --
> > ==============
> > >> Jefklak
> > Gentoo Linux 2.6.8.1-klak3
> > ==============
> >
>
>
>
> --
> ==============
> >> Jefklak
> Gentoo Linux 2.6.8.1-klak3
> ==============
>
> --
> gentoo-user@gentoo.org mailing list

--
Nick Rout <nick@rout.co.nz>


--
gentoo-user@gentoo.org mailing list