Bug #17188
Tails Additional Software.Script.autostart
50%
Description
Hello friends, I’m working with on my custom build of Tails, & i not get to be move sudoers.d into my Persistent storage, for to be my additional tails autoscript is working in /.config/autostart/ with sudo(root) privileges without enter a sudo password for every autostart in background. Can You help me, for solve this problem?
My sudoers.d file/
My script.sh file/
and autostart.desktop file.
When I start from 3.17 version of My Persistent file.I not lookup to be able My sudoers.d file into etc/sudoers.d/
I just append this string into my persistence.conf
/etc/sudoers.d/ source=/etc/sudoers.d/
and just copy of etc/sudoers.d/ files into my Persistent Storage.
Files
Subtasks
History
#1 Updated by felixbog_l2l 2019-10-25 08:07:25
My Sudoers.d/ file
#2 Updated by felixbog_l2l 2019-10-25 08:13:43
- My Sudoers.d file for accessible to start my autostart script in sudo without enter a sudo password
- Install Additional Packages when you want,with sh Startup_script.
- [[blueprint/additional_software_packages/org.boum.tails.additional-software.rules]]
- and should be installed in /usr/share/polkit-1/rules.d/
amnesia ALL = NOPASSWD: /bin/bash -x /live/persistence/TailsData_unlocked/Persistent/Scripts/Startup_script.sh
root ALL = NOPASSWD: /bin/sudo /bin/bash -x /live/persistence/TailsData_unlocked/Persistent/Scripts/Startup_script.sh
#3 Updated by felixbog_l2l 2019-10-25 08:16:10
felixbog_l2l wrote:
#4 Updated by intrigeri 2019-10-31 12:19:08
> I just append this string into my persistence.conf
> /etc/sudoers.d/ source=/etc/sudoers.d/
I think you should use the “dotfiles” feature for this. Otherwise, you’re likely to break the sudo configuration at some point.
Regarding the blueprint: it is probably a mix of outdated info and ideas for the future. For the current state of the implementation, instead see https://tails.boum.org/contribute/design/additional_software_packages/.
Finally, I’m not sure I understand what you’re trying to achieve here.
Is it “run an arbitrary script as root during the startup of the GNOME session”?
#5 Updated by felixbog_l2l 2019-11-01 19:11:17
Yeap, It’s Script for startup(additional) Tails Software, like additional packages, settings, desktop,links, etc. Whatever you want to boot & to do for installed & configured settings for your additional soft, after Tails is Started, when is Additional software is Installed, this script it’s worked @background, like daemon for your additional settings or packages. This Feature very used for me & my friends, for non standard soft, packages. To be this Script is worked correctly, I think is needed to be run this sh bash file with root privileges, without enter a password of root. But that is security for this system was not violated.