Skip to content

mypapit gnu/linux

Free and Open Source blogger with an attitude

Posted on January 16, 2018January 16, 2018 by Mohammad Hafiz mypapit Ismail

How to run script with another user privileges

Here’s how to run a script with another user privilege. You can run this user with root.

su -c "/usr/bin/executable" -s /bin/sh username

Where the “username” is the username whom privilege you want to execute

CategoriesUbuntu/Debian Tagsbash, cli, command-line interface, ssh

Post navigation

Previous PostPrevious Solving ‘kex protocol error: type 7’ error in scp and ssh
Next PostNext How to convert Microsoft Office *.docx files to PDF using Linux in command-line

Follow Me

Mypapit GNU/Linux Blog

Subscribe

Subscribe RSS Feed

Pages

  • About
  • Contact Me
  • Links
  • Privacy Policy

linux blog

734d5b34a0fe661550799aea702038486fe25365e7ca00f28b
Privacy Policy Proudly powered by WordPress