Questions tagged [superuser]

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.

190 questions
3
votes
1 answer

Android - Kill App from another App (on a rooted device)

I have a rooted Android device. At one point I launch a secondary application from my primary application like so: Intent intent = getPackageManager().getLaunchIntentForPackage("com.app.package"); startActivityForResult(intent, 100); I want to be…
Infamous911
  • 1,441
  • 2
  • 26
  • 41
3
votes
0 answers

Installing Superuser on Android User Debug Build (no su binary found)

I'm currently doing lab work on an upcoming device and I've hit a wall on this particular one. I can't say the model number, but it's running Android 5.1 and the build is LMY47D It's a user debug build - so I have the SU binary and busybox…
Nefariis
  • 3,451
  • 10
  • 34
  • 52
2
votes
1 answer

why POSTGRES database uses postgres user as superuser/default user ? how to change it?

we are planning to install postgresql-13 on our production cluster. but as we have postgres as default user , i want to remove it and use superuser of prod cluster. can any on suggest how to install psql-13 with prod superuser as a default user…
rishikanth
  • 21
  • 1
2
votes
2 answers

Django Rest Framework: how to get the current superuser in serialize?

CreateApiView : class CreateEmployeeApiView(generics.CreateAPIView): # authentication_classes = [TokenAuthentication, SessionAuthentication, ] permission_classes = [IsAuthenticated] queryset = Employee.objects.all() serializer_class =…
2
votes
2 answers

how to remove file from folder and subfolder single command linux

How to delete file from folder and subfolder currently using below command for delete logs but i want delete logs file in folder and subfolder in Linux . currently i am doing enter every folder and delete log for specific year. is there any command…
2
votes
2 answers

How to Get Self Signed Certificate in Ec2

I am working in Ec2 instance. I have connected my php files like http://13.57.220.172/phpinsert.php. But it is not secured site. So i want to convert http into https://13.57.220.172. I have cloudflare ssl. When i try to add ssl certificate. It…
cloudfire
  • 27
  • 3
  • 7
2
votes
0 answers

How to bind key from tmux to cmd on osx and iterm?

Recently I am converting from screen to tmux. but I need a way to bind cmd key - left/right for move between windows. I have my screen setup like this bindkey "^[[C" next # bind to cmd+->, the escape sequence is binded in iterm2 bindkey "^[[D" prev…
LULU
  • 35
  • 1
  • 2
2
votes
2 answers

how to limit number of super user in django

In my django project, I want that there will be only one super user and no more super users can be create by python manage.py createsuperuser Is it possible? If possible how?
cjahangir
  • 1,773
  • 18
  • 27
2
votes
1 answer

SSH recursively change all subfolders names to a specific name

i have hundreads of folders with a subfolder named "thumbs" under each folder. i need to change the "thumbs" subfolder name with "thumb", under each subfolder. i tried find . -type d -exec rename 's/^thumbs$/thumb/' {} ";" and i run this in shell…
jo.ker
  • 77
  • 8
2
votes
0 answers

Compiling user's code on a Rails App (on Heroku)

I'm trying to implement a code compiling-running-checking opperation (codepad.org like) on my Ruby on Rails App, hosted on Heroku, but I'm missing some of the concepts. I know that I should use a VM or a chroot jail to run those codes on the server…
Andre
  • 63
  • 6
2
votes
2 answers

Superuser Role Specific to certain Databases in PostgreSQL

I have created a User Role with superuser privilege. I have around 30 Databases on my server. I want to assign this role to only only DB. The current role lets the user access all the DBs as super user. How can I restrict him from accessing other…
Yousuf Sultan
  • 3,055
  • 8
  • 35
  • 63
1
vote
1 answer

How to override createsuperuser command in django

I'm trying to customize the createsuperuser command. The purpose of this is: I've a table called administrator, and its have OneToOne relationship with auth_user table class Administrator(models.Model): user =…
fudu
  • 617
  • 1
  • 10
  • 19
1
vote
0 answers

How to execute a command in Homebrew formula with post_install?

I am building a homebrew for internal usage. The formula should do two things: Install a python package => this works easily with pip_install_and_build. Execute the just installed python tool to update/write in .zshrc. => The problem is I cannot…
Evosite3d
  • 11
  • 2
1
vote
2 answers

Permission error linux parrot os , even root user can't access that file/folder?

Even super root dosen't have acces to this folder/File . ┌─[root@parrot]─[/home/kali_37] └──╼ #updatedb /usr/bin/find: '/run/user/1000/doc': Permission denied ┌─[root@parrot]─[/home/kali_37] └──╼ #ls -ld /run/user/1000/doc ls: cannot access…
1
vote
1 answer

Can not login as superuser in DRF

Created superuser several times with this credentials. username: admin password: root Did it with terminal and with Djnago ORM. Same result. >>> from bank.models import User >>> User.objects.create_superuser(username="admin", password="root") >>>…
1
2
3
12 13