Linux sv3046.xserver.jp 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
Apache
Server IP : 202.254.234.47 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : kinomori
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
libexec /
Delete
Unzip
Name
Size
Permission
Date
Action
awk
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
coreutils
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
courier-authlib
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
dbus-1
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
gawk
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
gcc
[ DIR ]
drwxr-xr-x
2024-04-23 10:58
getconf
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
git-core
[ DIR ]
drwxr-xr-x
2025-08-07 18:19
hostname
[ DIR ]
drwxr-xr-x
2023-12-21 11:11
initscripts
[ DIR ]
drwxr-xr-x
2023-12-21 11:11
ipset
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
iptables
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
linux-boot-probes
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
man-db
[ DIR ]
drwxr-xr-x
2023-12-21 18:54
openldap
[ DIR ]
drwxr-xr-x
2024-05-01 09:39
openssh
[ DIR ]
drwxr-xr-x
2024-10-11 11:36
os-prober
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
os-probes
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
p11-kit
[ DIR ]
drwxr-xr-x
2024-10-11 11:36
pcp
[ DIR ]
drwxr-xr-x
2023-12-21 18:54
postfix
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
proftpd
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
selinux
[ DIR ]
drwxr-xr-x
2024-10-11 11:36
sudo
[ DIR ]
drwxr-xr-x
2025-07-07 13:38
utempter
[ DIR ]
drwxr-xr-x
2023-12-21 11:09
dirmngr_ldap
87.32
KB
-rwxr-xr-x
2022-09-13 16:58
gam_server
99.2
KB
-rwxr-xr-x
2021-05-19 11:32
gpg-check-pattern
111.88
KB
-rwxr-xr-x
2022-09-13 16:58
gpg-preset-passphrase
87.21
KB
-rwxr-xr-x
2022-09-13 16:58
gpg-protect-tool
206.3
KB
-rwxr-xr-x
2022-09-13 16:58
gpg-wks-client
227.22
KB
-rwxr-xr-x
2022-09-13 16:58
grepconf.sh
253
B
-rwxr-xr-x
2021-04-12 10:57
httpd-ssl-gencerts
1.29
KB
-rwxr-xr-x
2025-07-23 17:45
httpd-ssl-pass-dialog
92
B
-rwxr-xr-x
2025-07-23 17:45
import-state
1.03
KB
-rwxr-xr-x
2022-08-10 22:03
loadmodules
233
B
-rwxr-xr-x
2022-08-10 22:03
mariadbd
23.75
MB
-rwxr-xr-x
2023-10-13 00:33
mlocate-run-updatedb
138
B
-rwxr-x---
2021-04-12 13:50
mysql-check-socket
1.55
KB
-rwxr-xr-x
2023-10-13 00:27
mysql-check-upgrade
1.56
KB
-rwxr-xr-x
2023-10-13 00:27
mysql-prepare-db-dir
4.93
KB
-rwxr-xr-x
2023-10-13 00:27
mysql-scripts-common
2.54
KB
-rw-r--r--
2023-10-13 00:27
mysqld
23.75
MB
-rwxr-xr-x
2023-10-13 00:33
no-python
157
B
-rwxr-xr-x
2025-07-02 04:03
platform-python
11.59
KB
-rwxr-xr-x
2025-07-02 04:03
platform-python3.6
11.59
KB
-rwxr-xr-x
2025-07-02 04:03
platform-python3.6m
11.59
KB
-rwxr-xr-x
2025-07-02 04:03
scdaemon
442.36
KB
-rwxr-xr-x
2022-09-13 16:58
tcawmgr.cgi
24.5
KB
-rwxr-xr-x
2021-04-12 17:33
Save
Rename
#!/bin/sh # This script creates the mysql data directory during first service start. # In subsequent starts, it does nothing much. source "`dirname ${BASH_SOURCE[0]}`/mysql-scripts-common" export LC_ALL=C # Returns content of the specified directory # If listing files fails, fake-file is returned so which means # we'll behave like there was some data initialized # Some files or directories are fine to be there, so those are # explicitly removed from the listing # @param <dir> datadir list_datadir () { ( ls -1A "$1" 2>/dev/null || echo "fake-file" ) | grep -v \ -e '^lost+found$' \ -e '\.err$' \ -e '^.bash_history$' } # Checks whether datadir should be initialized # @param <dir> datadir should_initialize () { test -z "$(list_datadir "$1")" } # If two args given first is user, second is group # otherwise the arg is the systemd service file if [ "$#" -eq 2 ] then myuser="$1" mygroup="$2" else # Absorb configuration settings from the specified systemd service file, # or the default service if not specified SERVICE_NAME="$1" if [ x"$SERVICE_NAME" = x ] then SERVICE_NAME=mariadb.service fi myuser=`systemctl show -p User "${SERVICE_NAME}" | sed 's/^User=//'` if [ x"$myuser" = x ] then myuser=mysql fi mygroup=`systemctl show -p Group "${SERVICE_NAME}" | sed 's/^Group=//'` if [ x"$mygroup" = x ] then mygroup=mysql fi fi # Set up the errlogfile with appropriate permissions if [ ! -e "$errlogfile" -a ! -h "$errlogfile" -a x$(dirname "$errlogfile") = "x/var/log" ]; then case $(basename "$errlogfile") in mysql*.log|mariadb*.log) install /dev/null -m0640 -o$myuser -g$mygroup "$errlogfile" ;; *) ;; esac else # Provide some advice if the log file cannot be created by this script errlogdir=$(dirname "$errlogfile") if ! [ -d "$errlogdir" ] ; then echo "The directory $errlogdir does not exist." >&2 exit 1 elif [ -e "$errlogfile" -a ! -w "$errlogfile" ] ; then echo "The log file $errlogfile cannot be written, please, fix its permissions." >&2 echo "The daemon will be run under $myuser:$mygroup" >&2 exit 1 fi fi # Make the data directory if doesn't exist or empty if should_initialize "$datadir" ; then # First, make sure $datadir is there with correct permissions # (note: if it's not, and we're not root, this'll fail ...) if [ ! -e "$datadir" -a ! -h "$datadir" ] then mkdir -p "$datadir" || exit 1 fi chown "$myuser:$mygroup" "$datadir" chmod 0755 "$datadir" [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir" # Now create the database echo "Initializing MariaDB database" >&2 # Avoiding deletion of files not created by mysql_install_db is # guarded by time check and sleep should help work-arounded # potential issues on systems with 1 second resolution timestamps # https://bugzilla.redhat.com/show_bug.cgi?id=1335849#c19 INITDB_TIMESTAMP=`LANG=C date -u` sleep 1 /usr/bin/mysql_install_db --rpm --datadir="$datadir" --user="$myuser" --skip-test-db >&2 ret=$? if [ $ret -ne 0 ] ; then echo "Initialization of MariaDB database failed." >&2 echo "Perhaps /etc/my.cnf is misconfigured or there is some problem with permissions of $datadir." >&2 # Clean up any partially-created database files if [ ! -e "$datadir/mysql/user.frm" ] && [ -d "$datadir" ] ; then echo "Initialization of MariaDB database was not finished successfully." >&2 echo "Files created so far will be removed." >&2 find "$datadir" -mindepth 1 -maxdepth 1 -newermt "$INITDB_TIMESTAMP" \ -not -name "lost+found" -exec rm -rf {} + if [ $? -ne 0 ] ; then echo "Removing of created files was not successfull." >&2 echo "Please, clean directory $datadir manually." >&2 fi else echo "However, part of data has been initialized and those will not be removed." >&2 echo "Please, clean directory $datadir manually." >&2 fi exit $ret fi # upgrade does not need to be run on a fresh datadir echo "10.5.22-MariaDB" >"$datadir/mysql_upgrade_info" else if [ -d "$datadir/mysql/" ] ; then # mysql dir exists, it seems data are initialized properly echo "Database MariaDB is probably initialized in $datadir already, nothing is done." echo "If this is not the case, make sure the $datadir is empty before running `basename $0`." else # if the directory is not empty but mysql/ directory is missing, then # print error and let user to initialize manually or empty the directory echo "Database MariaDB is not initialized, but the directory $datadir is not empty, so initialization cannot be done." >&2 echo "Make sure the $datadir is empty before running `basename $0`." >&2 exit 1 fi fi exit 0