View previous topic :: View next topic |
Author |
Message |
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Tue Mar 07, 2006 2:33 pm Post subject: strange login behavior - [ SOLVED ] |
|
|
i've added a test user with
Code: | useradd -g users -G wheel -s /bin/bash -m test
passwd test |
and when i try to login i get the following: "No home directory for user /home/test!"
but the home folder exists! have i missed sth? _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir
Last edited by EASYdoor on Wed Mar 08, 2006 10:38 am; edited 2 times in total |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Tue Mar 07, 2006 2:37 pm Post subject: |
|
|
Weird message, "No home directory for user /home/test" ?
Check your /etc/passwd file and see if the home directory is defined. Make sure that the home directory exists and has been chown'ed to the user. _________________ Please add "[solved]" to the initial topic title when it is solved. |
|
Back to top |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Tue Mar 07, 2006 2:40 pm Post subject: |
|
|
Sven Vermeulen wrote: | Weird message, "No home directory for user /home/test" ?
Check your /etc/passwd file and see if the home directory is defined. Make sure that the home directory exists and has been chown'ed to the user. |
Code: | test:x:1000:100::/home/test:/bin/bash |
and it's corectlly chowned by the user in the users group & permissions 755 which should be ok or not? _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Tue Mar 07, 2006 3:31 pm Post subject: |
|
|
Once logged on, what does echo ${HOME} say?
And if you run cd, to what directory are you moved (pwd can tell you)? _________________ Please add "[solved]" to the initial topic title when it is solved. |
|
Back to top |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Tue Mar 07, 2006 3:41 pm Post subject: |
|
|
Sven Vermeulen wrote: | Once logged on, what does echo ${HOME} say?
And if you run cd, to what directory are you moved (pwd can tell you)? |
i cannot login, with any of my user accounts from users group! i can only operate with root account!
i've even tried to completly delete my user account and create another, but it just wont work,...
if i run from Xorg & aterm console:
my console dies
help?!?! _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Tue Mar 07, 2006 8:02 pm Post subject: |
|
|
does either of
Code: |
# su test
# su - test
|
work?
something else: are there any loose chroots around? check df/mount.
and what are the permissions on /home and /.? _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Tue Mar 07, 2006 9:13 pm Post subject: |
|
|
mdeininger wrote: | does either of
Code: |
# su test
# su - test
|
work?
something else: are there any loose chroots around? check df/mount.
and what are the permissions on /home and /.? |
su test
Code: | Cannot execute /bin/bash: Permission denied |
su - test
Code: | Unable to cd to "/home/test" |
df -h
Code: |
Filesystem Size Used Avail Use% Mounted on
/dev/hda4 54G 51G 2.9G 95% /
udev 442M 276K 442M 1% /dev
/dev/hda2 38M 17M 20M 47% /boot
none 442M 0 442M 0% /dev/shm
none 200M 40K 200M 1% /tmp
|
/home folder owned by root & group name also root, perm 40755;
subfolder test is owned by test in group users; perms 40755;
/ - owner&group is root & perms 700
I'm running additional 3 gentoo machines besides my laptop with the same conf (permissions) on all of them, but only my laptop got screwed?!?! Normally i run everything as root, but at this moment i badly need to test some software i wrote as a normal user....any ideas? _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Tue Mar 07, 2006 9:21 pm Post subject: |
|
|
actually, yes I do
try
the permissions on / seem too narrow: if it's 700, then ordinary users (everything but something with uid=0 or the owner, i.e. uid=0) can't read/access anything below that directory... very bad to have on root... _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Wed Mar 08, 2006 10:38 am Post subject: |
|
|
mdeininger wrote: | actually, yes I do
try
the permissions on / seem too narrow: if it's 700, then ordinary users (everything but something with uid=0 or the owner, i.e. uid=0) can't read/access anything below that directory... very bad to have on root... |
sweet, that did the trick
ok, what's the big deal with root account's, besides getting easily hacked on an server, but i'm running this on my laptop i don't see any danger with good firewall & IDS system, do you? _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Wed Mar 08, 2006 11:03 am Post subject: |
|
|
EASYdoor wrote: | mdeininger wrote: | actually, yes I do
try
the permissions on / seem too narrow: if it's 700, then ordinary users (everything but something with uid=0 or the owner, i.e. uid=0) can't read/access anything below that directory... very bad to have on root... |
sweet, that did the trick
ok, what's the big deal with root account's, besides getting easily hacked on an server, but i'm running this on my laptop i don't see any danger with good firewall & IDS system, do you? |
excellent... i remember a bug with a stage-tarball some while back that had these permissions...
oh, with root i just meant /
well, it is technically a bad idea to always run as root... yeah, it's unlikely that you do something stupid on your onw laptop and if nobody can access it anyway then... well yeah, one problem, however, is that it's easier for virii and the like to operate if they're run as root. should you ever somehow catch a linux mail-virus, it'll be able to destroy your system a lot easier than if you only were running things as root (it could do dd if=/dev/zero of=/dev/hda, for example...). there's lotsa things like that, which is why you're supposed to always run your box as a regular user... of course, that's about the same as the swap/noswap argument so basically it's up to you
it's worth noting, however, that there's a good handful of unix operating-systems where you can't login as root, even some where you can't even su to root, you're always forced to sudo... _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Wed Mar 08, 2006 11:43 am Post subject: |
|
|
Quote: | that's about the same as the swap/noswap argument so basically it's up to you |
good one
well thanx for your help, i really appreciated!
so now i can finally test my IPS system on my universty wlan network with kismet
thanks again _________________ Pejt na pir! Ne, ne,...se boljs,....JST grem na pir |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|