# Command Restrictions on Linux

**URL:** <https://community.netwrix.com/t/command-restrictions-on-linux/6749>\
**Category:** Privilege Secure Ideas\
**Tags:** completed\
**Created:** [April 9, 2025, 9:51pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749 "2025-04-09T21:51:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yzchdi](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yzchdi](https://community.netwrix.com/u/yzchdi)\
**Post date:** [April 9, 2025, 9:51pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/1 "2025-04-09T21:51:29Z")

</div>

### What is a one sentence summary of your feature request?

Ability to monitor, alert and block actions or commands on Linux

### Please describe your idea in detail. What is your problem, why do you feel this idea is the best solution, etc.

Need the ability to monitor, alert and block for set of prohibited actions or commands like shutdown a linux. For example, if a user tries to shut down a machine, the NPS administrator should get an alert, and the action should be blocked.

### How do you currently solve the challenges you have by not having this feature?

We monitor the SIEM for events after the fact but cannot detect or alert in real-time.

---

<div class="post-metadata">

**Author:** ![martin.cannard](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/martin.cannard/32/244_2.png) [@martin.cannard](https://community.netwrix.com/u/martin.cannard)\
**Post date:** [April 10, 2025, 2:09pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/2 "2025-04-10T14:09:57Z")

</div>

Hi Chua,

This feature is in QA right now and will be in our next release scheduled for June timeframe.

All the best,  
Martin

---

<div class="post-metadata">

**Author:** ![yzchdi](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yzchdi](https://community.netwrix.com/u/yzchdi)\
**Post date:** [September 18, 2025, 4:15am UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/3 "2025-09-18T04:15:24Z")

</div>

Hi Martin,

Would like to verify if this feature is released ? If yes, where do we set this up?

Thank you!

Best regards,

YZ

---

<div class="post-metadata">

**Author:** ![dpiazza](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/dpiazza/32/1531_2.png) [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Post date:** [September 18, 2025, 1:24pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/4 "2025-09-18T13:24:25Z")

</div>

Hi Chua,

This feature has been released and is found in `Policy --> Access Policy --> Command Restriction` in v25.08.04003 and later.

> **Command Restrictions for SSH**  
> Specific commands can be restricted during SSH sessions using regular expressions. The system evaluates commands in order from top to bottom, applying the first matching rule. Available actions include logging the command, blocking it, locking the session, or terminating the session. Custom lock messages can be configured per command when using the lock action. Email notifications can be sent to NPS administrators whenever a restricted command is triggered. Restrictions are configured in the new Command Restrictions section within the Policy tab.

 ![](https://netwrix1.discourse-cdn.com/netwrix/original/2X/d/d888f82861f3a98e4248a108f29daf884e168505.png)

 ![](https://netwrix1.discourse-cdn.com/netwrix/original/2X/5/5e88cf161aab4a7d582dc93bc4593d0c34d08b22.png)

- Dan

---

<div class="post-metadata">

**Author:** ![yzchdi](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yzchdi](https://community.netwrix.com/u/yzchdi)\
**Post date:** [September 18, 2025, 2:14pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/5 "2025-09-18T14:14:27Z")

</div>

Hi Dan,

Awesome! May I know where can i find the documentation for v 25.9.3002.0 ?

Only seems to find v4.2 documentation ([Netwrix Privilege Secure for Access Management v4.2 Documentation | Netwrix Product Documentation](https://docs.netwrix.com/docs/privilegesecure/4_2)). Am excited to test out this feature.

Thank you!

Best regards,

YZ

---

<div class="post-metadata">

**Author:** ![dpiazza](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/dpiazza/32/1531_2.png) [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Post date:** [September 18, 2025, 2:20pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/6 "2025-09-18T14:20:39Z")

</div>

Our documentation is still in the process of being updated, as we recently were in a documentation freeze while we migrated to the [new docs site](https://docs.netwrix.com/docs/privilegesecure/4_2).

In the meantime, do you have specific questions about the **Command Restrictions for SSH** feature?

---

<div class="post-metadata">

**Author:** ![yzchdi](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yzchdi](https://community.netwrix.com/u/yzchdi)\
**Post date:** [September 18, 2025, 2:38pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/7 "2025-09-18T14:38:11Z")

</div>

Hi Dan,

This is a common question that our customer asks so wanted to set this up on our end with some guide if there is any.  
Can i check if this restricted commands works for Windows CMD and PS?

Roughly when will the documentation be updated?

Thank you!

Best regards,

YZ

---

<div class="post-metadata">

**Author:** ![dpiazza](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/dpiazza/32/1531_2.png) [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Post date:** [September 18, 2025, 2:49pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/8 "2025-09-18T14:49:09Z")

</div>

This feature is only for SSH sessions provisioned via NPS. It has no effect on Windows RDP sessions, even if the user opens a command line such as CMD or PS. It’s strictly for SSH.

Documentation updates will begin very soon - I don’t have a firm timeline for completion, but within the next month seems reasonable.

---

<div class="post-metadata">

**Author:** ![derek.putnam](https://yyz1.discourse-cdn.com/netwrix/user_avatar/community.netwrix.com/derek.putnam/32/501_2.png) [@derek.putnam](https://community.netwrix.com/u/derek.putnam)\
**Post date:** [February 2, 2026, 3:05pm UTC](https://community.netwrix.com/t/command-restrictions-on-linux/6749/9 "2026-02-02T15:05:41Z")

</div>

Closed on February 2, 2026, 3:05pm UTC


