This tag does NOT refer to the Super User SE site. Use to distinguish those acting with top/high level admin system privileges from other users.
Questions tagged [superuser]
190 questions
0
votes
1 answer
How su binary works?
I was browsing su binary code by Chainsdd when I was browsing it i saw it using setuid(0)
setgid(0)
to give root permissions
so my question is : Can this method used in my own c library ?
if not then how does the su does it? is it because it is…

DevUt
- 1,280
- 11
- 24
0
votes
1 answer
Linux acquire root permissions through a password popup
I am writing a python/Qt application which needs to perform disk mounting. Hence it needs root permissions. Is there any way that I could make the script acquire root permissions using a popup for password, like gparted does?
I know I can detect…

Sujay Phadke
- 2,145
- 1
- 22
- 41
0
votes
1 answer
Permissions to resources in Linux development
I'm quite new to Linux development and I'm facing some problems with permissions. Let's explain in detail: I'm using Mono to create a program which will access to serial ports and when I try to open a serial port (Virtual COM USB serial) I got an…

Carles
- 418
- 2
- 18
0
votes
1 answer
Copy Background color from Master sheet to worksheet - not the contents
I wonder if anyone can help, I'm a noob when it comes to excel. I have to create a speadsheet which will be used in Datacenter management and hardware tracking, so what I've done is created a master worksheet and a sheet per rack, what I need to…

Norrin Rad
- 881
- 2
- 18
- 42
0
votes
1 answer
String command as superuser
I found out that if you want to execute a command as superuser you need to add the following:
echo | sudo -s .
First I wanted to suspend the Linux server with
echo | sudo -s pm-suspend, and it worked fine.
Now I…

lasbr
- 79
- 1
- 8
0
votes
1 answer
Android superuser
I've built a system app running on a rooted/customized version of AOSP Android.
It could happen that I need to download new version of my app from my personal website and replace it on Android system with the new one.
This must be done automatically…

Davide Berra
- 6,387
- 2
- 29
- 50
-1
votes
1 answer
how to copy files from one location to another using root access(super user) on Android with Kotlin
I want to copy file from one location to another using root or su in android 13.
example: copy from /storage/emulated/0/super/hi.txt copy to /storage/emulated/0/
i have tried this Runtime.getRuntime().exec("mv /storage/emulated/0/super/hi.txt…

Gaurav
- 3
- 1
-1
votes
15 answers
Getting error initdb: error: cannot be run as root when initializing db on postgresSQL
I am trying to install ApacheAGE and for this I am following the instruction in the following article but I have installed postgres 12 instead of 11. The installation was successful but when I tried to initialize DB using the command sudo…

abhishek2046
- 312
- 1
- 11
-1
votes
1 answer
Files from which vmstat information come from
I would very much like to know the names and locations of the files from which vmstat command information comes from in Linux OS.

Leo1989
- 23
- 3
-1
votes
2 answers
Permission denied error while running ssh
I am trying to ssh into my ec2 instance from a centos 7 machine. I have added .pem file to .ssh folder.
Am i missing something?
[root@localhost .ssh]# cd /home/###/.ssh/
[root@localhost .ssh]# ls
##.pem
root@localhost .ssh]# ssh…

user6826691
- 1,813
- 9
- 37
- 74
-1
votes
1 answer
How the privileged commands are controlled?
How the Operating system prevents normal users from executing commands like fdisk and umount eventhough the commands have execute permissions for everyone ?
[root@r7prd1 ~]# ls -la $(which umount)
-rwsr-xr-x. 1 root root 31960 Aug 21 2015…

vajravelu
- 53
- 1
- 8
-1
votes
1 answer
How to run as admin?
How to make this bat script run as admin either on the local computer as a scheduled task or startup up scrip?
forfiles -p "C:\ProgramData\ESET\ESET Endpoint Antivirus\Logs\eScan" -s -m *.dat /D -0 /C "cmd /c del @path"

Leo
- 1
-2
votes
1 answer
django superuser created through docker-compose file doesn't work
I have a simple django-mongo application.
I have a dockerfile for my django application.
I have a docker-compose.yml which contains django and mongo images.
I am able to build and run the django-mongo application using docker-compose commands.
the…

ishan modi
- 1
- 2
-2
votes
1 answer
whenever I use "sudo su", i'm getting "bash: export : = not a valid identifier". I'm new to linux. Please excuse for not being more informative
I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.

Drazer
- 67
- 6
-2
votes
1 answer
Application is working on rooted device but not working with SuperSU
I am working on one application that has some features can be only work in rooted devices.
Almost done and application also working in rooted devices. But some of devices are using SuperSU and in this case application is not working properly.
I also…

Ajay Mehta
- 843
- 5
- 14