cancel
Showing results for 
Search instead for 
Did you mean: 

how to lock sap users in os level

Former Member
0 Kudos

Dear consultants,

how to lock the sap users in OS level.please tell me any one.

Accepted Solutions (0)

Answers (3)

Answers (3)

willi_eimler
Contributor
0 Kudos

Hi Pradeep,

you can use tp command to do so:

/usr/sap/<SIS>/SYS/exe/run/tp locksys <SID>  pf=<Parameterfile of domain-controler>

after that only sap* and ddic can logon. unlocksys frees the system.

Best regards

Willi Eimler

0 Kudos

Hi Pradeep,

The table is usr02. The command is as below:

update <schema>.usr02 set uflag=128;

in case you need to mention any particular user to be locked, mention in the where clause.

Before using this command, use the select statement to check the current status of the users.

Regards,

Meenu Hans

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you are talking about SAP users then they are stored in the database.

You lock the users either from SAP or from the database level by modifying the UFLAG value.

If you are talking about the SAP and DB OS users then follow the standard way of locking the users.