Subject: pkgsrc,cpio,useradd,solaris incompatibility
To: None <tech-pkg@netbsd.org>
From: Hal Snyder <hal@vailsys.com>
List: tech-pkg
Date: 02/05/2004 11:38:50
When creating a new account with home directory from pkgsrc on
Solaris, there could be a problem as Solaris useradd (and pkgadd, but
that's not important now) rely on a cpio which is not compatible with
pkgrsc cpio:

>uname -a
SunOS ddsvws68.vail 5.8 Generic_108529-18 i86pc i386 i86pc

>type cpio
cpio is /usr/pkg/bin/cpio

>sudo useradd -m -d /export/home/foozle foozle
cpio: Unable to open  to read (No such file or directory)
cpio: Unable to open  to read (No such file or directory)
cpio: Unable to open  to read (No such file or directory)
UX: useradd: ERROR: Unable to copy skeleton directory into home directory: No such file or directory.


But:


>PATH=/bin:/usr/bin:/sbin:/usr/sbin 

>type cpio
cpio is /bin/cpio

>/usr/sfw/bin/sudo useradd -m -d /export/home/foozle foozle
6 blocks
>...