|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
write a file to etc folderI used gedit to back a file and I need to the etc folder but it says I
need root access how can I get it to save it ? -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderLe Mon, 02 Nov 2009 15:56:48 -0500,
William <kc8pdr@...> a écrit : > I used gedit to back a file and I need to the etc folder but it says I > need root access how can I get it to save it ? > > As said, you have to get root access... (write)access in /etc is not permitted for simple user. Get root access by sudo, copy the file in your home folder, edit the file, get root priv again, copy it back to etc You may also use another text based editor (vim, emacs...). Get root access and edit the file directly... Tôba -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderOn Tue, 2009-11-03 at 00:02 +0300, tôba rakoto wrote:
> Le Mon, 02 Nov 2009 15:56:48 -0500, > William <kc8pdr@...> a écrit : > > > I used gedit to back a file and I need to the etc folder but it says I > > need root access how can I get it to save it ? > > > > > > As said, you have to get root access... (write)access in /etc is not > permitted for simple user. > > Get root access by sudo, copy the file in your home folder, edit the > file, get root priv again, copy it back to etc > > You may also use another text based editor (vim, emacs...). Get root > access and edit the file directly... > > Tôba Or from the the terminal you can use sudo gedit <file> Then save it where you want. > -- Kipton Moravec AE5IB .- . ..... .. -... "Always do right; this will gratify some people and astonish the rest." --Mark Twain -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderWilliam wrote:
> I used gedit to back a file and I need to the etc folder but it says I > need root access how can I get it to save it ? > > gksudo nautilus. Joep -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderOn 11/02/2009 01:07 PM, Kipton Moravec wrote:
... > > Or from the the terminal you can use > sudo gedit <file> Use gksu instead for graphical applications: $ gksu gedit <file> Or install the nautilus admin extension & you will then be able to right-click the file from nautilus & open as 'adminstrator'. $ sudo apt-get install nautilus-gksu The gksu extension for nautilus allows you to open files with administration privileges using the context menu when browsing your files with nautilus. -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderOn 11/02/2009 01:07 PM, Joep L. Blom wrote:
> William wrote: >> I used gedit to back a file and I need to the etc folder but it says I >> need root access how can I get it to save it ? >> >> > gksudo nautilus. > Joep > > That indeed works. But I hesitate to advise doing that for what appears to be a new linux/ubuntu user... without all the appropriate disclaimer/warnings etc. :-) -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderNoOp wrote:
> On 11/02/2009 01:07 PM, Joep L. Blom wrote: >> William wrote: >>> I used gedit to back a file and I need to the etc folder but it says I >>> need root access how can I get it to save it ? >>> >>> >> gksudo nautilus. >> Joep >> >> > > That indeed works. But I hesitate to advise doing that for what appears > to be a new linux/ubuntu user... without all the appropriate > disclaimer/warnings etc. :-) > > > > Joep -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folder And it should definitely be said that absolutely NOTHING in the /etc folder should EVER be modified without a backup copy to fall back on. Especially if you wouldn't know how to use vi after booting to a command prompt to edit the file manually.
Regards, John From: Joep L. Blom <jlblom@...> To: ubuntu-users@... Sent: Mon, Nov 2, 2009 10:35 pm Subject: Re: write a file to etc folder NoOp wrote: -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderThank you for all your help this group rock's for help I had to add a
file for my blackberry On Mon, 2009-11-02 at 20:18 -0500, John Scott wrote: > And it should definitely be said that absolutely NOTHING in the /etc > folder should EVER be modified without a backup copy to fall back on. > Especially if you wouldn't know how to use vi after booting to a > command prompt to edit the file manually. > > Regards, > > John > > > > > > -----Original Message----- > From: Joep L. Blom <jlblom@...> > To: ubuntu-users@... > Sent: Mon, Nov 2, 2009 10:35 pm > Subject: Re: write a file to etc folder > > NoOp wrote: > > > On 11/02/2009 01:07 PM, Joep L. Blom wrote: > > >> William wrote: > > >>> I used gedit to back a file and I need to the etc folder but it says I > > >>> need root access how can I get it to save it ? > > >>> > > >>> > > >> gksudo nautilus. > > >> Joep > > >> > > >> > > > > > > That indeed works. But I hesitate to advise doing that for what appears > > > to be a new linux/ubuntu user... without all the appropriate > > > disclaimer/warnings etc. :-) > > > > > > > > > > > > > > OK, I'll be a little bit more cautious!! > > Joep > > > > -- > > ubuntu-users mailing list > > ubuntu-users@... > > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users > -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folderOn 11/02/2009 05:18 PM, John Scott wrote:
> > And it should definitely be said that absolutely NOTHING in the /etc > folder should EVER be modified without a backup copy to fall back on. > Especially if you wouldn't know how to use vi after booting to a > command prompt to edit the file manually. > > Regards, > > John Please bottom post here :-) The good bit about using 'gksu gedit <file>' and or the nautilus admin right-click option is that gedit will automatically create a <~file> backup file. So, if for instance you edit /etc/apt/sources.list via those methods, you will have a /etc/apt/~sources.list file as a backup. Regarding 'gksu nautilus'; that command puts nautilus in a 'gksu' mode whereby you can easily delete, modify, rename, etc., just about any file on your File System. Hence the warning that that is a a useful tool/command for experienced users, but shouldn't be used for new users who may not understand the implications & power of the tool. But I very much agree that you shouldn't modify anything in the File System/root etc., without first creating a backup first & that's good advise. -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
|
|
Re: write a file to etc folder-----Original Message----- From: NoOp <glgxg@...> To: ubuntu-users@... Sent: Tue, Nov 3, 2009 3:24 am Subject: Re: write a file to etc folder On 11/02/2009 05:18 PM, John Scott wrote: > > And it should definitely be said that absolutely NOTHING in the /etc > folder should EVER be modified without a backup copy to fall back on. > Especially if you wouldn't know how to use vi after booting to a > command prompt to edit the file manually. > > Regards, > > John >The good bit about using 'gksu gedit <file>' and or the nautilus admin >right-click option is that gedit will automatically create a <~file> >backup file. So, if for instance you edit /etc/apt/sources.list via >those methods, you will have a /etc/apt/~sources.list file as a backup. Most of the gui editors make auto backups. You only have to rely on one time where you edited say, your xorg.conf then noticed you forgot a # before a comment or made some other modification. As soon as you hit that save button a second time, you no longer have an original copy. Then you try to revert to your xorg.conf backup only to find that it is the last of 6 versions, none of which will work. Guess what, you're screwed. Make a backup before you start--one that will not be overwritten by the editor. Accept NO substitute. Being lazy and letting the editor do it for you will lead to pain. I am speaking from experience. Regards, John -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users -- ubuntu-users mailing list ubuntu-users@... Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| Free embeddable forum powered by Nabble | Forum Help |