|
Author | Topic: Cannot access gedit /etc/fstab as root (Read 1,584 times) |
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Cannot access gedit /etc/fstab as root « Thread Started on May 19, 2012, 8:02pm » | |
I have just installed the 64bit ver 1.6 of SalineOS. I need to modify /etc/fstab among a lot of other things, but I cannot figure out the secret method used by SalineOS. Below are several of my attempts. Any ideas?
root@nova:/home/albert# gedit /etc/fstab
(gedit:2095): EggSMClient-WARNING **: Failed to connect to the session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
root@nova:/home/albert# gksu gedit /etc/fstab
(gedit:2107): EggSMClient-WARNING **: Failed to connect to the session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
root@nova:/home/albert# gedit
(gedit:2111): EggSMClient-WARNING **: Failed to connect to the session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
root@nova:/home/albert# ---------------------------------------------------------------- albert@nova:~$ gksu gedit /etc/fstab
(gedit:2163): EggSMClient-WARNING **: Failed to connect to the session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
albert@nova:~$ su Password: root@nova:/home/albert# gedit /etc/fstab
(gedit:2188): EggSMClient-WARNING **: Failed to connect to the session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) GConf Error: Failed to contact configuration server; the most common cause is a missing or etc, etc, etc
| |
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
Joined: Aug 2011 Gender: Male  Posts: 386 Location: Poland
|  | Re: Cannot access gedit /etc/fstab as root « Reply #1 on May 20, 2012, 12:59am » | |
It should work, if not, maybe your downloaded iso is broken, or there were some installation errors. Try checking your iso, and install it once again.
|
Skallagrigg |
|
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Re: Cannot access gedit /etc/fstab as root « Reply #2 on May 20, 2012, 9:24am » | |
May 20, 2012, 12:59am, petrek wrote:| It should work, if not, maybe your downloaded iso is broken, or there were some installation errors. Try checking your iso, and install it once again. |
|
What, exactly, should work? Using a root terminal? sudo? su? All of the above?
| |
|
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Re: Cannot access gedit /etc/fstab as root « Reply #3 on May 20, 2012, 9:39am » | |
Just checked the md5 and it is OK. I have already installed twice; the first time I used the same password for root and user. I assumed that these errors were because of that so I reinstalled with different passwords and the bad behaviour still exists. What "errors in installation" are you referring to? What should I be looking for?
| |
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
Joined: Aug 2011 Gender: Male  Posts: 386 Location: Poland
| |
Richard Elder Member
     member is offline
