Hello.
I try the recommendation of wolfi323 in the thread #4 of
https://forums.opensuse.org/showthread.php/512950-How-use-quot-sudo-quot-without-password#4
here is sudoers ( comment have been removed )
Defaults secure_path="/usr/sbin:/usr/bin:/sbin:/bin"
Defaults !env_reset
Defaults !insults
#Defaults targetpw # ask for the password of the target user i.e. root
#ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
root ALL=(ALL) ALL
##
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
##
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
##
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
After creating a new user for the test, put it in group wheel, create kdesurc for this user.
The user can start yast, dolphin ‘super user mode’, cat /root files.
Then I create a kde konsole profile named ‘Root_Shell_WHEEL_JCD’
here is the config file in “/home/user_test/.local/share/konsole/Root_Shell_WHEEL_JCD.profile” :
[Appearance]
ColorScheme=Black_On_Dark_Yellow
Font=Hack,11,-1,5,50,0,0,0,0,0,Regular
[General]
Command=sudo bash
Icon=/backup_sys/¬000_COMMON/¬¬ICONS_WALLPAPERS_THEMES/AVATARS_ICONS_PICTURES/ICONS/KONSOLE/RootTerminal.png
Name=Root_Shell_WHEEL_JCD
Parent=FALLBACK/
[Scrolling]
HistoryMode=2
[Terminal Features]
BlinkingCursorEnabled=true
THe file “Black_On_Dark_Yellow.colorscheme” exists in the same folder.
Here is konsolerc :
[Desktop Entry]
DefaultProfile=Profile_std_JCD.profile
[Favorite Profiles]
Favorites=Root_Shell_WHEEL_JCD.profile,Profile_std_JCD.profile,Root_Shell_JCD.profile
[MainWindow]
Height 1080=939
State=AAAA/wAAAAD9AAAAAAAABU4AAAOFAAAABAAAAAQAAAAIAAAACPwAAAAA
ToolBarsMovable=Disabled
Width 1920=1358
I can change the color to “Black_On_Dark_Yellow.colorscheme” in a standard konsole; so I suppose thatr there is no problem with the color file.
I can switch to root shell profile in a standard konsole
I cannot switch to Root_Shell_WHEEL_JCD profile in a standard konsole. The windows closed not opportunely.
Trying to start a new konsole as root without password give that error :
user_test@ASUS:~> ~/test_konsole.sh
.
WHOAMI : user_test
.
.
USER NAME ($USER) : user_test
.
.
USER NAME (id -un) : user_test
.
.
ID : 1001
.
COMMAND : konsole --profile Root_Shell_WHEEL_JCD
XIO: fatal IO error 0 (Success) on X server ":0"
after 575 requests (575 known processed) with 0 events remaining.
user_test@ASUS:~>
Any help is welcome