Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Webmin Administrator's Cookbook
  • Table Of Contents Toc
Webmin Administrator's Cookbook

Webmin Administrator's Cookbook

By : Michal Karzynski
4 (11)
close
close
Webmin Administrator's Cookbook

Webmin Administrator's Cookbook

4 (11)
By: Michal Karzynski

Overview of this book

Written in a cookbook format with practical recipes this book helps you to perform various administrative tasks using Webmin and enables you to perform common jobs more efficiently. This book is perfect for System administrators who want to learn more advanced concepts of Webmin and how it can help to set up a server for development, testing or deployment.
Table of Contents (19 chapters)
close
close
Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Executing a command as another user


Sometimes, it's useful to execute commands as another user. For instance, management commands for some services are, by default, accessible to the system user associated with the service. You may also wish to test whether a user account is configured correctly and execute a command as another user to check if it will work as expected.

Getting ready

In this recipe, we will create a new PostgreSQL database named testdb by issuing the createdb command that is available to the postgres user. If you do not have PostgreSQL installed yet, you may refer to Chapter 10, Running a PostgreSQL Database Server, for information about installing and running this database system.

How to do it...

To execute a command as another user, we will use the Running Processes module:

  1. Navigate to System | Running Processes.

  2. Select Run.. in the Display line.

  3. Enter createdb testdb in the Command to run textbox.

  4. Select Wait until complete as Run mode.

  5. Enter postgres in the Run as user textbox...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Webmin Administrator's Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon