Debian 6
I've setup /etc/ssh/sshd_config as such:
Subsystem sftp internal-sftp -u 0002
Match Group sftp
ChrootDirectory %h
ForceCommand internal-sftp -u 0002
AllowTcpForwarding no
Match
I get the users home to /var/www and chown the owner to root:root.
All good. The user can access via sftp and alter subdirectories.
I have an Ubuntu serve that I'm connecting to via SFTP (and also an SSHFS mount locally).
I've got a number of people sending files to me in different directory structures, and users on many different groups who need access to these incoming paths.
My problem is that umask assumes a default of 666 for files. No execute bit, meaning that my users can't even see the incoming folders.
I've got a development Ubuntu system for which I have several users: myself (with full sudo) and about 5 other users. (I've set up the system so everything in this respect is still at its default setting)
I'm trying to set the system up so that multiple people can collaborate in a single directory by using grouing and I want the default permissions to be 664.
Dear Community
I have the following problem:
Basically it should be possible to alter the Umask of newly created files over sftp using the following command in the sshd_config file
Subsystem sftp internal-sftp -u 0007
Unfortunately this does not work. Using the libpam_umask package in the /etc/pam.d/sshd does not wrok either.
I tried all the available tutorials out there.
I have a shared EXT4 drive with 777 permissions for all users to use.
Problem is :
When a user creates a new folder / file, it gets 644.
I guess that is because of the umask for that user.
Now, I want to have all the new content with 777.
Hi
I see that I can use umask to set the default permissions on files created by a script like so -
Code:
umask u=rwx,g=rwx,o=
So that would grant rwx to the user and group.
How can I control which permissions will be set for the base directory when I clone with git?
Hi folks; I would like to set the umask for a specific user different to all other users. I need this to apply to all files created by the user, no matter how - i.e. not only through a shell login. Is there any suitable way to do this? TIA for any help.