---
title: How to use non-root user to run root privilege commands in Netwitness server putty
description: This document helps to allow non-root user to run root privilege commands without root password.1. Login to Netwitness server putty as root user.2. Cr
---

<https://mydev.netwitness.com/netwitness-security-llc-blog>

# [How to use non-root user to run root privilege commands in Netwitness server putty](https://mydev.netwitness.com/netwitness-security-llc-blog/howtousenon-rootusertorunrootprivilegecommandsinnetwitnessserverputty)

 Written by [SravanKoneti1](https://mydev.netwitness.com/netwitness-security-llc-blog/author/sravankoneti1) | Jul 10, 2018, 4:00:00 AM

This document helps to allow non-root user to run root privilege commands without root password.

1\. Login to Netwitness server putty as **root** user.

2\. Create new user account using command

**useradd testing**

3\. Set password for user testing using command

**passwd testing**

4\. Add testing user in sudoer's list by running command **visudo** and add below green highlighted lines. 

\# User\_Alias ADMINS = jsmith, mikem  
User\_Alias ADMINS = testing

\## Allow root to run any commands anywhere  
root ALL=(ALL) ALL  
testing ALL=(ALL) ALL

5\. Login to Netwintess server putty with testing user credentials to test the access.

6\. Run **sudo status nwlogcollector** to check the status of collection service in collector.

7\. All the sudo commands ran by testing user can be tracked in **/var/log/secure** file.

Reference:[TipsAndTricks/BecomingRoot - CentOS Wiki](https://wiki.centos.org/TipsAndTricks/BecomingRoot) 

[View full post](https://mydev.netwitness.com/netwitness-security-llc-blog/howtousenon-rootusertorunrootprivilegecommandsinnetwitnessserverputty)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "SravanKoneti1"
  },
  "dateModified" : "2026-06-18T14:37:18.845Z",
  "datePublished" : "2018-07-10T04:00:00Z",
  "headline" : "How to use non-root user to run root privilege commands in Netwitness server putty",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://mydev.netwitness.com/netwitness-security-llc-blog/howtousenon-rootusertorunrootprivilegecommandsinnetwitnessserverputty",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "NetWitness Blogs"
  }
}
```