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

Mailing List Archive: OpenSSH: Bugs

[Bug 2036] New: Add %g user group name parameter for ChrootDirectory

 

 

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


bugzilla-daemon at mindrot

Aug 18, 2012, 12:28 PM

Post #1 of 1 (132 views)
Permalink
[Bug 2036] New: Add %g user group name parameter for ChrootDirectory

https://bugzilla.mindrot.org/show_bug.cgi?id=2036

Priority: P5
Bug ID: 2036
Assignee: unassigned-bugs [at] mindrot
Summary: Add %g user group name parameter for ChrootDirectory
Severity: enhancement
Classification: Unclassified
OS: Linux
Reporter: sue [at] pennine
Hardware: ix86
Status: NEW
Version: 6.0p1
Component: Miscellaneous
Product: Portable OpenSSH

Created attachment 2182
--> https://bugzilla.mindrot.org/attachment.cgi?id=2182&action=edit
Patch which implements the functionality described above.

When chrooting users it can be useful to be able to use a user's group
name as a parameter when constructing the chroot directory path for a
user. The code already supports parameter expansion for the user name
(%u) and home directory (%h).

So, this can be implemented by a fairly simple extension of the
existing code. I have attached a patch which adds the parameter %g
which expands to the user's group name if used in a ChrootDirectory
configuration line in sshd_config. E.g. ChrootDirectory
/opt/domains/%g If user foo with group bar connects via ssh then they
will be chroot'd to /opt/domains/bar

TODO: update the man page

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

OpenSSH bugs 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.