This file is indexed.

/usr/share/cipux/etc/cipux-dog.perl is in libcipux-dog-perl 3.4.0.0-6.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# +=========================================================================+
# || /usr/share/cipux/etc/cipux-dog.perl                                   ||
# ||                                                                       ||
# || Configuration of different external CipUX::Dog commands.              ||
# || CipUX::Dog can optional be used by the CipUX task layer.              ||
# ||                                                                       ||
# ||                                                                       ||
# +=========================================================================+

# do NOT change the ordering of the configuration sections

my $prefix = "/usr/bin";

# %dog_cfg
$cfg = {

    cipux_dogs => {

        # this will create a home dir and sync /etc/skel and the role skel
        create_homedir => {
            commands => {
                '1' => {
                    'shell' => $prefix . '/sometool_homedir_create',
                    'args'  => [qw(--user @user@ --role @role@)],
                },
            },
        },

        # this will restore a home dir from skel without deleting content
        # restore referes here to the skel perspective
        restore_homedir => {
            commands => [
                '1' => {
                    'shell' => $prefix . '/sometool_homedir_restore',
                    'args'  => [qw(--user @user@ --role @role@)],
                },
            ],
        },

       # this will make a backup, wipe out the homedir and then creates
       # it again and syncronize skels
        reset_homedir => {
            commands => [
                '1' => {
                    'shell' => $prefix . '/sometool_homedir_backup',
                    'args'  => [qw(--user @user@ --role @role@)],
                },
                '2' => {
                    'shell' => $prefix . '/sometool_homedir_reset',
                    'args'  => [qw(--user @user@ --role @role@)],
                },
            ],
        },
    },

};

# In future (not implemented jet) this might create a user with
# "2nd Forbach Skel". You have to add a second "--skel %cipuxSkeletonUid"
# to all relevant commands. Example:
# commands => [
#   'sometool_homedir_reset --user %uid --skel %cipuxRole \
#                           --skel %cipuxSkeletonUid'
#             ],
#