On Fri, Jun 22, 2007 at 03:34:13PM +1000, James Sewell wrote: > It seems that the Solaris 10 standard shipped version of sftp-server > accesses both /dev/null and /var/run/name_service_door on startup. When > starting up from a chroot'ed jail the absence of either of these will > cause failure.
/dev/null is a special kind of file, called a "character special file" which is a means of accessing system devices through the filesystem. You can not simply copy this file, though you might be able to use some back-up programs to copy them... I believe cpio can handle them. Not sure about tar, but I wouldn't be surprised if it could too. Backing up /dev is usually a waste of time, so I've never bothered to try. If you do ls -l on /dev/null, you should see something similar to the output below (from a Linux 2.6 system): $ ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Jun 21 22:54 /dev/null Instead of the size information you would see on a "regular" file, this output shows you the device numbers associated with the kernel driver for that device, in this case major number 1, minor number 3. You need to use a program called mknod to create this file in your jail. See the man page on your system for details. I have a vague recollection that some Unix systems might keep this program in /dev and capitalize the name, but that may be incorrect -- I may be confusing that with Linux's /dev/MAKEDEV (which on modern Linux systems is a symlink to /sbin/MAKEDEV) which sets up the device special files for whole classes of devices (and normally never needs to be run by a human). I have no idea what name_service_door does on a Solaris system, but it's almost definitely also a device special file, and would need to be created similarly. Note that the first character in the output of ls -l indicates whether it is a character special file or a block special file. You need to pay attention and do the right thing. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D
pgpvdrdKmc9ky.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
