1836253 Members
2146 Online
110096 Solutions
New Discussion

Re: SAM

 
SOLVED
Go to solution
M.sureshkumar
Regular Advisor

SAM

Hi All

When i tried create a new user by using SAm, i am getting the following error in sam log.

Error:Customized pre-task for task UG_ADD_USER failed.
@!@8@1209354029@0
Exiting Task Manager with task UG_ADD_USER.
@!@16@1209354029@0
User-defined pre-add task customization command failed (returned non-zero) wh
en adding user "test". See the SAM log file for details. The user was not
added.^A


Pls guide me.

Regards,
Suresh
10 REPLIES 10
whiteknight
Honored Contributor

Re: SAM

Suresh,

You sam could have some problem.

Possible/etc/default/useradd is corrupted.

Try the following:- cp /usr/newconfig/etc/default/useradd /etc/default/useradd


WK

don't forget to assign points
Problem never ends, you must know how to fix it
Safarali
Valued Contributor

Re: SAM

Hi Suresh

Your problem looks like patch issue
try to add user directly

useradd -m -d /home/username usename

if it works ok

or exit from sam check any other sam is running
if not start sam again and try if it is not working you have to install latest patches

Regards
Safar
M.sureshkumar
Regular Advisor

Re: SAM

Hi

In command prompt, useradd command is working fine.I am getting useradd problem only in sam.

Regards,
Suresh
Dennis Handly
Acclaimed Contributor

Re: SAM

>See the SAM log file for details.

Can you provide the error details from there.
Yogeeraj_1
Honored Contributor

Re: SAM

hi Suresh,

please post a more lengthier extract from your /var/sam/log/samlog

there might be some additional clues in there.


revert!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
M.sureshkumar
Regular Advisor

Re: SAM

Hi

Pls find the sam log file.

Number of users is: 26
@!@8@1209445657@0
Exiting Task Manager with task UG_ICOUNT_USERS.
@!@8@1209445657@0
Exiting Task Manager with task UG_GET_DEFAULT_UID.
@!@8@1209445670@0
Entering Task Manager with task UG_VALIDATE_NEWUSER.
@!@2@1209445670@0
Performing task "Validate New User".
@!@8@1209445670@0
Exiting Task Manager with task UG_VALIDATE_NEWUSER.
@!@8@1209445670@0
Entering Task Manager with task UG_VALIDATE_HOMEDIR_ADD.
@!@2@1209445670@0
Performing task "Validate Home Directory".
@!@8@1209445670@0
Exiting Task Manager with task UG_VALIDATE_HOMEDIR_ADD.
@!@8@1209445674@0
Entering Task Manager with task UG_VALIDATE_STARTUP_PROG.
@!@2@1209445674@0
Performing task "Validate Login Shell".
@!@8@1209445674@0
Exiting Task Manager with task UG_VALIDATE_STARTUP_PROG.
@!@8@1209445674@0
Entering Task Manager with task UG_IS_UID_IN_USE.
@!@2@1209445674@0
Determining if User ID "112" is in use.
@!@8@1209445674@0
Exiting Task Manager with task UG_IS_UID_IN_USE.
@!@1@1209445737@0
Adding user testxyz.
@!@8@1209445737@0
Entering Task Manager with task UG_ADD_USER.
@!@2@1209445737@0
Performing task "Add User".
@!@1@1209445737@0
Performing customized pre-task for task UG_ADD_USER.
@!@8@1209445737@0
Entering Task Manager with task ug_custom_add_user.
@!@2@1209445737@0
Performing task "Execute Pre/Post Add User Tasks".
@!@2@1209445737@0
Executing the following command:\C/usr/sbin/swlist -l "testxyz" -v "112" -h "
/home/testxyz" -g "users" -s "/usr/bin/sh" -p "vSIQki368xY56" -R "" -L "" -H
"" -O "" \C
@!@2@1209445738@0
Command completed with exit status 1.
@!@2@1209445738@0
The command wrote the following to stderr:\CERROR: An invalid level was giv
en for the successful execution of^A "swlist". The valid levels are:
"root", "depot", "bundle",^A "product", "subproduct", "fileset", "fi
le", "shroot",^A "prroot", "category", "patch", "control_file".^AERRO
R: Command line parsing failed.^A\C
@!@8@1209445738@0
Exiting Task Manager with task ug_custom_add_user.
@!@32@1209445738@0
Customized pre-task for task UG_ADD_USER failed.
@!@8@1209445738@0
Exiting Task Manager with task UG_ADD_USER.
@!@16@1209445738@0
User-defined pre-add task customization command failed (returned non-zero) wh
en adding user "testxyz". See the SAM log file for details. The user was no
t added.^A

Thanks&Regards,
Suresh
Torsten.
Acclaimed Contributor

Re: SAM

IMHO this is the source of the problem:

Performing task "Execute Pre/Post Add User Tasks".
Executing the following command:\C/usr/sbin/swlist -l "testxyz" -v "112" -h "
/home/testxyz" -g "users" -s "/usr/bin/sh" -p "vSIQki368xY56" -R "" -L "" -H
"" -O "" \C

Customized pre-task for task UG_ADD_USER failed.
User-defined pre-add task customization command failed (returned non-zero) wh
en adding user "testxyz".




The user defined command points to swlist - why???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Safarali
Valued Contributor

Re: SAM

Hi Suresh

You need to install latest patches

Regards
Safar
Torsten.
Acclaimed Contributor
Solution

Re: SAM

Patching is always a good idea, but I think this time it will not help, as long as there is this user defined command in place.

Check Actions -> task customization and user templates for any entries.

The "swlist" command is wrong here.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
M.sureshkumar
Regular Advisor

Re: SAM

Hi Torsten,

After i removed swlist entry from task customazation, now it is woking fine.

Thanks&Regards,
Suresh