Discussion:
su: _secure_path: cannot stat .login_conf: Permission denied
Oles Hnatkevych
2006-03-06 21:16:08 UTC
Permalink
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.
Lowell Gilbert
2006-03-07 15:26:38 UTC
Permalink
Post by Oles Hnatkevych
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
tar --one-file-system -cf - -C / .|tar xpvf - -C /mnt/new/
and just like this I copy /, /var, /usr.
Use dump/restore for moving a whole filesystem.
Oles Hnatkevych
2006-03-07 15:43:09 UTC
Permalink
Hello, Lowell.
Post by Oles Hnatkevych
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
tar --one-file-system -cf - -C / .|tar xpvf - -C /mnt/new/
and just like this I copy /, /var, /usr.
LG> Use dump/restore for moving a whole filesystem.

The problem was with permissions. I do not know why, but in fact
I had to "chmod go+rx /usr/*" to make it work. Other partitions tar
copied without problems ;-) It was not easy to find what was wrong...

Now everything works perfect.
--
Oles mailto:***@able.com.ua
Loading...