The problem iis that I can not access the ssh config on the server side. Also,
i prefer when my user account has umask of 077. When I upload files to remote,
whatever -oumask=M i supply, the files are uploaded with permissions based on
my LOCAL umask. If I am mounting a common/shared folder, it is a problem.
chmodding each file manually post-upload is not fun, so I was thinking maybe
FUSE/sshfs could do that instead. For example, CIFS can do this kind of
mapping.
What is the problem with chmod for each file after upload? Are there any other
options? Also, AFAIK, Tectia ssh client has this sort of functionality,
probably because windows does not have umasks, but still.
BR,
Alex.
tiistai 24 huhtikuu 2012 09:29:23 Miklos Szeredi kirjoitti:
> Alex Pyattaev <alex.pyattaev@...> writes:
> > Hello!
> > there is an old patch in the internet here
> > http://andre.frimberger.de/wp-content/uploads/downloads/2010/08/sshfs-2.2-
> > permissions-workaround.patch.txt
> > which allows to specify fmask and dmask for the uploaded files in a way
> > that is not dependent on the local user's umask setting. Is there any
> > chance of this getting merged into the production version?
>
> In its current form, no. I don't like the chmod after open/mkdir.
>
> What exactly do you need this for?
>
> There's the -oumask=M option for sshfs.
>
> There's the -u option for sftp-server (change the Subsystem line in
> /etc/ssh/sshd_config to something like "Subsystem sftp
> /usr/lib/ssh/sftp-server -u0").
>
> The only thing missing is separate mask for files and directories. Such
> a patch I can accept for fuse.
>
> Thanks,
> Miklos
|