12-27-2011
chroot Issues on Solaris
Hello Friends,
I am trying the chroot command on a Solaris box (SunOS sx07 5.10 Generic_144489-12 i86pc i386 i86pc) but i am getting an error message
chroot: exec failed: Exec format error
Did any of you folks got this error before .. and how did you guys fix it .. please help me out....
Wish you all a very Happy Holidays and a Very Happy New Year!!!!
Thank you All!!
Best Regards
Sudharma.
Last edited by jim mcnamara; 12-27-2011 at 03:02 PM..
Reason: remove font settings - back to default
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i'm having 2 problems.
1. the system will always look to boot from the net. i've changed the prom settings so that it boots from the disk, by entering "setenv boot-device disk0:3", but the system still seems to want to boot from the net.
2. i replaced my creator3d with an elitem6 and i did... (6 Replies)
Discussion started by: xyyz
6 Replies
2. Solaris
Hello All,
I am facing a wierd problem with the Samba 3.0.14a on Solaris 10 and CUPS (1.1.12) printing.
First of all am not sure if this combination works well. If someone could throw some light, it would be of great help.
Samba is setup with security=server, and it is currently a member of... (0 Replies)
Discussion started by: Sapna
0 Replies
3. Solaris
I have never had problems getting patch clusters from sunsolve and running them before. I've extracted the 9_Recommended.zip file ran ./install_cluster all the normal stuff i do to patch etc......But this time all my patches are returning codes 5,8,17 the 5's and 8's don't really matter but my... (1 Reply)
Discussion started by: kingdbag
1 Replies
4. Solaris
I'm trying to jumpstart my remote server. My /etc/hosts and /etc/ethers files have the correct data. Keep getting the following message at the ok prompt
after running a boot net - install
Link hasn't comeup yet
Ran a test-net and got the following message.
Link is -- down
When... (7 Replies)
Discussion started by: soupbone38
7 Replies
5. Solaris
Hihi,
Anyone have encountered any issues with wu-ftpd on solaris 9.
There are intermitten error msg 425 can't build data connection with doing ls or get or put files.
I have did a sniff and from the sniffer logs I found that the FTP traffic is not using the standard protocol to... (0 Replies)
Discussion started by: ahkimkia
0 Replies
6. Solaris
I got this output from a system running solaris 10 :
# lustatus
BE_name Complete Active ActiveOnReboot CopyStatus
--------------------------------------------------------------------------------
oldvol yes yes yes -
newvol no no no -
bigvol no no no -
#
How do i remove (or... (1 Reply)
Discussion started by: ibroxy
1 Replies
7. Solaris
Hi, Configuring a new zone in Solaris 10, even though used svcadm to enable the service telnet, it give the following state always
enabled uninitialized svc:/network/telnet:default
Also noticed the same is happening while enabling other services too.
Any ideas.
Thanks for your help. (5 Replies)
Discussion started by: uxadmin007
5 Replies
8. Solaris
Hello folks! I appear to be having troubles installing the recommended cluster patch for the Solaris 10 OS!
I am absolutely clueless on where to start with this. I know it's an error with pkgadd and patchadd.
# ./installcluster --s10cluster
Setup .
Solaris 10 SPARC Recommended... (5 Replies)
Discussion started by: adelsin
5 Replies
9. Solaris
Hi all
Long time no speak, I hope you are all well.
Im looking at a DNS issue here and reckon Igot a AD / DNS server issue elsewhere but need to rule out the configuration of my two server's first.
IVe got the nameserver enteries in /etc/resolv.conf and dns in the /etc/nsswitch.conf
... (2 Replies)
Discussion started by: sbk1972
2 Replies
10. Solaris
Hello,
I recently upgraded our system from Solaris 8 to 10. It seems couple of binaries crashed in the new server Solaris 10. Before digging too much on it , from theory it sounds like any binary that is built on Solaris 8 (using gmake) is supposed to be compatible with Solaris 10 , right ?
... (1 Reply)
Discussion started by: sudsa
1 Replies
chroot(1M) System Administration Commands chroot(1M)
NAME
chroot - change root directory for a command
SYNOPSIS
/usr/sbin/chroot newroot command
DESCRIPTION
The chroot utility causes command to be executed relative to newroot. The meaning of any initial slashes (/) in the path names is changed
to newroot for command and any of its child processes. Upon execution, the initial working directory is newroot.
Notice that redirecting the output of command to a file,
chroot newroot command >x
will create the file x relative to the original root of command, not the new one.
The new root path name is always relative to the current root. Even if a chroot is currently in effect, the newroot argument is relative to
the current root of the running process.
This command can be run only by the super-user.
RETURN VALUES
The exit status of chroot is the return value of command.
EXAMPLES
Example 1: Using the chroot Utility
The chroot utility provides an easy way to extract tar files (see tar(1)) written with absolute filenames to a different location. It is
necessary to copy the shared libraries used by tar (see ldd(1)) to the newroot filesystem.
example# mkdir /tmp/lib; cd /lib
example# cp ld.so.1 libc.so.1 libcmd.so.1 libdl.so.1 libsec.so.1 /tmp/lib
example# cp /usr/bin/tar /tmp
example# dd if=/dev/rmt/0 | chroot /tmp tar xvf -
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
cd(1), tar(1), chroot(2), ttyname(3C), attributes(5)
NOTES
Exercise extreme caution when referencing device files in the new root file system.
References by routines such as ttyname(3C) to stdin, stdout, and stderr will find that the device associated with the file descriptor is
unknown after chroot is run.
SunOS 5.10 15 Dec 2003 chroot(1M)