Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everyone! you do a query, I have configured sftp access to some users on a debian web server. The issue is that I have configured users and chroot to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2014
    Posts
    1

    Sftp - Limit use of chmod


    Hello everyone! you do a query, I have configured sftp access to some users on a debian web server. The issue is that I have configured users and chroot to only be able to see their own folder. Users have to upload files and delete them. The problem we want to solve is that I want the users can not change the permissions of the files they upload or folders they create. Is there any way to avoid running chmod via SFTP?

    Thank you!

    Information about the software I use:
    I installed everything via aptitude. Working on a command line.
    DEBIAN: 2.6.32-5-686 # 1 SMP Tue May 13 16:33:32 UTC 2014 i686 GNU / Linux
    Openssh: openssh-server 1:5.5 p1-6 + squeeze5

  2. #2
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    370
    There is a "Subsystem" sshd_config option. I'm not quite sure how it works though. Maybe there's a way to make chmod call a dummy routine that does nothing and returns happy.

    Otherwise it may involve compiling your own server and tweaking the code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •