Can non root user edit files he/she doesn't have access to or create new a file in a directory he/she doesn't own? Is there a way to do that?

P.S : I know if root user or file owner gives him write permission he would be able to. I'm asking if he can't be granted permission.

In other words, can Linux permissions be hacked?

  • 4
    Social engineering is the way to go. Find a PHP admin with root access and tell him chmod -R 0777 / will fix his problem. – tripleee Jun 29 '13 at 8:27
  • Don't you say :P – SafeY Jun 29 '13 at 8:33
  • 3
    Don't you think if the answer were yes, they would fix that really fast to make the answer no? Maybe I'm still not understanding the question – Michael Mrozek Jun 29 '13 at 19:11
  • you may feel it's a dump question but I really wanted to know if that is possible or not . – SafeY Jun 30 '13 at 6:15
  • 1
    Of course it can be hacked; this is not a useful question. – Mel Boyce Jun 30 '13 at 10:33

If you have physical access to the box, boot off a live distro, mount the target filesystem and chroot into it. Keep your white hat on, though.

Note that this won't work if your admin was careful enough to set a BIOS password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.