chlebik / rhcsa-practice-questions

RHCSA practice questions for version 7/8
550 stars 231 forks source link

Incorrect SUID description #15

Closed mateuszstompor closed 3 years ago

mateuszstompor commented 3 years ago

I've found it in your notes and decided to point it out (maybe you are not aware of the mistake?)

Istnieja specjalne privilage:

  • ​SUID ​(np. /usr/bin/passwd) -> ustawia sie u+s albo dajac prefix 4 - co oznacza, ze efektywny UID procesu, ktory ma dostep do pliku to UID ownera pliku. ​Nie da sie tego ustawic na skryptach!!!

Actually, SUID can be set only on regular files, below you've got an example that shows the usage and problem it solves

Screenshot 2021-03-26 at 22 04 48

Please do not treat my recent contributions and this issue as offence, I just want to share the knowledge :) Close once you acknowledge it

chlebik commented 3 years ago

So how is: ​Nie da sie tego ustawic na skryptach!!! not valid then? I mean, I'm all greatful for all the PRs/issues, I'm also for knowledge increase and share, but I don't know what's the exact point of this one ;)

mateuszstompor commented 3 years ago

I misunderstood your description and interpreted scripts as executables... I should have double-checked it before opening this up. Sorry for bothering you up this time