Questions tagged [suid]

18 questions
0
votes
0 answers

how to make a shell execute with suid

I'm trying to suid a shell and it's not working. I need help understanding why, and how to fix it... I'm following these steps (as root) cp /usr/bin/bash /usr/bin/bash-emergency chmod 4755 /usr/bin/bash-emergency bash-emergency is owned by…
mikem
  • 418
  • 2
  • 7
0
votes
1 answer

I'm trying to provide limited access to certain functionality using links, bash scripts and SUID. SUID script does not run with root access

EDIT: this Sticky bit enabled Script can't write to a root file appears to be a similar problem EDIT: How can I use SetUID on a shell script to run as a non-root user? is very similar as well. I have a script, let's call it read.sh. I have a file,…
FIREBAAT
  • 9
  • 4
0
votes
1 answer

Group of new file created by the webserver is always set to sudo

I am running a magento 2 project on Apache 2 Webserver. There is a logfile folder at var/log I have set the permission, user and group of the folder to drwsrwxr-x 2 company www-data by using chmod 4775 log The user always stays company, just like…
Black
  • 461
  • 1
  • 8
  • 20
1
2