Project

General

Profile

Bug #17188

Tails Additional Software.Script.autostart

Added by felixbog_l2l about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accessibility
Target version:
-
Start date:
10/25/2019
Due date:
% Done:

50%

Feature Branch:
Type of work:
Code
Starter:
Affected tool:
Additional Software Packages

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.

Startup_script.sh View (3.34 KB) felixbog_l2l, 10/25/2019 07:47 AM

autostart.desktop (412 Bytes) felixbog_l2l, 10/25/2019 07:48 AM

History

#1 Updated by felixbog_l2l about 2 months ago

My Sudoers.d/ file

#2 Updated by felixbog_l2l about 2 months ago

  1. My Sudoers.d file for accessible to start my autostart script in sudo without enter a sudo password
  2. Install Additional Packages when you want,with sh Startup_script.
  3. [[blueprint/additional_software_packages/org.boum.tails.additional-software.rules]]
  4. 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 about 2 months ago

felixbog_l2l wrote:

#4 Updated by intrigeri about 1 month ago

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 about 1 month ago

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.

Also available in: Atom PDF