-
|
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 sftpgoWhen 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.
Replies: 2 comments 1 reply
-
|
set uid/gid from the edit user page or using the REST API |
Beta Was this translation helpful? Give feedback.
-
|
Hello, set uid/gid from the edit user page not present in 2.7... I try with rest api, it's ok. |
Beta Was this translation helpful? Give feedback.

set uid/gid from the edit user page
or using the REST API