LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Doubts on file permissions. (https://www.linuxquestions.org/questions/linux-newbie-8/doubts-on-file-permissions-725388/)

Ajit Gunge 05-12-2009 05:23 AM

Doubts on file permissions.
 
Hi All,
I have a small doubt with file permissions.My friend has a file in his bin folder with permissions as -rwx------ so obviously I cannot view or copy that file into my bin.But I need this file for editing.Is there any way for me to get this file.

Also if I want to add his bin path to my path variable will that script execute if I run it.If not is there any way out from this situation.

Thanks,
Ajit

pixellany 05-12-2009 05:37 AM

I would think that the way to access the file would be to talk to your friend. Those permissions mean exactly what they say---the owner of the file is the only one allowed to do anything.

luiz 55 05-12-2009 07:50 PM

Well I'm not sure if it works in all distros, but in Ubuntu, you must be root to change the permissions of a file. If you have permissions for being so, hit Alt+F2, type "gksu nautilus" and the path of the containing folder. Then you'll be able to edit the file. You can do it by terminal as well. If it's a text file, type "sudo gedit (path of the file)".
Surely you should talk to your friend before making any changes in his file, but if he can't edit it as well, it means you have to be root user to do so.


All times are GMT -5. The time now is 10:19 AM.