Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2006 23:16:08 +0200
From:      Oles Hnatkevych <don_oles@able.com.ua>
To:        freebsd-questions@freebsd.org
Subject:   su: _secure_path: cannot stat .login_conf: Permission denied
Message-ID:  <14553570209.20060306231608@able.com.ua>

next in thread | raw e-mail | index | archive | help
Hello!

Desparately need some guru's help.

I am trying to "move" FreeBSD 6.1 installation from one hard drive to
another. I do stuff like "newfs /dev/ad1s1a" and so on, then I mount
all new partitions to some tree in /mnt, then I do simple things:
tar --one-file-system -cf - -C / .|tar xpvf - -C /mnt/new/
and just like this I copy /, /var, /usr.

And when new hard drive becomes primary, everything is OK except that
I can not "su" to any user neither I can not login as a user:

murzik:root# su -m user
su: /usr/local/bin/bash: Permission denied

/var/log/messages says:
Mar  6 22:49:07 server sshd[891]: _secure_path: cannot stat /home/user/.login_conf: Permission denied
Mar  6 22:51:50 server su: _secure_path: cannot stat /home/user/.login_conf: Permission denied

The page http://www.freebsd.org/doc/en/books/handbook/mac-troubleshoot.html
does not explain anything at all and looks weird. I do not use MAC at
all, neither I use "newfs -l" command. Commands getmpac and getfmac do not
work.

Further googling did not help. I believe some strange things are going
on.

What is this???? What do I do with that?

Any hint is appreciated.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14553570209.20060306231608>