Questions tagged [root-access]

42 questions
8
votes
3 answers

find inode number of a file using C code

I have program, say name giverootAccess. This program can receive a file name in the current directory (where giverootAccess resides) as a command-line argument. Then the file will get the root access. The file can be an executable or a shell…
shahir
  • 81
  • 1
  • 1
  • 3
4
votes
1 answer

Can I mount the root (system) filesystem as writable in macOS Monterey?

I'm trying to make my python code read and write a file at the system root, so I disabled System Integrity Protection following these steps. But when I run the command sudo mount -uw / I get this error: mount_apfs: volume could not be mounted:…
Wejdan
  • 41
  • 1
  • 2
4
votes
2 answers

Prompt for root access in cocoa application

I want my program to begin with a prompt/alert that asks for root access. The user must enter their password, and then the application follows. I've been looking around, but I'm not exactly sure how to do this. You help is greatly…
user762034
4
votes
3 answers

Programmatically requesting elevated rights in Linux

(This question has identical title, but question body asks it in scripting point of view, e.g. su -c, don't dupe this to that) I have a Qt GUI app that needs to perform some file operations in /etc based on user input. One option would probably to…
Tuminoid
  • 9,445
  • 7
  • 36
  • 51
4
votes
2 answers

Launch another app in Kiosk Mode from a device owner app in Android Lollipop

Is there any possibility to start another 3rd party app locked down in Kiosk Mode on Android L? It would be great to be able to do such a thing without the use of root access. But if this is not possible without the use of root access, it would also…
4
votes
1 answer

Re-enable root access in mysql

I recently installed mysql on my (cloud) server and then I ran sudo /usr/bin/mysql_secure_installation and disallowed remote root login. Then I created another user to run all my queries and gave it appropriate permissions. I can't remember the…
Guranjan Singh
  • 734
  • 2
  • 7
  • 24
3
votes
0 answers

Prevent app to uninstall like system app android

We are developing one app that will be pre-installed on device manufacture time. seems like a bloatware app. we want to prevent our app to uninstall by user like Contacts and other pre-installed app. i searched a lot on google. but getting the same…
Ajay
  • 1,189
  • 1
  • 12
  • 28
2
votes
0 answers

Device Administration App & AppData Wipe on Android

I'm working on a Device Administration App for Android Tablets, that will enable Advanced Account Management on Honeycomb/ICS devices. One crucial feature of this application is the ability to wipe all applications data when a new user logs in : the…
squizz
  • 216
  • 3
  • 7
2
votes
3 answers

Transferring AWS Root Account access when MFA is enabled

I have been managing an AWS account for about a year. Typical "best practices" security setup: 1 Root Account Multiple non-Root accounts, including the one I use on a daily basis All accounts using MFA (I personally use the Google Authenticator…
2
votes
0 answers

How to revoke other applications permission in android with root access?

I am making an android application which could temporarily remove other application's permissions such as their access to contacts based on the security level of the network. I do not want to go into the OS level and make changes there. I know this…
2
votes
2 answers

Can I use sqlite 3 on non rooted device

Hi all, I am aware how to use sqlite3 on emulator to monitor data of app. Is it possible to use on a real device? My device is Nexus S when I try on my device it says sqlite3 is not found. Is it compulsory to sqlite 3 device must be a rooted one? My…
CodingRat
  • 1,934
  • 3
  • 23
  • 43
2
votes
1 answer

What can I do as OpenShift user?

I'm currently using a virtual server and want to try OpenShift out. But I'm not really getting yet, how it works. Do I get a root access to my "webspace"? Can I set up the server OS (e.g. Debian 7)? Can I install/uninstall software (nginx, PHP 5.5,…
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
2 answers

How can I install the python module YAML without ROOT ACCESS ( 'easy_install' and 'pip' are not available)?

I am trying to run a python script that calls the yaml module on a server. I only have writing permissions in my home directory. The server has Python 2.7.3 installed. I do not have root access. Also, neither pip nor easy_install are available. I…
user1895406
  • 1,383
  • 2
  • 9
  • 10
1
vote
3 answers

How to inject SELinux policies permanently in android?

I have a rooted android device and I need to inject following policies into it: sepolicy-inject -s init -t su -c process -p transition -l sepolicy-inject -s su -t system_file -c file -p entrypoint -l sepolicy-inject -s init -t su -c process -p…
Vatish Sharma
  • 1,536
  • 3
  • 16
  • 35
1
vote
1 answer

Accessing Android iptables through Device Administrator Rights not via rooting

I want to write an app that manages the Android iptables (something like DroidWall) without rooting the device. What kind of "device administrator rights" I have to give to my app in this case? As an example, the following resource file gives my app…
Mustafa
  • 109
  • 1
  • 7
1
2 3