Unable to cd to "/home/user"

Ainsley Pereira marble at albatross.snowplains.org
Fri Jul 13 04:30:15 PDT 2001


What permissions does /bin have?
If it's a dynamic bash, what permissions do /etc (/ld.so.conf and
/ld.so.cache), and /lib have?

~Ainsley

(Apologies for poor quoting style etc, I currently have no home access,
bleh!)


On Fri, 13 Jul 2001 pacholleck at nexgo.de wrote:

> I am really clueless on this one. Archives did not help,
> neither google results.
> 
> version: glibc-2.2.1/gcc-2.95.1 combi, so quite normal
> working: root login and anything else he does
> problem: all users cannot login, cd to their home dir fails
> 
> actions:
> 1. created testuser called albert
>    useradd -u 502 -g 500 -d /home/albert -s /bin/bash -m albert
> 1. copied + chown .bash_profile to his home and passwd albert
> 2. logfile entries:
>    useradd[59]: new user: name=albert, uid=502, gid=500, \n ;)
>                 home=/home/albert, shell=/bin/bash
>    passwd[61]: password for `albert' changed by `root'
> 3. login works, albert is recognized, but then
> -----
> 4. error message: Unable to cd to "/home/albert"
> 5. checked permissions and data:
>    /home   755 root.root
>    /albert 755 albert.users (later 700)
>    users:x:500:albert
>    albert:948b9km?.:502:500::/home/albert:/bin/bash
> 6. devices like this
>    console  c 5,1 622 root.root
>    tty      c 5,0 666 root.root
>    tty1     c 4,1 600 root.tty
>    ttyX     c 4,X 622 root.root
> 7. inittab line(s accordingly)
>    1:2345:respawn:/sbin/agetty tty1 9600
> 8. executable in all (s)bin dirs 755 root.root
> 9. root tried this: su albert
> 10 results in error: cannot execute /bin/bash: permission denied
> 11 /bin/bash is 755 root.root (see 8.)
> 12 I never touched /etc/login.defs
> 13 all on one partition mounted with option defaults
> 
> So, everthing seems ok, as far as I can see.
> Any ideas what else might be causing this?
> 
> Thanks, Erika
> -- 
> Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the message
> 

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list