File permissions?
Johnny Rosenberg
gurus.knugum at gmail.com
Fri Dec 25 18:28:20 UTC 2009
2009/12/25 Jim Byrnes <jf_byrnes at comcast.net>:
> 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.
Is there a special reason why the files have to be located there? For
most tasks, your personal files should be located somewhere in your
home directory (home folder), called $HOME, which is an environment
variable containing the address of your home folder. The ”~” means the
same thing. So ~/MyFolder is the same thing as $HOME/MyFolder, which
is the same thing as /home/Jim/MyFolder if your user name is Jim.
If you still want to place your file at /usr/share/jedit/modes you
have to do it with root permissions, unless you want to change the
owner of the folder.
You can do most things with a GUI and since other people have
suggested doing it in the terminal, I will try to keep more to a GUI.
If you don't have an icon for opening Nautilus (your file manager)
with root permissions, open a terminal (!) and enter:
gksudo nautilus
(sudo nautilus will also do, but then you need to enter your password
in the terminal instead of doing it in a dialogue…)
Now look for your files and move them where you want them.
When they are where you want them, right click them and click
Properties, then click the permissions tab. Here you can change the
owner of the file as well as the permissions. After changing the owner
to yourself and given yourself the proper permissions, you should be
able to do what you want with them with jedit.
If you don't have a icon for ”Nautilus as root”, you can easily create
one. Ask if you can't figure out how.
Johnny Rosenberg
>
> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list