64 bit passwd utility in Solaris 10 (AMD Optron 64 bit hardware)

Posted on 2006-03-21
Medium Priority
Last Modified: 2013-12-27
We have installed solaris 10 in 64 bit mode, but the "/usr/bin" directory contains 32 bit utilities. The sub-directory "/usr/bin/amd64" contains corresponding binaries in 64 bit mode. But not all utilities are available in 64 bit binary mode. We need passwd utility in 64 bit mode for our project and unfortunately that is not available even though 64 bit password libraries are available. Can anybody help in this case?

Thanks in advance
Question by:sajeeshb
LVL 38

Expert Comment

ID: 16253299
What passwd utility  are you refering to?
the 32bit binay still can run on the 64bit mode.
LVL 10

Expert Comment

ID: 16253595
Like Yuzh said, you need to be a bit more specific about what your specific 64-bit needs are.  All binaries within a 64-bit OS installation do not need be 64-bit.  Please be a bit more specific.

Author Comment

ID: 16254269
Hi All,

More explanation is below:

We are doing a project where we need to use 100% 64-bit binary code. But when we installed Solaris 10 on AMD optron we got the 32 bit binary of passwd utility (the passwd command used to change password in Unix). Since the passwd utility is 32 bit, it is using the 32 bit pam libraries in Solaris. We have a 64 bit pam module and this will be used only when the 64 bit version of the passwd utility used to change password. Since we need 64 bit of the software completely and our software is using the passwd utility we need 64 bit version of the same.

Commands used to check our kernel bit mode is given below. We have 64 bit version of utilities available in /usr/bin/amd64, but passwd utility is not available.

# isainfo -kv
64-bit amd64 kernel modules
# uname -a
SunOS SUN10 5.10 Generic_118844-26 i86pc i386 i86pc
# dmesg | grep bit
Mar 15 23:16:33 SUN10 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Vers  ion Generic_118844-26 64-bit
# file /usr/bin/passwd
/usr/bin/passwd:        ELF 32-bit LSB executable 80386 Version 1, dynamically l  inked, stripped
# ls /usr/bin/amd64
activation-client                      glib-genmarshal                  newtask
adb                                       glib-gettextize                     nohup
amt                                       glib-mkenums                     orbit-idl-2
bonobo-activation-run-query    gobject-query                     orbit2-config
bonobo-slay                           gtk-demo                            pango-querymodules
cputrack                                gtk-query-immodules-2.0      pargs
echo-client-2                          ior-decode-2                       pcred
gconf-merge-tree                   libIDL-config-2                     pfiles
gconftool-2                            linc-cleanup-sockets             pflags
gcore                                    ls                                       pldd
gdk-pixbuf-csource                 mdb                                   plimit
gdk-pixbuf-query-loaders        moe                                   pmap
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 38

Accepted Solution

yuzh earned 1000 total points
ID: 16254708
You can compile two versions of the PAM library; a 32-bit one for /usr/lib/security, and a 64-bit one to put in /usr/lib/security/sparcv9

please read this note:

for more details.
LVL 27

Assisted Solution

Nopius earned 1000 total points
ID: 16265247
Recompile passwd utility as 64-bit executable, either with SunStudio or GCC.

Here are sources (single passwd.c file):

Of course makefile should be fixed for your needs.

Expert Comment

ID: 16569758
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: yuzh & Nopius

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question