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

  • SEARCH
  • Home
  • 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 7643569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:28:54+00:00 2026-05-31T09:28:54+00:00

I want to run the app as root Later on I run the app

  • 0

I want to run the app as root
Later on I run the app by an indirect script with running this app with 6755 permission setting which that part works and it runs the app.

MyApp.app/MyApp
MyApp.app/MyApp_

I have MyApp file which is a script as follow :

MyApp.app/MyApp :

#!/bin/bash
dir=$(dirname "$0")
exec "${dir}"/MyApp_ "$@"

Which it runs MyApp_ which is the app to be run as root.

This is the file attribute after I ran ‘chmod 6755 MyApp.app/MyApp_’ on the computer

6755 on computer

-rwsr-sr-x 1 rob staff 817856 Mar 17 01:07 MyApp_

And this is the file attribute when I copy it to the device
( using terminal with scp -rp key )

0755 on the device after copying !!!

-rwxr-xr-x 1 root admin 817856 Mar 17 05:07 MyApp_

How ever when I correct the attributes again on the device it works fine and the MyApp_ runs as root!
But I want to make sure when user installs the app from Cydia and it gets copied via Cydia the same thing does not happen to the user and the MyApp_ attribute doesn’t change back to 0755 which causes the app not to work.

  • 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-31T09:28:55+00:00Added an answer on May 31, 2026 at 9:28 am

    Did you call setuid(0) in main()?

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

Sidebar

Related Questions

I have a program that is running as root. This app calls another program
I want do run migration on my app that I have on heroku but
I want to change the app.setting connection string at the run time. I have
I have created a Python script that I want to run daily via a
I want to run a console application (eg app.exe) from a windows form load
I want my C# WinForms app to run some code when either the app
I want run all script from the directory . Like , The directory contains
I want run a script as follows: runner: ssh 'java program &' ssh 'java
Why this code don't work,when i want run this code vwd 2008 express show
I have written php program and uploaded on server. I want run this program

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.