Server IP : 149.255.58.128 / Your IP : 216.73.216.44
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib/rpm//sysusers.generate-pre.sh
#!/usr/bin/bash
# -*- mode: shell-script; indent-tabs-mode: true; tab-width: 4; -*-
# This script turns sysuser.d files into scriptlets mandated by Fedora
# packaging guidelines. The general idea is to define users using the
# declarative syntax but to turn this into traditional scriptlets.
user() {
user="$1"
uid="$2"
desc="$3"
group="$4"
home="$5"
shell="$6"
[ "$desc" = '-' ] && desc=
{ [ "$home" = '-' ] || [ "$home" = '' ]; } && home=/
{ [ "$shell" = '-' ] || [ "$shell" = '' ]; } && shell=/usr/sbin/nologin
if [ "$uid" = '-' ] || [ "$uid" = '' ]; then
cat <<-EOF
getent passwd '$user' >/dev/null || \\
useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || :
EOF
else
cat <<-EOF
if ! getent passwd ${user@Q} >/dev/null; then
if ! getent passwd ${uid@Q} >/dev/null; then
useradd -r -u ${uid@Q} -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || :
else
useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || :
fi
fi
EOF
fi
}
group() {
group="$1"
gid="$2"
if [ "$gid" = '-' ]; then
cat <<-EOF
getent group ${group@Q} >/dev/null || groupadd -r ${group@Q} || :
EOF
else
cat <<-EOF
getent group ${group@Q} >/dev/null || groupadd -f -g ${gid@Q} -r ${group@Q} || :
EOF
fi
}
usermod() {
user="$1"
group="$2"
cat <<-EOF
if getent group ${group@Q} >/dev/null; then
usermod -a -G ${group@Q} '$user' || :
fi
EOF
}
parse() {
while read -r line || [ -n "$line" ] ; do
{ [ "${line:0:1}" = '#' ] || [ "${line:0:1}" = ';' ]; } && continue
line="${line## *}"
[ -z "$line" ] && continue
eval "arr=( $line )"
case "${arr[0]}" in
('u')
if [[ "${arr[2]}" == *":"* ]]; then
user "${arr[1]}" "${arr[2]%:*}" "${arr[3]}" "${arr[2]#*:}" "${arr[4]}" "${arr[5]}"
else
group "${arr[1]}" "${arr[2]}"
user "${arr[1]}" "${arr[2]}" "${arr[3]}" "${arr[1]}" "${arr[4]}" "${arr[5]}"
fi
;;
('g')
group "${arr[1]}" "${arr[2]}"
;;
('m')
group "${arr[2]}" "-"
user "${arr[1]}" "-" "" "${arr[1]}" "" ""
usermod "${arr[1]}" "${arr[2]}"
;;
esac
done
}
for fn in "$@"; do
[ -e "$fn" ] || continue
echo "# generated from $(basename "$fn")"
parse <"$fn"
done
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | March 26 2025 22:43:12 | 0 / root | 0555 | |
fileattrs | -- | March 21 2025 22:43:24 | 0 / root | 0755 | |
lua | -- | October 07 2024 07:47:48 | 0 / root | 0755 | |
macros.d | -- | March 21 2025 22:43:24 | 0 / root | 0755 | |
platform | -- | October 07 2024 07:47:48 | 0 / root | 0755 | |
redhat | -- | February 17 2025 22:42:15 | 0 / root | 0755 | |
| | | | | |
brp-boot-efi-times | 1.431 KB | June 08 2022 09:44:52 | 0 / root | 0755 | |
brp-scl-compress | 1.771 KB | July 27 2021 15:14:26 | 0 / root | 0755 | |
brp-scl-python-bytecompile | 3.041 KB | July 27 2021 15:14:26 | 0 / root | 0755 | |
gstreamer1.prov | 0.928 KB | September 27 2023 03:39:23 | 0 / root | 0755 | |
macros | 43.124 KB | October 07 2024 07:47:48 | 0 / root | 0644 | |
nodejs_native.req | 0.072 KB | May 20 2024 06:02:20 | 0 / root | 0755 | |
rpm.daily | 0.289 KB | May 28 2020 10:04:25 | 0 / root | 0644 | |
rpm.log | 0.06 KB | May 28 2020 10:04:25 | 0 / root | 0644 | |
rpm.supp | 0.672 KB | May 28 2020 10:04:25 | 0 / root | 0644 | |
rpm2cpio.sh | 1.56 KB | October 07 2024 07:46:58 | 0 / root | 0755 | |
rpmdb_dump | 0.04 KB | May 28 2020 10:04:25 | 0 / root | 0755 | |
rpmdb_load | 0.04 KB | May 28 2020 10:04:25 | 0 / root | 0755 | |
rpmpopt-4.16.1.3 | 11.828 KB | October 07 2024 07:47:33 | 0 / root | 0644 | |
rpmrc | 17.24 KB | October 07 2024 07:47:33 | 0 / root | 0644 | |
scldeps.sh | 0.252 KB | July 27 2021 15:14:26 | 0 / root | 0755 | |
sysusers.generate-pre.sh | 2.217 KB | March 18 2025 04:21:31 | 0 / root | 0755 | |
sysusers.prov | 0.591 KB | March 18 2025 04:21:31 | 0 / root | 0755 | |
tgpg | 0.915 KB | May 28 2020 10:04:25 | 0 / root | 0755 | |