App - Script

Monday 9 September 2019, 02:34  #1
App - Script System1
Engacker
  • 1 posts

Hello,
I’ve copied ch11.c into /tmp and chmod 4777 /tmp/ch11.c , then edited the ls to cat.
but it gave me permission denied for cat .passwd

any help?

Wednesday 11 September 2019, 02:05  #2
App - Script System1
be4r
  • 1 posts

First, chmod on .c file does nothing, cos it cant even be executed and thus cant be a set-uid binary by itself. U need to chmod the ch11, the executable. And u may need to log in as root. Seems, root should be able to read .passwd, cos it has rights of 400. Although it does nothing for me (pic).