Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

can you stop the trouble with file masks and default permissions?

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


karlis.repsons at gmail

Jun 12, 2009, 7:34 AM

Post #1 of 1 (552 views)
Permalink
can you stop the trouble with file masks and default permissions?

Hello!

Please take a look at this problem:

1. at sshd_config:
Subsystem sftp internal-sftp
Match group sftponly
         ChrootDirectory /public
         X11Forwarding no
         AllowTcpForwarding no
         ForceCommand internal-sftp

2. at client's bash:
sshfs server:/ /home/kr/krpub-mount -o uid=$(id -u kr) -o gid=$(id -g kr) -o
allow_other -o default_permissions -o reconnect -o no_check_root -o
umask=0002

touch /home/kr/krpub-mount/writeable_dir/1
ls -la /home/kr/krpub-mount/writeable_dir/1
-rwxrwxr-x 1 kr kr 0 2009-06-12 08:51 krpub-mount/writeable_dir/1

3. at server:
ls -la /public/writeable_dir/1
-rw------- 1 kr kr 0 2009-06-12 08:51 1

Removing " -o umask=0002" just shows the actual, too strict permissions. Its
ok with the umask at client.

And here is the trouble. How can those permissions be controlled on server, if
internal-sftp is used with ChrootDirectory?

If there was a way to set minimum permissions in sshd_config for newly created
files, it would solve a problem with konqueror, which is eating up the group
write bit and causes much of pain.

Any ideas?

Regards,
Kārlis
Attachments: signature.asc (0.19 KB)

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.