Some persional opinions #156
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi~
Having using ftp server for a while,here are some my suggestion:
file's ownership
I run ftp server on win10 and use ftp client connect to it,when i type dir command,got this:
the owner and group of these file becomes "root" which was specified by the server options,it was not what i expected.If running on linux platform,it should use os.Stat(fileName) to get the real owner and group,instead showing the user and group specified by server options.Sadly,i haven't found a good way to get file's ownership on windows,a relative discuss: https://stackoverflow.com/questions/38840415/go-golang-file-uid-on-windows
authentication control
Users are currently authenticated using the CheckPassswd(),have you ever thought what to do if you need to add a new user? Obviously,you have to add a new use into your server's options and restart your server.Is it possible to use a Lightweight database(sqlite3...etc) or with the help of os to verify the user want to log in.Such as i create a Job account on linux by useradd command, it should use the passwd record in /etc/passwd to log in instead of the passwd specified by server's options.
Look forward to your reply,thanks®ards
You can find the two interfaces
Auth
andPerm
when creating a ftp server. You can implement them yourself to satisfy the requirements.Do you have any plan on adding these features into ftp server ?