![[avatar] [avatar]](http://dl.dropbox.com/u/10332409/bender.gif)
Joined: Jan 2011 Gender: Male  Posts: 593 Location: Venezuela
|  | Re: Cannot access gedit /etc/fstab as root « Reply #5 on May 20, 2012, 10:22am » | |
If you are installing from a USB key, and you build it according to this: http://salinelinux.proboards.com/index.c....splay&thread=29 then you may install from this key, exactly as from the DVD.
Most other methods have failed to install for me. This does work. You may need 2 USB keys if you wish to install to the larger of the USB keys.
1. I use a 2 GiB to build the USB2GiB 2. Boot from that and install to the USB16GiB or whatever 3. Be sure to write grub to the MBR of the USB16GiB 4. You can always use Grub-Doctor to write grub to the USB key.
|
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae; SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae LinuxMint-14, Xfce4.10, w/3.5.0-17-generic |
|
fanch Junior Member
  member is offline
![[avatar] [avatar]](http://pix.toile-libre.org/upload/original/1346974548.gif)
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Mar 2011 Gender: Male  Posts: 69 Location: France
|  | Re: Cannot access gedit /etc/fstab as root « Reply #6 on May 20, 2012, 7:12pm » | |
Hi !
@ elderwuss : you can try geany or mousepad instead of gedit. Who knows?
|
|
|
beardedragon Global Moderator
     member is offline
![[avatar] [avatar]](http://smile-media-production-1.s3.amazonaws.com/images/83a50d70550b01307b5322000afe0a5a/168x168.jpg)
Joined: Feb 2011 Gender: Male  Posts: 858
|  | Re: Cannot access gedit /etc/fstab as root « Reply #7 on May 20, 2012, 7:47pm » | |
As you may see from the attached, I got the same errors in Terminal using su. However I also got the window to edit /etc/fstab. You should too if everything was included in your iso.
 Please login to download attachments. |
Robert Collard, Madison, WI HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD Debian 7.0 XFCE-4.10 3.2.0-4-amd64
If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line. |
|
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Re: Cannot access gedit /etc/fstab as root « Reply #8 on May 20, 2012, 8:24pm » | |
@beardedragon: Just curious. Are you sure you actually edited /etc/fstab? i.e. did you make a visible change and save it? I was presented with a copy of /etc/fstab, but as readonly.
Also did you attempt to edit preferences of gedit? I too was able to edit a copy, but could not save it. Also, I first needed to get a larger font because the default font was so tiny on my machine. However, all of the options in Edit->Preferences were disabled.
| |
|
Anthony Nordquist Administrator
     member is offline
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Dec 2010 Gender: Male  Posts: 1,338
|  | Re: Cannot access gedit /etc/fstab as root « Reply #9 on May 20, 2012, 8:28pm » | |
Try this on the installed system as a normal user, gksu gedit /etc/fstab
Don't forget to save your changes, the dbus errors aren't that important and show up for everyone, and on all distributions build on Debian Squeeze with a root user.
| |
|
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Re: Cannot access gedit /etc/fstab as root « Reply #10 on May 20, 2012, 8:28pm » | |
@fanch: Good point. Using Mousepad rather than Gedit works clean. Doesn't solve the problem with Gedit, but it does narrow it down somewhat.
| |
|
elderwuss New Member
 member is offline
Joined: May 2012 Gender: Male  Posts: 11
|  | Re: Cannot access gedit /etc/fstab as root « Reply #11 on May 20, 2012, 8:46pm » | |
@anthony: Yes, that works as predicted. Good to know that the errors may be ignored.
| |
|
malspa Full Member
   member is offline
![[avatar] [avatar]](http://i55.tinypic.com/2ak0dvd.jpg)
Joined: Jan 2011 Posts: 171 Location: albuquerque
|  | Re: Cannot access gedit /etc/fstab as root « Reply #12 on May 20, 2012, 9:05pm » | |
Yeah, no error messages here using mousepad or geany, only with gedit. Either way, I was able to edit the file, though. So I wonder what's causing the problem for the OP. By the way, I've taken to using geany most of the time in all distros. Very nice little text editor.
| |
|
beardedragon Global Moderator
     member is offline
![[avatar] [avatar]](http://smile-media-production-1.s3.amazonaws.com/images/83a50d70550b01307b5322000afe0a5a/168x168.jpg)
Joined: Feb 2011 Gender: Male  Posts: 858
|  | Re: Cannot access gedit /etc/fstab as root « Reply #13 on May 20, 2012, 9:25pm » | |
May 20, 2012, 8:24pm, elderwuss wrote:@beardedragon: Just curious. Are you sure you actually edited /etc/fstab? i.e. did you make a visible change and save it? I was presented with a copy of /etc/fstab, but as readonly.
Also did you attempt to edit preferences of gedit? I too was able to edit a copy, but could not save it. Also, I first needed to get a larger font because the default font was so tiny on my machine. However, all of the options in Edit->Preferences were disabled. |
|
Edited, saved, then fixed what I changed using the same procedure. As you may see it says on top fstab (/etc) gedit, Not "Read Only" But I see others have come up with a solution. I try all my solutions on my own computer before suggesting them.
|
Robert Collard, Madison, WI HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD Debian 7.0 XFCE-4.10 3.2.0-4-amd64
If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line. |
|
ukbrian Senior Member
    member is offline
Joined: Aug 2011 Gender: Male  Posts: 285
|  | Re: Cannot access gedit /etc/fstab as root « Reply #14 on May 20, 2012, 10:53pm » | |
Quote:| By the way, I've taken to using geany most of the time in all distros. Very nice little text editor. |
| +1 That's what I've been using for the last 2 years.
| |
|
|