File permissions?

NoOp glgxg at sbcglobal.net
Fri Dec 25 20:03:13 UTC 2009


On 12/24/2009 07:09 PM, Jim Byrnes wrote:
> I've been using Ubuntu for about two weeks now and am starting to get 
> used to it.  However, coming from an OS/2\Windows world file permissions 
> seem to be giving me some grief.
> 
> Maybe if someone could tell me how to do a couple of specific tasks it 
> would become clearer to me.  I have Jedit loaded on all three of my 
> OS's. I have modified some mode files on the other OS's I would like to 
> use on Ubuntu.  I copied them to a shared folder on Ubuntu but I can't 
> copy them to /usr/share/jedit/modes which is where Jedit will look for them.
> 
> In that same vein, if I wanted to edit one of those files with Jedit how 
> could I get Jedit to open it for editing?
> 
> Thanks,  Jim
> 

Others have given specific instructions etc.; here are links to a wealth
of help & information regarding Ubuntu that you should bookmark and read
through. The help.ubuntu.com site uses a custom google search engine, so
you can enter searches just as you would in google:

https://help.ubuntu.com/
https://help.ubuntu.com/9.10/index.html
https://help.ubuntu.com/9.10/switching/index.html
https://help.ubuntu.com/community
https://help.ubuntu.com/community/CommonQuestions
https://help.ubuntu.com/community/RootSudo

/usr/share/jedit/modes is a system folder.
https://help.ubuntu.com/community/LinuxFilesystemTreeOverview

You'll need 'superuser' permissions to write the files there. So the
simplest way via jedit is to use:

$ gksudo jedit <filename>
or
$ gksudo jedit <path-to-file><filename>

That will open the file in superuser mode (gksudo - or gksu is used
because jedit is a graphical editor), and from there you can save the
file to /user/share/jedit/modes.

But I reckon it's much wiser to follow Tim's advise regarding
/usr/share/jedit/modes...

You might also find gedit of use:
https://help.ubuntu.com/community/gedit
it is installed by default on your system.





More information about the ubuntu-users mailing list