0

I have Solaris 9.

When running useradd as root i have this error.

#/usr/sbin/useradd
ksh: /usr/sbin/useradd : cannot exceute

Then tried change shell csh and sh but to no avail. csh:

# /usr/sbin/useradd : not owner

#ls -l /usr/sbin/useradd
-r-xr-xr-x   2 root    sys      34596 Mar  1  2011 useradd

Your expertise will be helpful :)

9
  • what is the output of "file /usr/sbin/useradd"? Nov 18, 2015 at 21:35
  • i got an error. cannot open: Permission denied
    – jcv
    Nov 18, 2015 at 21:40
  • output of your id command? It does not makes much sense Nov 18, 2015 at 21:41
  • uid=0 (root) gid=1(other) groups=0 (root),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp)9,(nuucp),12(daemon)
    – jcv
    Nov 18, 2015 at 21:44
  • 1
    yeah this is so weird
    – jcv
    Nov 18, 2015 at 21:46

1 Answer 1

0

Suspecting the file may be corrupt.
Do you have another similarly configured/patched box to compare?

If not, it should be part of SUNWcsu. To verify that and pkg:

solaris10 [17] grep useradd /var/sadm/install/contents /usr/sbin/roleadd=../../usr/sbin/useradd l none SUNWcsu /usr/sbin/useradd f none 0555 root sys 40304 49661 1343868237 SUNWcsu /usr/share/man/man1m/useradd.1m f none 0644 root root 11879 27402 1352766995 SUNWman solaris10 [18] pkginfo SUNWcsu system SUNWcsu Core Solaris, (Usr)

pkgchk SUNWcsu <-- to check pkg

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .