Registered Member
|
|
Registered Member
|
Another thought would be to create a Konsole Profile for root:
Open Konsole and go to Settings -> Manage Profiles. Create a new profile, name: root, command: /usr/bin/sudo -i, whatever other profile settings you want.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered Member
|
All,
All of you are not understanding! Asking for the password is totally unacceptable! I have to have a single CMD that has the password in it, so that the password prompt never appears. On boot, my Konsole has to open 4-6 session tabs and already be "SUDO" without any prompts! I read that it is possible, but can never ever get it to actually implement! Cheers! TBNK |
Registered Member
|
Thats a security mess. Anyone (including scripts not written by you) could get root permission if you disable the password prompt for your user.
If you have installed the sudo package, you may use the pam-authentication to get where you want. What exactly do you need these root-shells for? If there are single commands you have to run as root, like e.g. powertop, it would be easier and safer to explicitly allow them to be startet as root. Thats what suid and visudo are for. |
Registered Member
|
All,
Don't know if I posted this but when I attempt to run "kdesu konsole" it says application not found and so then cmd "apt-get install kdesu" says package not found. I'm running Kubuntu 14.04, 16.04 and 18.04 all LTS versions and get these errors on all versions, so the repository containing this package is not currently listed in the file "/etc/apt/sources.list"! A good link to a great HOWTO on this would be great! Cheers! OMR |
Registered Member
|
This works for me:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true konsole |
Registered Member
|
I had a similar use case, but I wanted to enable the 'open root terminal here' option in Thunar, which I prefer over Dolphin. Here's how to do it:
Open Thunar Edit > Configure custom actions... (+) Add new Name = Open root terminal here Command = pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true konsole --workdir %f |
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]