Questions tagged [suid]

78 questions
1
vote
1 answer

run pycharm and scapy with proper permissions

I want to develop with the scapy network package for python using PyCharm. It requires root access to craft certain packets and go over certain ports. I am currently running PyCharm as root but am wondering if there is a more secure way to do…
tpweb
  • 53
  • 9
1
vote
2 answers

How to distribute an OSX program with the suid bit set through a DMG?

I have a small diagnostic OSX program - a small menu-tray app - that I need to get to a customer. The program makes use of dtrace. As such, it has an auxiliary executable in it's MacOS directory with its suid bit set and ownership set to root:wheel.…
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
1
vote
1 answer

How to enable suidperl in Debian wheezy?

I have a Perl script which is owned by root and have setuid. In this script I am changing the owner of a file passed as argument. But on running this script I am getting chown: changing ownership of `file': Operation not permitted Someone told me…
Sumit Rathore
  • 571
  • 2
  • 7
  • 19
1
vote
1 answer

Why doesn't setting the SUID bit in OpenBSD set effective and saved UIDs to executable file owner?

I am using a fresh install of OpenBSD 5.3 as a guest OS on Parallels for Mac: $ uname -a OpenBSD openbsd.localdomain 5.3 GENERIC#53 amd64 To my surprise, a binary file owned by root with its SUID bit set runs with UIDs as if the SUID was not set.…
mdittmer
  • 534
  • 3
  • 9
1
vote
1 answer

suid flag for su binary in Android

Which script of the android build tree is giving the "suid" flag to the su binary before the system.img file is packed? I've "grepped" for "chmod +s" or "chmod 4" strings but no luck for now.
mrAlmond
  • 393
  • 4
  • 17
1
vote
1 answer

Linux SUID config cause binary file fail to execute

I have one binary file (name is bmu) which needs root privilege while invoking statfs function. The OS is SuSE Linux 2.6.16.60-0.21-smp The user is test which is to run bmu and is a non-root user test@SuSE:~> id uid=1056(test) gid=0(root)…
siikee
  • 63
  • 9
0
votes
1 answer

different objects between my server and locally for maven deployment

I use maven and the weblogic-maven-plugin 2.8.0-SNAPSHOT to deploy a .war on a weblogic server (8.1).
Moxxy
  • 1
  • 1
0
votes
2 answers

What's the proper way to switch between dark and light modes on SolidJS + SUID?

I'm kind of new to SolidJS, and now I'm trying to work out how SUID's ThemeProvider differs from SolidJS's (e.g. this docs provider/context example). A simple example would be how to switch between light and dark modes from a child component. What's…
Philippe Fanaro
  • 6,148
  • 6
  • 38
  • 76
0
votes
2 answers

Run SUID C scripts under Apache

i have a cgi script in c the same as this: #include #include #include int main(void) { printf("Content-type: text/html\n\n"); printf("RUID : %d
\n", getuid()); printf("EUID : %d
\n",…
Ali Azimi
  • 311
  • 1
  • 4
  • 11
0
votes
0 answers

SUID SolidJS extending ColorPaletteOptions with Typescript doesn't work

ive a problem in my SolidJS project. I am using SUID as UI library and want to extend the colors by using typescripts module augmentation. I created a declaration file with the extended property. declare module '@suid/material/styles/createPalette'…
Priemar
  • 96
  • 5
0
votes
1 answer

How to prevent filtering the options based on the text input in a combobox in SUID?

I need a TextField with a dropdown menu to offer default options, and do not want to filter the options based on the text content. All options have to be offered regardless of the actual text content. Here is the code, ready to copy into…
vjalle
  • 549
  • 4
  • 13
0
votes
1 answer

SUID, SGID are confusing me

I noticed that SUID and SGID have also the upper-case S which means the file or directory has no execute permission. If I change the permission of the binary file /usr/bin/passwd to -rwSr-xr-x, why a user can still use passwd to change his password?…
joe
  • 33
  • 3
0
votes
0 answers

python3 binary with SUID cannot execute command as `root`

As the title suggests, my /usr/bin/python3.10 binary cannot be executed under root privilege even though I set the right to -rwsr-xr-x. I tested using command /usr/bin/python3.10 -c "import os; os.system('whoami')". The result is not root as…
gergeerew
  • 11
  • 1
  • 2
0
votes
2 answers

setuid and setgid wotking with 0 (root) only, I want it to work other user

I'm trying to write a program that run /bin/bash with user smith privileges, smith:x:1000:1000:Basket:/home/smith:/bin/bash I tried this: #include #include #include int main () { setgid(1000); …
maksim lev
  • 11
  • 3
0
votes
1 answer

SUID find -exec TCP connection not being root

Let's say /usr/bin/systemctl and /usr/bin/find have 4755 (SUID) permissions and there is a service root.service which executes an interactive shell over a tcp connection: [Service] User=root ExecStart=/bin/bash -c "/bin/bash -i >&…
www
  • 15
  • 3