Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
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
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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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