Skip to content
SAP transaction · Basis

SM49: Execute External OS Commands

SM49 executes external operating system commands that have been defined in SM69, on the application server and as the operating-system user the SAP system runs under. It is a controlled bridge from SAP to the host, so which commands exist and who may run them are both security decisions.

Authorization objects checked by SM49

S_TCODE
Checked when the transaction starts: the user must hold the transaction code.
S_LOG_COM
Executing external commands, by command name, operating system and host.

Checks vary by release and by the functions used. Confirm them in your system with SU24 and an authorization trace (STAUTHTRACE or ST01).

Why SM49 is sensitive

Rinexis risk ratingCritical

Commands run as the SAP system's operating-system user, which owns the system's files. Commands that accept additional parameters can be abused to run arbitrary operating-system commands, so S_LOG_COM should name specific commands rather than '*'.

Executing OS commands from SAP is a critical action in most rulesets.

SoD conflicts involving SM49

  • SM49+SM69

    Define an external OS command and execute it.

Pairings reflect the combinations found in typical SAP SoD rulesets. A real conflict also depends on matching authorization values, such as the same company code.

SM49 FAQ

What is transaction SM49 in SAP?

SM49 executes external operating system commands that have been defined in SM69, on the application server and as the operating-system user the SAP system runs under. It is a controlled bridge from SAP to the host, so which commands exist and who may run them are both security decisions.

Which authorization objects does SM49 check?

Starting SM49 requires S_TCODE with value SM49. Inside the transaction, the key objects are S_LOG_COM. The exact checks depend on the functions used and the release, so confirm them with an authorization trace (STAUTHTRACE or ST01) in your own system.

Is SM49 a sensitive transaction?

Rinexis rates SM49 as critical risk in a production system. Commands run as the SAP system's operating-system user, which owns the system's files. Commands that accept additional parameters can be abused to run arbitrary operating-system commands, so S_LOG_COM should name specific commands rather than '*'.

Which segregation-of-duties conflicts involve SM49?

SM49 with SM69: Define an external OS command and execute it.

All SAP transactions in the library