Closed FlashModz closed 7 years ago
My Pro-FTP conf , https://pastebin.com/MuuYWeaW Picture Describe Problems => http://prntscr.com/g6hqmj
You need to use this: (NOTE: It needed to be on the server, where GAMESERVERS is installed!)
wget https://github.com/easy-wi/server/blob/master/migrate.sh && chmod +x migrate.sh && ./migrate.sh
After that so try test about it works!
grep: /etc/proftpd/conf.d/easy-wi.conf: No such file or directory
An FTP generate for the client to the same accesses as a Root. I can not understand why their ftp access is not limited to their directories.
Seems, you dont have installed easy-wi.conf ...
You need this:
Check if proftpd rules are installed
if [ -f /etc/proftpd/conf.d/easy-wi.conf -a "
grep '~/*/*/>' /etc/proftpd/conf.d/easy-wi.conf`" != "" ]; then
echo "Creating backup of /etc/proftpd/conf.d/easy-wi.conf"
cp /etc/proftpd/conf.d/easy-wi.conf /etc/proftpd/easy-wi.conf.pre_migration.backup
# For each rule, check if still exist and migrate
echo "Changing entries at /etc/proftpd/conf.d/easy-wi.conf"
if [ "`grep '~/\*/\*/>' /etc/proftpd/conf.d/easy-wi.conf`" != "" ]; then
echo "Changing entry '~/*/*/>' to '~/*/>'"
sed -i 's/~\/\*\/\*\/>/~\/\*\/>/g' /etc/proftpd/conf.d/easy-wi.conf
fi
if [ "`grep '/home/\*/pserver/\*>' /etc/proftpd/conf.d/easy-wi.conf`" != "" ]; then
echo "Changing entry '/home/*/pserver/*>' to '/home/*/pserver>'"
sed -i 's/\/home\/\*\/pserver\/\*>/\/home\/\*\/pserver>/g' /etc/proftpd/conf.d/easy-wi.conf
fi
if [ "`grep '<Directory ~/server/\*/' /etc/proftpd/conf.d/easy-wi.conf`" != "" ]; then
echo "Changing entries '<Directory ~/server/*/' to '<Directory ~/server/'"
sed -i 's/<Directory ~\/server\/\*\//<Directory ~\/server\//g' /etc/proftpd/conf.d/easy-wi.conf
fi
if [ "`grep '~/\*/\*/\*/\*/' /etc/proftpd/conf.d/easy-wi.conf`" != "" ]; then
echo "Changing entries '~/*/*/*/*/' to '~/*/*/'"
sed -i 's/~\/\*\/\*\/\*\/\*\//~\/\*\/\*\//g' /etc/proftpd/conf.d/easy-wi.conf
fi`
Yes i'm tested, this file is empty
I had to replace the search folder because it does not exist on my server. The existing folder is called proftpd.d
Hello All,
I installed Easy-wi to try. The installation is successful and the servers are operational.
But a major problem is present. When I create a server for a client, its FTP access permits it to access the root folder of the server.
It can download and modify the files.
Could you help me ?
Spec Server: