From: Frank on
On my recently installed Solaris 10 (sunblade 100) useradd dumps core
when using -p option and projectname is given. Searched sunsolve but did
not find this problem

# useradd -u 1001 -g 10 -d /export/home/frank -s /usr/bin/ksh -p test frank
Segmentation Fault(coredump)
# file core
core: ELF 32-bit MSB core file SPARC Version 1, from 'useradd'
# ls -l core
-rw------- 1 root root 3152049 Apr 3 19:08 core

Apparently it does not dump core when using the project-id:

# useradd -u 1001 -g 10 -d /export/home/frank -s /usr/bin/ksh -p 100 frank
# id frank
uid=1001(frank) gid=10(staff)
# grep test /etc/project
test:100::frank::project.max-shm-memory=(privileged,1024,deny)

Is this a known bug?

Regards,
Frank
From: mark.greenbank@gmail.com on
The truss command with the -u option may help narrow down where the
command is failing.

Mark

From: Frank on
mark.greenbank(a)gmail.com wrote:
> The truss command with the -u option may help narrow down where the
> command is failing.
>
> Mark
>

#truss -u a.out useradd ....

[...]
/1: open("/etc/project", O_RDONLY|O_LARGEFILE) = 4
/1: fcntl(4, F_DUPFD, 0x00000100) Err#22 EINVAL
/1: read(4, " s y s t e m : 0 : : : :".., 1024) = 144
/1: Incurred fault #6, FLTBOUNDS %pc = 0xFF362208
/1: siginfo: SIGSEGV SEGV_ACCERR addr=0xFF3CC278
/1: Received signal #11, SIGSEGV [default]
/1: siginfo: SIGSEGV SEGV_ACCERR addr=0xFF3CC278


Well, perhaps this will help the trained eye...

Gr,
From: Scott Howard on
Frank <no(a)spam.org> wrote:
> On my recently installed Solaris 10 (sunblade 100) useradd dumps core
> when using -p option and projectname is given. Searched sunsolve but did
> not find this problem
>
> # useradd -u 1001 -g 10 -d /export/home/frank -s /usr/bin/ksh -p test frank
> Segmentation Fault(coredump)

That's fairly nasty. usermod does the same if you try and add a project
to an existing user.

I've raised bug 6249813 for it. In the interum the only workaround I can
think of is to add the user without the project, and then edit /etc/project
afterwards.

Scott