Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7181397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:32:55+00:00 2026-05-28T17:32:55+00:00

I am using a shell script to execute a series of commends every time

  • 0

I am using a shell script to execute a series of commends every time I boot my computer.

One of the commands in the script is

sudo insmod blablabla

This command needs to be run as root, so double clicking the .sh file and choosing run is not an option, I have to choose run in terminal, and then enter the password in the terminal.

Is there any way to go around that?

Also, if yes, will it work if I add the script to the startup processes so that I don’t have to run it every time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:32:56+00:00Added an answer on May 28, 2026 at 5:32 pm

    Leverage sudoers to run the command as a normal user. Refer to the Ubuntu community wiki on sudoers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I execute a shell script using the method below, my if (p.exitValue() !=
I am using System() command to execute shell command from perl script but I
I'm using a shell execute action in rsyslog to a python script on a
How to compare two property files in two different folders using shell script input
I'm trying to get the contents of a directory using shell script. My script
I'm trying to get the contents of a directory using shell script. My script
Is it possible to set the Screen Title using a shell script? I thought
I tried using $(date) in my bash shell script, however, I want the date
I am using the wc utility in a shell script that I run from
I'm trying to create a new launchagent file that will execute a shell script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.