cannot "save" do not have permission ??what is process

Asked by wiwinn

NO one seems to have the info to save to protected folders and files in Ubuntu. Ubuntu is designed to give "as needed" access to "root" and then instantly reverts back to user mode. Surely there is a work-around to get the needed permission to save inside a folder like apt/sources.list. It would seem that this entire folder is read only, so how would one "edit" the list file?? I am new to linux, and every time I do a manual download of a pkg, I cannot put it in the appropriate location because I get the stupid "permissions" error message. Help!
Some times everyone assumes you know "how" to do a thing, so they simply tell you to DO it (no explano included hehe) thanks, Wiwinn

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Wolf Canis (wolf-canis) said :
#1

Hello wiwinn,
you must use the command sudo. You can get a detailed description with 'man sudo'. Open a Terminal (Application->Accessories->Terminal) and then type: man sudo

Mr Canis

Revision history for this message
jz (jz+) said :
#2

If you're downloading .deb files all you need to do is double click them and you will be prompted for your password before install.

If you want to edit files that you do not have permission for type into a terminal:

sudo gedit

You can now use gedit to navigate to whichever file you wish to edit.

Revision history for this message
wiwinn (wiwinn) said :
#3

Thankyou guys--however, I have been using "sudo" since day one--Do I use it only in the "terminal", and do I have to be "in" the same directory I am trying to deal with, --need to produce a "path" I am sure, but still get the stupid "you are not owner" message. Apparently, I cannot change the permissions for the folder I wish to write to, inside, perhaps outside ?
" A little knowledge is a dangerous thing". This whole thing started when I tried to get into a folder in usr to change an .list file, while attempting to install mplayer. By the way W32 codecs seem to have "vanished" off the web. ??!! Ubuntu is unique, in that you cannot sign on as root for a session, hence my problem in knowing how to address that on a single occasion of need. Too bad there is no way to be root in the gui without jumping into the Terminal ?! Thanks again for your help--Wiwinn

Revision history for this message
Wolf Canis (wolf-canis) said :
#4

Hello wiwinn,
if you just want edit text files you can do it with the command:

sudo gedit

or

sudo gvim

or every other graphical editor.

Of course in the terminal, but gedit is graphical app. Now you can open and browse through your file system, but be carefully. In general there is no need to edit files in the /usr directory. Mplayer has configuration files, see man mplayer.

Mr Canis

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#5

If you want to avoid using the terminal then do this instead:-

ALT+F2 (in Gnome)
Type the following command

gksudo gedit

And you will then be prompted for your password, and can use gedit to edit "system" files.

Revision history for this message
wiwinn (wiwinn) said :
#6

Screwed it up, I believe the source.list file that I need to edit is in
"APT" not user. Thanks for the insight, I will try your suggestioon--wiwinn

On 2/2/07, Mr Canis <email address hidden> wrote:
>
> Your support request #3434 on gedit in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gedit/+ticket/3434
>
> Status: Open => Answered
>
> Mr Canis proposed the following answer:
> Hello wiwinn,
> if you just want edit text files you can do it with the command:
>
> sudo gedit
>
> or
>
> sudo gvim
>
> or every other graphical editor.
>
> Of course in the terminal, but gedit is graphical app. Now you can open
> and browse through your file system, but be carefully. In general there
> is no need to edit files in the /usr directory. Mplayer has
> configuration files, see man mplayer.
>
> Mr Canis
>
> _______________________________________________________________________
> If this answers your request, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/gedit/+ticket/3434/+confirm?answer_id=3
>
> If you still need support, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gedit/+ticket/3434
>

Revision history for this message
Wolf Canis (wolf-canis) said :
#7

Hello wiwinn,
if you solved the problem, please close this ticket.
If you doesn't solve the problem, please provide more information.

Thanks,
              Mr Canis

Revision history for this message
Lphoenix (victorinslc) said :
#8

it solved my problem, as a newbie. Just sudo "utility". Thanks!

Can you help with this problem?

Provide an answer of your own, or ask wiwinn for more information if necessary.

To post a message you must log in.