Here is a nice trick for those of you that develop with B4J for Ubuntu Linux which I found searching for my needs. This code runs a File explorer with priviledges of root. All you have to do is open Text Editor and paste in it this text. Then select filter 'All files' and save as f.e. sudo-files.desktop in the desktop folder. Be aware that the .desktop is needed. Running from this you can change the rights of files on the run without chmod in terminal.