The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Changing the sftp default permissions? by Freakazoid 2008-08-27 08:43:05
running OpenSSH 5.1 on a machine* and I need to change the default permissions files are created from 644 to 664. The caveat is that I can't use anything like .bashrc as these users don't have login permissions, they're restricted to SFTP only. (the shell is set to /bin/false)

I'm restricting them to sftp like thus:


Subsystem sftp internal-sftp

Match Group sftponly
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no

anyone have any ideas? (i'll continue to prod google in the meantime)

*ubuntu server 8.04, compiled the updated version myself: needed version 5.1 for some features it has (chrootdirectory and sftp only limitations)
[ Reply ]
  umask? (n/t) by vdp2008-08-27 09:51:29
    note the "can't use anything like .bashrc" by Freakazoid2008-08-27 12:06:08
      This was a hint by vdp2008-08-27 13:30:44
        I think PAM could definitely pull it off by hobbs2008-08-27 14:31:29
          yikes, that could get ugly... by Freakazoid2008-08-27 15:10:46
  Would default acls help? by pstradomski2008-08-27 13:09:17

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)