View Full Version : [SOLVED] Problems with gksudo
ben124
November 11th, 2014, 04:18 PM
I've been running Mint for a while. I'm trying to reinstall samba, but am having an issue. In the terminal I can't use gksudo to run anything. If I try to run nautilus from the terminal it asks for my password. When I enter the password, nothing happens. Any help? Just updated everything.
slickymaster
November 11th, 2014, 04:21 PM
Moved to the MINT sub-forum
ben124
November 11th, 2014, 04:22 PM
Sorry, thanks.
Frogs Hair
November 11th, 2014, 04:28 PM
The gksu package is no-longer installed by default in Ubuntu , but I'm not sure about Mint. Gksu is a dependency of some programs and some people install it without realizing it.
ben124
November 11th, 2014, 04:37 PM
I've installed/reinstalled gksudo. I don't think that's the problem. I'm prompted for my password but when I enter it, I get nothing - no error message, no blank screen, it just returns me to the terminal like nothing happened.
ben124
November 11th, 2014, 04:41 PM
I've installed/reinstalled it. I'm trying to modify smb.conf, using 'gksudo gedit /etc/samba/smb.conf' it prompts me for my password, but when I enter it, nothing happens. No error message or anything, I'm just returned to the terminal screen.
coffeecat
November 11th, 2014, 04:55 PM
I doubt that this is the problem, because if it was, you should see a wrong password error, but let's check this anyway.
From a terminal:
gksu-properties
Make sure that authentication mode is set to sudo.
Frogs Hair
November 11th, 2014, 05:45 PM
Mint uses different default file managers depending on version and desktop environment so if you are running Cinnamon or Mate you might not have Nautilus.
ben124
November 11th, 2014, 05:46 PM
Authentication is set to sudo, and I'm running Mate.
mc4man
November 11th, 2014, 06:23 PM
what does this produce -
sudo -H gedit /etc/samba/smb.conf
Frogs Hair
November 11th, 2014, 06:39 PM
Mate uses caja so you might try the following.
gksudo caja
ben124
November 11th, 2014, 06:47 PM
Prompts me for my password, and then this:
"sudo: gedit: command not found"
coffeecat
November 11th, 2014, 07:04 PM
Prompts me for my password, and then this:
"sudo: gedit: command not found"
Which means gedit is not actually installed. I would have thought gedit was the default GUI text editor in Mint Mate, but I don't have recent experience of Mint. Try installing gedit or do you know what the default text editor is?
Dennis N
November 11th, 2014, 07:11 PM
Just tried it, and I can confirm that gksudo caja works in the MATE Desktop Enviroment to open the file manager (Caja) as 'root'.
coffeecat
November 11th, 2014, 07:11 PM
Cough cough: http://mate-desktop.org/
Pluma is a text editor which supports most standard editor features. It also extends this basic functionality with other features not usually found in simple text editors. Pluma is a graphical application which supports editing multiple text files in one window (known sometimes as tabs or MDI). Pluma fully supports international text through its use of the Unicode UTF-8 encoding in edited files. Its core feature set includes syntax highlighting of source code, auto indentation, and printing support (with print preview). Pluma is a fork of Gedit.
Have you ever run "gedit" from the terminal. My guess is you would need to:
gksu pluma /etc/samba/smb.conf
Or:
sudo -H pluma /etc/samba/smb.conf
ben124
November 11th, 2014, 07:28 PM
Thanks. Will try this. It's a bit beyond my depth I think which is why I end up getting confused. Trying to set up a share folder between my linux box and windows 8.1. It was working, but all the sudden my linux box can't just shows an empty smb:///. Hoping to tweak things...
coffeecat
November 11th, 2014, 07:47 PM
Good luck, but this thread is getting a bit confused. It started off with the emphasis on you being unable to start the file manager with gksudo, then moved to the text editor. I would imagine that was a simple application naming issue, so let us know if using "caja" and "pluma" is the answer for those two.
If you are needing help with configuring smb.conf, I suggest you start a new thread with a descriptive title which will attract those best able to help with samba shares.
ben124
November 11th, 2014, 08:12 PM
I'm hoping the first part works, and then as you suggest, I was planning on starting a new thread...
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.