From f1ec31de16f3c9d17ba45f9cb2a7cd8255000b29 Mon Sep 17 00:00:00 2001 From: eichehome Date: Sun, 16 Jul 2023 22:57:43 +0200 Subject: [PATCH] =?UTF-8?q?Datein=20hinzugef=C3=BCgt,=20welche=20das=20Roo?= =?UTF-8?q?t-Dateisystem=20von=20/usr=20beim=20Start=20provisionieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- factory/etc/bash.bash_logout | 3 + factory/etc/bash.bashrc | 24 ++++ factory/etc/default/useradd | 44 ++++++ factory/etc/gai.conf | 11 ++ factory/etc/iproute2/bpf_pinning | 6 + factory/etc/iproute2/ematch_map | 8 ++ factory/etc/iproute2/group | 2 + factory/etc/iproute2/nl_protos | 23 ++++ factory/etc/iproute2/rt_dsfield | 26 ++++ factory/etc/iproute2/rt_protos | 25 ++++ factory/etc/iproute2/rt_realms | 13 ++ factory/etc/iproute2/rt_scopes | 11 ++ factory/etc/iproute2/rt_tables | 11 ++ factory/etc/ld.so.conf.d/lib32-glibc.conf | 1 + factory/etc/locale.gen | 1 + factory/etc/makepkg.conf | 159 ++++++++++++++++++++++ factory/etc/pacman.conf | 98 +++++++++++++ factory/etc/pam.d/other | 9 ++ factory/etc/pam.d/system-auth | 27 ++++ factory/etc/pam.d/system-local-login | 6 + factory/etc/pam.d/system-login | 19 +++ factory/etc/pam.d/system-remote-login | 6 + factory/etc/pam.d/system-services | 11 ++ factory/etc/profile.d/gawk.csh | 11 ++ factory/etc/profile.d/gawk.sh | 31 +++++ factory/etc/skel/.bash_logout | 3 + factory/etc/skel/.bash_profile | 5 + factory/etc/skel/.bashrc | 10 ++ factory/etc/xattr.conf | 1 + tmpfiles.d/attr.conf | 2 + tmpfiles.d/bash.conf | 7 + tmpfiles.d/gawk.conf | 6 + tmpfiles.d/glibc.conf | 5 + tmpfiles.d/iproute2.conf | 11 ++ tmpfiles.d/pacman.conf | 3 + tmpfiles.d/pambase.conf | 7 + tmpfiles.d/shadow.conf | 2 + 37 files changed, 648 insertions(+) create mode 100644 factory/etc/bash.bash_logout create mode 100644 factory/etc/bash.bashrc create mode 100644 factory/etc/default/useradd create mode 100644 factory/etc/gai.conf create mode 100644 factory/etc/iproute2/bpf_pinning create mode 100644 factory/etc/iproute2/ematch_map create mode 100644 factory/etc/iproute2/group create mode 100644 factory/etc/iproute2/nl_protos create mode 100644 factory/etc/iproute2/rt_dsfield create mode 100644 factory/etc/iproute2/rt_protos create mode 100644 factory/etc/iproute2/rt_realms create mode 100644 factory/etc/iproute2/rt_scopes create mode 100644 factory/etc/iproute2/rt_tables create mode 100644 factory/etc/ld.so.conf.d/lib32-glibc.conf create mode 100644 factory/etc/locale.gen create mode 100644 factory/etc/makepkg.conf create mode 100644 factory/etc/pacman.conf create mode 100644 factory/etc/pam.d/other create mode 100644 factory/etc/pam.d/system-auth create mode 100644 factory/etc/pam.d/system-local-login create mode 100644 factory/etc/pam.d/system-login create mode 100644 factory/etc/pam.d/system-remote-login create mode 100644 factory/etc/pam.d/system-services create mode 100644 factory/etc/profile.d/gawk.csh create mode 100644 factory/etc/profile.d/gawk.sh create mode 100644 factory/etc/skel/.bash_logout create mode 100644 factory/etc/skel/.bash_profile create mode 100644 factory/etc/skel/.bashrc create mode 100644 factory/etc/xattr.conf create mode 100644 tmpfiles.d/attr.conf create mode 100644 tmpfiles.d/bash.conf create mode 100644 tmpfiles.d/gawk.conf create mode 100644 tmpfiles.d/glibc.conf create mode 100644 tmpfiles.d/iproute2.conf create mode 100644 tmpfiles.d/pacman.conf create mode 100644 tmpfiles.d/pambase.conf create mode 100644 tmpfiles.d/shadow.conf diff --git a/factory/etc/bash.bash_logout b/factory/etc/bash.bash_logout new file mode 100644 index 0000000..a76e48e --- /dev/null +++ b/factory/etc/bash.bash_logout @@ -0,0 +1,3 @@ +# +# /etc/bash.bash_logout +# diff --git a/factory/etc/bash.bashrc b/factory/etc/bash.bashrc new file mode 100644 index 0000000..3e7fab6 --- /dev/null +++ b/factory/etc/bash.bashrc @@ -0,0 +1,24 @@ +# +# /etc/bash.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +[[ $DISPLAY ]] && shopt -s checkwinsize + +PS1='[\u@\h \W]\$ ' + +case ${TERM} in + Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*) + PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"') + + ;; + screen*) + PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"') + ;; +esac + +if [[ -r /usr/share/bash-completion/bash_completion ]]; then + . /usr/share/bash-completion/bash_completion +fi diff --git a/factory/etc/default/useradd b/factory/etc/default/useradd new file mode 100644 index 0000000..7544749 --- /dev/null +++ b/factory/etc/default/useradd @@ -0,0 +1,44 @@ + +667 B + +# Default values for useradd(8) + +# + +# The SHELL variable specifies the default login shell on your + +# system. + +SHELL=/bin/bash + +# The default group for users + +GROUP=users + +# The default home directory. + +HOME=/home + +# The number of days after a password expires until the account is permanently + +# disabled + +INACTIVE=-1 + +# The default expire date + +EXPIRE= + +# The SKEL variable specifies the directory containing "skeletal" user files; + +# in other words, files such as a sample .profile that will be copied to the + +# new user's home directory when it is created. + +SKEL=/etc/skel + +# Defines whether the mail spool should be created while + +# creating the account + +CREATE_MAIL_SPOOL=no \ No newline at end of file diff --git a/factory/etc/gai.conf b/factory/etc/gai.conf new file mode 100644 index 0000000..13c4f0a --- /dev/null +++ b/factory/etc/gai.conf @@ -0,0 +1,11 @@ +label ::1/128 0 +label ::/0 1 +label 2002::/16 2 +label ::/96 3 +label ::ffff:0:0/96 4 +########################### +precedence ::1/128 50 +precedence ::/0 40 +precedence 2002::/16 30 +precedence ::/96 20 +precedence ::ffff:0:0/96 10 \ No newline at end of file diff --git a/factory/etc/iproute2/bpf_pinning b/factory/etc/iproute2/bpf_pinning new file mode 100644 index 0000000..2b39c70 --- /dev/null +++ b/factory/etc/iproute2/bpf_pinning @@ -0,0 +1,6 @@ +# +# subpath mappings from mount point for pinning +# +#3 tracing +#4 foo/bar +#5 tc/cls1 diff --git a/factory/etc/iproute2/ematch_map b/factory/etc/iproute2/ematch_map new file mode 100644 index 0000000..4d6bb2f --- /dev/null +++ b/factory/etc/iproute2/ematch_map @@ -0,0 +1,8 @@ +# lookup table for ematch kinds +1 cmp +2 nbyte +3 u32 +4 meta +7 canid +8 ipset +9 ipt diff --git a/factory/etc/iproute2/group b/factory/etc/iproute2/group new file mode 100644 index 0000000..6f000b2 --- /dev/null +++ b/factory/etc/iproute2/group @@ -0,0 +1,2 @@ +# device group names +0 default diff --git a/factory/etc/iproute2/nl_protos b/factory/etc/iproute2/nl_protos new file mode 100644 index 0000000..7c17cf0 --- /dev/null +++ b/factory/etc/iproute2/nl_protos @@ -0,0 +1,23 @@ +# Netlink protocol names mapping + +0 rtnl +1 unused +2 usersock +3 fw +4 tcpdiag +5 nflog +6 xfrm +7 selinux +8 iscsi +9 audit +10 fiblookup +11 connector +12 nft +13 ip6fw +14 dec-rt +15 uevent +16 genl +18 scsi-trans +19 ecryptfs +20 rdma +21 crypto diff --git a/factory/etc/iproute2/rt_dsfield b/factory/etc/iproute2/rt_dsfield new file mode 100644 index 0000000..1426d60 --- /dev/null +++ b/factory/etc/iproute2/rt_dsfield @@ -0,0 +1,26 @@ +# Differentiated field values +# These include the DSCP and unused bits +0x0 default +# Newer RFC2597 values +0x28 AF11 +0x30 AF12 +0x38 AF13 +0x48 AF21 +0x50 AF22 +0x58 AF23 +0x68 AF31 +0x70 AF32 +0x78 AF33 +0x88 AF41 +0x90 AF42 +0x98 AF43 +# Older values RFC2474 +0x20 CS1 +0x40 CS2 +0x60 CS3 +0x80 CS4 +0xA0 CS5 +0xC0 CS6 +0xE0 CS7 +# RFC 2598 +0xB8 EF diff --git a/factory/etc/iproute2/rt_protos b/factory/etc/iproute2/rt_protos new file mode 100644 index 0000000..0f98609 --- /dev/null +++ b/factory/etc/iproute2/rt_protos @@ -0,0 +1,25 @@ +# +# Reserved protocols. +# +0 unspec +1 redirect +2 kernel +3 boot +4 static +8 gated +9 ra +10 mrt +11 zebra +12 bird +13 dnrouted +14 xorp +15 ntk +16 dhcp +18 keepalived +42 babel +99 openr +186 bgp +187 isis +188 ospf +189 rip +192 eigrp diff --git a/factory/etc/iproute2/rt_realms b/factory/etc/iproute2/rt_realms new file mode 100644 index 0000000..eedd76d --- /dev/null +++ b/factory/etc/iproute2/rt_realms @@ -0,0 +1,13 @@ +# +# reserved values +# +0 cosmos +# +# local +# +#1 inr.ac +#2 inr.ruhep +#3 freenet +#4 radio-msu +#5 russia +#6 internet diff --git a/factory/etc/iproute2/rt_scopes b/factory/etc/iproute2/rt_scopes new file mode 100644 index 0000000..8514bc1 --- /dev/null +++ b/factory/etc/iproute2/rt_scopes @@ -0,0 +1,11 @@ +# +# reserved values +# +0 global +255 nowhere +254 host +253 link +# +# pseudo-reserved +# +200 site diff --git a/factory/etc/iproute2/rt_tables b/factory/etc/iproute2/rt_tables new file mode 100644 index 0000000..541abfd --- /dev/null +++ b/factory/etc/iproute2/rt_tables @@ -0,0 +1,11 @@ +# +# reserved values +# +255 local +254 main +253 default +0 unspec +# +# local +# +#1 inr.ruhep diff --git a/factory/etc/ld.so.conf.d/lib32-glibc.conf b/factory/etc/ld.so.conf.d/lib32-glibc.conf new file mode 100644 index 0000000..684fc6e --- /dev/null +++ b/factory/etc/ld.so.conf.d/lib32-glibc.conf @@ -0,0 +1 @@ +/usr/lib32 \ No newline at end of file diff --git a/factory/etc/locale.gen b/factory/etc/locale.gen new file mode 100644 index 0000000..fc50436 --- /dev/null +++ b/factory/etc/locale.gen @@ -0,0 +1 @@ +# aus installation kopieren \ No newline at end of file diff --git a/factory/etc/makepkg.conf b/factory/etc/makepkg.conf new file mode 100644 index 0000000..f270d8e --- /dev/null +++ b/factory/etc/makepkg.conf @@ -0,0 +1,159 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::bzr' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +#-- Compiler and Linker Flags +#CPPFLAGS="" +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" +LTOFLAGS="-flto=auto" +#RUSTFLAGS="-C opt-level=2" +#-- Make Flags: change this for DistCC/SMP systems +#MAKEFLAGS="-j2" +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +#DEBUG_RUSTFLAGS="-C debuginfo=2" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +BUILDENV=(!distcc color !ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +#PACKAGER="John Doe " +#-- Specify a key to use for package signing +#GPGKEY="" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -c -z -) +COMPRESSZST=(zstd -c -z -q -) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +PKGEXT='.pkg.tar.zst' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/factory/etc/pacman.conf b/factory/etc/pacman.conf new file mode 100644 index 0000000..aaa63da --- /dev/null +++ b/factory/etc/pacman.conf @@ -0,0 +1,98 @@ +# +# /etc/pacman.conf +# +# See the pacman.conf(5) manpage for option and repository directives + +# +# GENERAL OPTIONS +# +[options] +# The following paths are commented out with their default values listed. +# If you wish to use different paths, uncomment and update the paths. +#RootDir = / +#DBPath = /var/lib/pacman/ +#CacheDir = /var/cache/pacman/pkg/ +#LogFile = /var/log/pacman.log +#GPGDir = /etc/pacman.d/gnupg/ +#HookDir = /etc/pacman.d/hooks/ +HoldPkg = pacman glibc +#XferCommand = /usr/bin/curl -L -C - -f -o %o %u +#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +#CleanMethod = KeepInstalled +Architecture = auto + +# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup +#IgnorePkg = +#IgnoreGroup = + +#NoUpgrade = +#NoExtract = + +# Misc options +#UseSyslog +Color +#NoProgressBar +CheckSpace +#VerbosePkgLists +ParallelDownloads = 5 +ILoveCandy + +# By default, pacman accepts packages signed by keys that its local keyring +# trusts (see pacman-key and its man page), as well as unsigned packages. +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +#RemoteFileSigLevel = Required + +# NOTE: You must run `pacman-key --init` before first using pacman; the local +# keyring can then be populated with the keys of all official Arch Linux +# packagers with `pacman-key --populate archlinux`. + +# +# REPOSITORIES +# - can be defined here or included from another file +# - pacman will search repositories in the order defined here +# - local/custom mirrors can be added here or in separate files +# - repositories listed first will take precedence when packages +# have identical names, regardless of version number +# - URLs will have $repo replaced by the name of the current repo +# - URLs will have $arch replaced by the name of the architecture +# +# Repository entries are of the format: +# [repo-name] +# Server = ServerName +# Include = IncludePath +# +# The header [repo-name] is crucial - it must be present and +# uncommented to enable the repo. +# + +# The testing repositories are disabled by default. To enable, uncomment the +# repo name header and Include lines. You can add preferred servers immediately +# after the header, and they will be used before the default mirrors. + +#[core-testing] +#Include = /etc/pacman.d/mirrorlist + +[core] +Include = /etc/pacman.d/mirrorlist + +#[extra-testing] +#Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +# If you want to run 32 bit applications on your x86_64 system, +# enable the multilib repositories as required here. + +#[multilib-testing] +#Include = /etc/pacman.d/mirrorlist + +#[multilib] +#Include = /etc/pacman.d/mirrorlist + +# An example of a custom package repository. See the pacman manpage for +# tips on creating your own repositories. +#[custom] +#SigLevel = Optional TrustAll +#Server = file:///home/custompkgs diff --git a/factory/etc/pam.d/other b/factory/etc/pam.d/other new file mode 100644 index 0000000..3f50bd1 --- /dev/null +++ b/factory/etc/pam.d/other @@ -0,0 +1,9 @@ +#%PAM-1.0 +auth required pam_deny.so +auth required pam_warn.so +account required pam_deny.so +account required pam_warn.so +password required pam_deny.so +password required pam_warn.so +session required pam_deny.so +session required pam_warn.so diff --git a/factory/etc/pam.d/system-auth b/factory/etc/pam.d/system-auth new file mode 100644 index 0000000..a30490b --- /dev/null +++ b/factory/etc/pam.d/system-auth @@ -0,0 +1,27 @@ +#%PAM-1.0 + +auth required pam_faillock.so preauth +# Optionally use requisite above if you do not want to prompt for the password +# on locked accounts. +-auth [success=2 default=ignore] pam_systemd_home.so +auth [success=1 default=bad] pam_unix.so try_first_pass nullok +auth [default=die] pam_faillock.so authfail +auth optional pam_permit.so +auth required pam_env.so +auth required pam_faillock.so authsucc +# If you drop the above call to pam_faillock.so the lock will be done also +# on non-consecutive authentication failures. + +-account [success=1 default=ignore] pam_systemd_home.so +account required pam_unix.so +account optional pam_permit.so +account required pam_time.so + +-password [success=1 default=ignore] pam_systemd_home.so +password required pam_unix.so try_first_pass nullok shadow sha512 +password optional pam_permit.so + +-session optional pam_systemd_home.so +session required pam_limits.so +session required pam_unix.so +session optional pam_permit.so diff --git a/factory/etc/pam.d/system-local-login b/factory/etc/pam.d/system-local-login new file mode 100644 index 0000000..347b815 --- /dev/null +++ b/factory/etc/pam.d/system-local-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login diff --git a/factory/etc/pam.d/system-login b/factory/etc/pam.d/system-login new file mode 100644 index 0000000..364fa06 --- /dev/null +++ b/factory/etc/pam.d/system-login @@ -0,0 +1,19 @@ +#%PAM-1.0 + +auth required pam_shells.so +auth requisite pam_nologin.so +auth include system-auth + +account required pam_access.so +account required pam_nologin.so +account include system-auth + +password include system-auth + +session optional pam_loginuid.so +session optional pam_keyinit.so force revoke +session include system-auth +session optional pam_motd.so +session optional pam_mail.so dir=/var/spool/mail standard quiet +-session optional pam_systemd.so +session required pam_env.so diff --git a/factory/etc/pam.d/system-remote-login b/factory/etc/pam.d/system-remote-login new file mode 100644 index 0000000..08657cc --- /dev/null +++ b/factory/etc/pam.d/system-remote-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login \ No newline at end of file diff --git a/factory/etc/pam.d/system-services b/factory/etc/pam.d/system-services new file mode 100644 index 0000000..6ed9bdc --- /dev/null +++ b/factory/etc/pam.d/system-services @@ -0,0 +1,11 @@ +#%PAM-1.0 + +auth sufficient pam_permit.so + +account include system-auth + +session optional pam_loginuid.so +session required pam_limits.so +session required pam_unix.so +session optional pam_permit.so +session required pam_env.so diff --git a/factory/etc/profile.d/gawk.csh b/factory/etc/profile.d/gawk.csh new file mode 100644 index 0000000..2177028 --- /dev/null +++ b/factory/etc/profile.d/gawk.csh @@ -0,0 +1,11 @@ +alias gawkpath_default 'unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`' + +alias gawkpath_prepend 'if (! $?AWKPATH) setenv AWKPATH ""; if ($AWKPATH == "") then; unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKPATH "\!*"":$AWKPATH"' + +alias gawkpath_append 'if (! $?AWKPATH) setenv AWKPATH ""; if ($AWKPATH == "") then; unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKPATH "$AWKPATH"":\!*"' + +alias gawklibpath_default 'unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`' + +alias gawklibpath_prepend 'if (! $?AWKLIBPATH) setenv AWKLIBPATH ""; if ($AWKLIBPATH == "") then; unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKLIBPATH "\!*"":$AWKLIBPATH"' + +alias gawklibpath_append 'if (! $?AWKLIBPATH) setenv AWKLIBPATH ""; if ($AWKLIBPATH == "") then; unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKLIBPATH "$AWKLIBPATH"":\!*"' \ No newline at end of file diff --git a/factory/etc/profile.d/gawk.sh b/factory/etc/profile.d/gawk.sh new file mode 100644 index 0000000..0fc7c4a --- /dev/null +++ b/factory/etc/profile.d/gawk.sh @@ -0,0 +1,31 @@ +gawkpath_default () { + unset AWKPATH + export AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` +} + +gawkpath_prepend () { + [ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` + export AWKPATH="$*:$AWKPATH" +} + +gawkpath_append () { + [ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` + export AWKPATH="$AWKPATH:$*" +} + +gawklibpath_default () { + unset AWKLIBPATH + export AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` +} + +gawklibpath_prepend () { + [ -z "$AWKLIBPATH" ] && \ + AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` + export AWKLIBPATH="$*:$AWKLIBPATH" +} + +gawklibpath_append () { + [ -z "$AWKLIBPATH" ] && \ + AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` + export AWKLIBPATH="$AWKLIBPATH:$*" +} \ No newline at end of file diff --git a/factory/etc/skel/.bash_logout b/factory/etc/skel/.bash_logout new file mode 100644 index 0000000..0e4e4f1 --- /dev/null +++ b/factory/etc/skel/.bash_logout @@ -0,0 +1,3 @@ +# +# ~/.bash_logout +# diff --git a/factory/etc/skel/.bash_profile b/factory/etc/skel/.bash_profile new file mode 100644 index 0000000..5545f00 --- /dev/null +++ b/factory/etc/skel/.bash_profile @@ -0,0 +1,5 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/factory/etc/skel/.bashrc b/factory/etc/skel/.bashrc new file mode 100644 index 0000000..9283825 --- /dev/null +++ b/factory/etc/skel/.bashrc @@ -0,0 +1,10 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +PS1='[\u@\h \W]\$ ' diff --git a/factory/etc/xattr.conf b/factory/etc/xattr.conf new file mode 100644 index 0000000..ee64d2e --- /dev/null +++ b/factory/etc/xattr.conf @@ -0,0 +1 @@ +#aus installation kopieren \ No newline at end of file diff --git a/tmpfiles.d/attr.conf b/tmpfiles.d/attr.conf new file mode 100644 index 0000000..c73a94e --- /dev/null +++ b/tmpfiles.d/attr.conf @@ -0,0 +1,2 @@ +#Type Path Mode UID GID Age Argument +C /etc/xattr.conf - - - - \ No newline at end of file diff --git a/tmpfiles.d/bash.conf b/tmpfiles.d/bash.conf new file mode 100644 index 0000000..23fe545 --- /dev/null +++ b/tmpfiles.d/bash.conf @@ -0,0 +1,7 @@ +#Type Path Mode UID GID Age Argument +C /etc/bash.bashrc 644 - - - +C /etc/bash.bash_logout 644 - - - +d /etc/skel 755 - - - +C /etc/skel/.bashrc 644 - - - +C /etc/skel/.bash_profile 644 - - - +C /etc/skel/.bash_logout 644 - - - \ No newline at end of file diff --git a/tmpfiles.d/gawk.conf b/tmpfiles.d/gawk.conf new file mode 100644 index 0000000..b497cbe --- /dev/null +++ b/tmpfiles.d/gawk.conf @@ -0,0 +1,6 @@ +#Type Path Mode UID GID Age Argument +d /etc/profile.d 755 - - - +#f /etc/profile.d/gawk.csh 644 - - - +C /etc/profile.d/gawk.csh 644 - - - +#f /etc/profile.d/gawk.sh 644 - - - +C /etc/profile.d/gawk.sh 644 - - - \ No newline at end of file diff --git a/tmpfiles.d/glibc.conf b/tmpfiles.d/glibc.conf new file mode 100644 index 0000000..6501f7b --- /dev/null +++ b/tmpfiles.d/glibc.conf @@ -0,0 +1,5 @@ +#Type Path Mode UID GID Age Argument +C /etc/locale.gen - - - - #header + aus /usr/share/i18n/SUPPORTED lesen +#getaddrinfo configuration file man:gai.conf(5) +C /etc/gai.conf - - - - +C /etc/ld.so.conf.d/lib32-glibc.conf \ No newline at end of file diff --git a/tmpfiles.d/iproute2.conf b/tmpfiles.d/iproute2.conf new file mode 100644 index 0000000..de56589 --- /dev/null +++ b/tmpfiles.d/iproute2.conf @@ -0,0 +1,11 @@ +#Type Path Mode UID GID Age Argument +C /etc/iproute2/bpf_pinning - - - - +C /etc/iproute2/ematch_map - - - - +C /etc/iproute2/group - - - - +C /etc/iproute2/nl_protos - - - - +C /etc/iproute2/rt_dsfield - - - - +C /etc/iproute2/rt_protos - - - - +C /etc/iproute2/rt_realms - - - - +C /etc/iproute2/rt_scopes - - - - +C /etc/iproute2/rt_tables - - - - +d /var/lib/arpd \ No newline at end of file diff --git a/tmpfiles.d/pacman.conf b/tmpfiles.d/pacman.conf new file mode 100644 index 0000000..9919b19 --- /dev/null +++ b/tmpfiles.d/pacman.conf @@ -0,0 +1,3 @@ +#Type Path Mode UID GID Age Argument +C /etc/pacman.conf - - - - +C /etc/makepkg.conf - - - - \ No newline at end of file diff --git a/tmpfiles.d/pambase.conf b/tmpfiles.d/pambase.conf new file mode 100644 index 0000000..143c386 --- /dev/null +++ b/tmpfiles.d/pambase.conf @@ -0,0 +1,7 @@ +#Type Path Mode UID GID Age Argument +C /etc/pam.d/other - - - - +C /etc/pam.d/system-auth - - - - +C /etc/pam.d/system-local-login - - - - +C /etc/pam.d/system-login - - - - +C /etc/pam.d/system-remote-login - - - - +C /etc/pam.d/system-services - - - - \ No newline at end of file diff --git a/tmpfiles.d/shadow.conf b/tmpfiles.d/shadow.conf new file mode 100644 index 0000000..f56b023 --- /dev/null +++ b/tmpfiles.d/shadow.conf @@ -0,0 +1,2 @@ +#Type Path Mode UID GID Age Argument +C /etc/default/useradd - - - - \ No newline at end of file