-
I'm using MacOS and SFTPGo installed using brew. Commands: brew install sftpgo
cat > /tmp/sftpgo-initprovider-data.json << EOF
{
"users": [
{
"id": 1,
"status": 1,
"username": "test",
"password": "xxxxxxxx",
"home_dir": "/Users/ruzickap/Pictures/ftp",
"permissions": {
"/": [
"*"
]
}
}
],
"folders": [],
"admins": [
{
"id": 1,
"status": 1,
"username": "admin",
"password": "xxxxxxxx",
"email": "",
"permissions": [
"*"
],
"filters": {}
}
],
"version": 7
}
EOF
sftpgo initprovider --config-dir /usr/local/var/sftpgo --loaddata-from /tmp/sftpgo-initprovider-data.json
cat > /usr/local/etc/sftpgo/sftpgo.json << EOF
{
"ftpd": {
"bindings": [
{
"port": 21
}
]
},
"sftpd": {
"bindings": [
{
"port": 0
}
]
}
}
EOF
sudo brew services restart sftpgo When I upload some file using FTP they are always owned by Is it docmented somewhere how to change the user owner to something else than Line 83 in 8be8343 (I was not able to find the details...) Thank you... |
Beta Was this translation helpful? Give feedback.
Answered by
drakkan
Jan 15, 2023
Replies: 1 comment 1 reply
-
set uid/gid from the edit user page or using the REST API |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ruzickap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set uid/gid from the edit user page
or using the REST API