Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | OpenSSH 5.0p1 / sftp / chroot / umask |
|---|---|
| Date: | Thu, 17 Apr 2008 16:58:34 -0400 |
Hi !
I'm running OpenSSH 5.0p1 under Debian Etch. My system is VERY
minimal, it only has OpenSSH on it.
My 'chrooted' sftp is working, but I would like to know how to set the
'umask' for my sftp users.
Here's my configuration...
--
sshd_config
# override default of no subsystems
Subsystem sftp internal-sftp
Match Group chrooted
ChrootDirectory %h
ForceCommand internal-sftp
--
/etc/passwd
test:x:1002:104::/chrooted/:/bin/sh
--
/etc/group
chrooted:x:104:
--
When my user 'test' logs on the sftp server, it works great; he's
chrooted in /chrooted. The problem is that when he creates
files/directories, the umask isn't what I want.
How can I change the umask!? I tried to put a .profile file in
/chrooted... did not work.
Thanks,
- Mike
akaris@gmail.com
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Opensshd connection lost, Russell Fulton |
|---|---|
| Next by Date: | not be logged out when I am forced to change password, Paolo Ranzanici |
| Previous by Thread: | Opensshd connection lost, Marco Ferreira |
| Next by Thread: | not be logged out when I am forced to change password, Paolo Ranzanici |
| Indexes: | [Date] [Thread] [Top] [All Lists] |