KDE Dolphin File Manager.

17 replies [Last post]
SabirSaleem90
Offline
Joined: 10/03/2021

I have issues in KDE Dolphin File manager

Open as Root feature asks password for root but when I type my root password it says.

Permission denied.
Possibly incorrect password, please try again.
On some systems, you need to be in a special group (often: wheel) to use this program.

And when I try to use other password other than root so system hangs.

Any suggestions.

Thank you

AttachmentSize
Screenshot_20211130_080908.png94.13 KB
Magic Banana

I am a member!

Offline
Joined: 07/24/2010

By default, root does not have a password on Trisquel. Have you actually defined one (for instance using 'sudo passwd root' in the terminal)? Are you in the wheel group (executing 'groups' in the terminal would tell)?

Legimet
Offline
Joined: 12/10/2013

"Open as root" is not a built-in feature of Dolphin, I assume it is an addon that you installed, and I'm guessing that it uses su rather than sudo.

SabirSaleem90
Offline
Joined: 10/03/2021

yes I know it is not built in feature anyways I installed an addon for dolphin but throwing an error above I stated.

Legimet
Offline
Joined: 12/10/2013

Can you paste the contents of the file in ~/.local/share/kservices5/ServiceMenus ?

Also there are two addons called "open as root" and I suspect the other one may work.

SabirSaleem90
Offline
Joined: 10/03/2021

Yes I did already that and and checked in services also.

I tried many add ons almost with 5 reviews too

it is asking me superuser wheel access but I can login to root via terminal and do operations via command line but in dolphin file manager it is giving wheel superuser error.

Legimet
Offline
Joined: 12/10/2013

Can you paste the contents of the files in ~/.local/share/kservices5/ServiceMenus ?

SabirSaleem90
Offline
Joined: 10/03/2021

/usr/share/kservices5/ServiceMenus/OpenKrusaderAsRoot.desktop

#version 1.0
#contact: name at domain
#
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;
Actions=openAsRoot
X-KDE-Priority=TopLevel

[Desktop Action openAsRoot]
Name=Open Krusader Here (Root)
Icon=system-file-manager
Exec=kdesu krusader "%u"

SabirSaleem90
Offline
Joined: 10/03/2021

Ok I fix it.

Thank you Everyone

SabirSaleem90
Offline
Joined: 10/03/2021

I also managed root access via Krusader file manager as an administrator via Services Menu.

it is working but sometimes working as root in trisquel in unsafe because I was reading that attackers can get access and put malicious scripts if an application is in root privilege.

Any suggestions please?

Legimet
Offline
Joined: 12/10/2013

I would avoid running GUI applications as root, and use root only when necessary.

SabirSaleem90
Offline
Joined: 10/03/2021

But I see root seems necessary because all files of lampp Web Server are saving to main disk where opt directory and I am developer and I need to edit files as root obvious and saving scripts and files which may have malicious scripts what do you suggest me ?:)

I am new in Linux and really I have some questions because when I moved from Mate to KDE so in KDE Triskel I see many restrictions regarding superuser.

Any suggestions would be helpful.

Legimet
Offline
Joined: 12/10/2013

You shouldn't have a desktop environment on a web server, that seems like a bad idea. Unless this is just practice, but in that case you should get used to using the terminal for managing files. For editing files, you should use the command "sudoedit" which allows you to edit a file as root while only using your editor as a normal user.

Also, I'm guessing you installed the XAMPP distribution? That is fine, but Apache, MariaDB, PHP, and Perl are all in the Trisquel repos so unless you have a specific reason to use XAMPP, you can just use the packages in the repo.

SabirSaleem90
Offline
Joined: 10/03/2021

Ohk I do not know how to use Apache, MYSQL , PHP from trisquel repo natively.

I am using right now LAMPP Web Server and it is working very slow even saving one single php file takes much time.

host file says this

127.0.0.1 localhost
127.0.1.1 user-OptiPlex-7010

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

some suggested to just edit below like that

127.0.0.1 localhost
::1 localhost

if you can help me to use natively apache, PHP, MYSQL from trisquel repo so that would be awesome and I will remove lampp then :)

Thank you

SabirSaleem90
Offline
Joined: 10/03/2021

also editing host files from an above way is good idea?

Legimet
Offline
Joined: 12/10/2013

Here: https://ostechnix.com/install-apache-mariadb-php-lamp-stack-ubuntu-16-04/
The same instructions apply to Trisquel.

I do not know the answer to your question about /etc/hosts. But as I said, I advise you to use sudoedit to edit files as root. You can set the editor that is used in the environment variable EDITOR. The actual editor itself does not run as root, so it's fine to use a GUI editor.

SabirSaleem90
Offline
Joined: 10/03/2021

Yes I managed LAMPP Web Server in user's directory and their I am able to edit files and folders also in root folder I managed to edit things with sudoedit command.

Thank you very much!!!

Malsasa
Offline
Joined: 12/01/2016

Hello SabirSaleem, you can press F4 to open terminal right inside Dolphin where you can do commands as root with. I myself do administrative tasks like yours this way.

Regards,

Malsasa