On Sat, 26 Jan 2013, Gene Czarcinski <g...@czarc.net> wrote: > OK, I think I have gotten the message that this is a bad idea as > implemented and that it should be dropped as such. I believe that there > are some things ("btrfs fi show" comes to mind) which will need root and > I am going to explore doing something for that case. And it also might > be reasonable for some situations to issue the message about root if > something errors-out.
I think that a message such as Eric proposed of "failed to open /dev/sda: Permission denied" is clear enough. If you run as non-root on a system with no security system other than Unix permissions then it will be quite obvious that such an error can be fixed by running as root. But if you are running SE Linux or some other security system then you could be prevented from running the program without the root/non-root status of it being relevant. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html