su: _secure_path: cannot stat .login_conf: Permission denied

Oles Hnatkevych don_oles at able.com.ua
Mon Mar 6 21:16:21 UTC 2006


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.



More information about the freebsd-questions mailing list