Timeline for What is the need for `fakeroot` command in linux
Current License: CC BY-SA 2.5
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 17, 2024 at 17:47 | comment | added | Fried Brice | "Without fakeroot one would need to have root privileges to create the constituent files of the archives with the correct permissions and ownership" This is a great explanation. Thank you! | |
| Apr 11, 2014 at 18:16 | comment | added | MortenSickel | Because it is something completely different. it makes your own files look for you like if they are owned by root. - see my example below. | |
| Apr 9, 2013 at 14:54 | comment | added | Ehtesh Choudhury |
An example to elucidate the need for fakeroot would be fantastic. I can see the uses of fakeroot, but I don't see why people can't work around root permissions to the point that it's easier to fake it.
|
|
| Oct 7, 2012 at 18:26 | comment | added | Michael Mrozek |
@userunknown You might be able to bypass rm's check that you have sufficient permissions, but the kernel itself wouldn't let you do it; the unlink system call would fail. It's not up to the application alone to handle permissions, or you'd be able to write your own application that doesn't check permissions and do whatever you want with it
|
|
| Oct 7, 2012 at 16:30 | comment | added | user24372 | It still seems weird that it is needed at all. If i can use fakeroot to create a root owned file in an archive and then extract it so that root has it, then why could i not just sudo chown it to root directly? | |
| Jun 24, 2011 at 15:21 | vote | accept | gkt | ||
| Jun 24, 2011 at 15:23 | |||||
| Mar 20, 2011 at 15:52 | comment | added | user unknown |
Where is the difference between the program running in it thinks it has root privileges and the program having root privileges? If I can do a rm -rf / and the program, running it thinks I have root privileges ...
|
|
| Mar 20, 2011 at 9:01 | history | migrated | from stackoverflow.com (revisions) | ||
| Feb 26, 2011 at 13:22 | comment | added | Paŭlo Ebermann | It does not really give super user power, it only fakes it - the program running in it thinks it has root privileges, while it really still uses the user's normal privileges. | |
| Feb 26, 2011 at 11:19 | comment | added | herbalessence | @gkt.pro : I guess, yes. | |
| Feb 24, 2011 at 13:11 | comment | added | gkt | @MaskTheSmokin: So fakeroot gives you super user power only for file manipulation operations,right. | |
| Feb 24, 2011 at 12:58 | history | answered | herbalessence | CC BY-SA 2.5 |