ssh , scp umask
ssh , scp umask
I have tried every thing... the various files in the ssh profile.. the adding of umask in the config files, hopping on one leg, and even as a last resort dressing up as elvis and performing a juggling act whilst on a uni cycle..
[root@localhost .ssh]# pwd
/root/.ssh
[root@localhost .ssh]# ls -l
total 16
-rwx------ 1 root root 19 Apr 25 16:11 environment
-rw-r--r-- 1 root root 3837 Apr 25 15:48 known_hosts
-rwxr-xr-x 1 root root 19 Apr 25 16:08 rc
[root@localhost .ssh]# cat environment rc
/usr/bin/umask 755
/usr/bin/umask 755
[root@localhost .ssh]#
Ssh Config Umask
This involves setting the umask in sshdconfig in the Subsystem line, however, it doesn’t work for chrooted users as the umask gets set, ssh session starts and the chroot recreates the umask info (this is how I understand it, anyway). So if you’re using chroot for users, you probably have something similar to this in your sshdconfig. Free on app store. I am trying to setup an scp receiver that allows select users, based on ssh keys, to scp files to a specific server as a user different than themselves. This is to satisfy access restrictions. Adobe effects cc. The SSHFS mount is done via user3@sshfsrv with option allowother. Stylish firefox. On the server, the shared directory has permissions user3 (owner) rwx and group (team) rwx, while other have r-x permissions. The gid sticky bit is set with chmod g+s. We removed all ACLs for the umask-focused configuration.