mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* sftp: give user store accounts without a Uid a non-root id An entry that leaves out Uid decoded to 0, and Uid 0 skips every Permissions check, so a read-only account could write and delete. Generate a regular id for it the way NewUser does, and default an omitted Gid to the Uid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: test that an omitted Uid or Gid does not load as root Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: keep the default Uid of an account stable across loads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: test that a default Uid survives Reload and a new store Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: keep a default Uid off the ids other accounts use Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: test that a default Uid skips ids other accounts use Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: refuse a user store with no free id for an omitted Uid When every id in the default range is taken, loadUsers now fails instead of reusing a taken id, and it fails before replacing the loaded users so a Reload keeps the previous accounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * sftp: test that a full id range rejects the store and keeps old users Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>