sudoers.d Not Working
Posted: 02 Sep 2018, 02:25
Code: Select all
cp -a --parents /sys/class/backlight/intel_backlight/max_brightness /mnt/sdXy/porteus/rootcopy
Code: Select all
$ echo 9000000 | sudo tee /sys/class/backlight/intel_backlight/brightness
Code: Select all
# visudo -f /etc/sudoers.d/test
ALL ALL=(ALL) NOPASSWD: /bin/tee /root/test
:x
$echo 100 | sudo tee /root/test
100
#cat /root/test
100
Great! That worked. tho it would be cool to solve the sudoers issue.brokenman wrote: ↑02 Sep 2018, 01:31change the file permissions if you want guest to write to it.Code: Select all
chmod 666 /sys/class/backlight/intel_backlight/brightness
Code: Select all
chmod 666 /sys/class/backlight/intel_backlight/brightness
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# usm -i yad
The following items were found.
Choose an number to confirm.
ctrl+c to quit
1) yad-0.40.0-x86_64-1_slonly.txz
2) phpmyadmin-4.8.2-noarch-1_slonly.txz
3) yadifa-2.2.4-x86_64-1_slonly.txz
#?
Code: Select all
root@porteus:/home/guest# usm -i yad
find: `/tmp/xdg-runtime-guest/gvfs': Permission denied
Nothing found for: yad
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# usm -u all
slackware was updated 31 seconds ago. Skipping.
Starting slackwarepatches database update
Downloading: vercheck.txt DONE
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
File verification was good.
Optimizing manifest
slackwarepatches database updated.
Starting slacky database update
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
File verification was good.
Optimizing manifest
slacky database updated.
Starting salix database update
Downloading: CHECKSUMS.md5 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
Downloading: OPTIFEST.gz DONE
salix database updated.
Starting alien database update
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
File verification was good.
Optimizing manifest
alien database updated.
Starting ponce database update
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
Optimizing manifest
ponce database updated.
Starting slackonly database update
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
File verification was good.
Optimizing manifest
slackonly database updated.
Starting sbo database update
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
sbo database updated.
Downloading: extra-deps.txt DONE
Downloading: ignore-deps.txt DONE
root@porteus:/home/guest# usm -i yad
The following items were found.
Choose an number to confirm.
ctrl+c to quit
1) yad-0.40.0-x86_64-1_slonly.txz
2) phpmyadmin-4.8.2-noarch-1_slonly.txz
3) yadifa-2.2.4-x86_64-1_slonly.txz
#? 1
Package: yad-0.40.0-x86_64-1_slonly.txz (168 K) [not installed]
yad: yad (displays graphical dialogs from shell scripts or command line)
yad:
yad: Yad (yet another dialog) is a fork of Zenity with many improvements,
yad: including custom buttons, additional dialogs and a pop-up menu in
yad: the notification area.
yad:
yad: There were two main reasons for this fork. The first was to remove
yad: dependencies on deprecated libraries like libglade and gnome-canvas.
yad: The second was the slow pace of Zenity development including many
yad: unimplemented enhancement suggestions in the GNOME Bugzilla.
yad:
root@porteus:/home/guest#