Displaying 6 results from an estimated 6 matches for "uidstr".
Did you mean:
uids_r
2015 Aug 05
2
[PATCH 1/1] uid for expansion in ControlPath
...int ac, char **av)
{
int i, r, opt, exit_status, use_syslog, config_test = 0;
char *p, *cp, *line, *argv0, buf[PATH_MAX], *host_arg, *logfile;
- char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];
+ char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV],
+ uidstr[11];
char cname[NI_MAXHOST];
struct stat st;
struct passwd *pw;
@@ -1122,6 +1123,7 @@ main(int ac, char **av)
strlcpy(shorthost, thishost, sizeof(shorthost));
shorthost[strcspn(thishost, ".")] = '\0';
snprintf(portstr, sizeof(portstr), "%d", options.port);
+...
2015 Aug 21
7
[Bug 2449] New: uid for expansion in ControlPath
https://bugzilla.mindrot.org/show_bug.cgi?id=2449
Bug ID: 2449
Summary: uid for expansion in ControlPath
Product: Portable OpenSSH
Version: 7.0p1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...e.
diff --git a/sshd.c b/sshd.c
index 06cb81f..ba0207f 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2077,6 +2077,31 @@ main(int ac, char **av)
/* the monitor process [priv] will not return */
}
+ /* Process per-user options */
+ if (options.fwd_opts.streamlocal_bind_root_directory != NULL) {
+ char uidstr[32], *cp;
+ struct stat st;
+
+ snprintf(uidstr, sizeof(uidstr), "%d", authctxt->pw->pw_uid);
+
+ cp = tilde_expand_filename(
+ options.fwd_opts.streamlocal_bind_root_directory,
+ authctxt->pw->pw_uid);
+ free(options.fwd_opts.streamlocal_bind_root_directory);
+ optio...
2016 Mar 06
0
Segmentation Fault when trying to set root samba password, IPA as a backend
...mods = 0x0
user = 0x80036600
filter = 0x80028468 "(&(uid=ldap09)(objectClass=posixAccount))"
username = 0x0
homedir = 0xb7dadf10 <incomplete sequence \370\215>
gidstr = 0x800338f0 "\200\064f\267\200\064f\267"
uidstr = 0xb7185e30 <incomplete sequence \355>
shell = 0x1 <error: Cannot access memory at address 0x1>
dn = 0x0
group_sid = {sid_rev_num = 101 'e', num_auths = 0 '\000',
id_auth = "\000\000!\330\027\267", sub_auths = {0, 0,
3084...
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up
a tunnel using ssh, e.g.:
ssh -f -o Tunnel=ethernet <server_ip> true
I was wondering if there's a way to subsequently acquire the names
of the local and remote tun/tap interfaces (e.g., using the default
"-w any:any") for subsequent automatic tunnel configuration, e.g.:
ip link set $TapDev up
ip link set
2016 Mar 06
2
Segmentation Fault when trying to set root samba password, IPA as a backend
On Fri, Mar 04, 2016 at 04:16:44PM +0000, Rowland penny wrote:
> On 04/03/16 09:58, Volker Lendecke wrote:
> >On Fri, Mar 04, 2016 at 10:53:17AM +0100, Volker Lendecke wrote:
> >>On Wed, Mar 02, 2016 at 09:23:34AM +0000, Rowland penny wrote:
> >>>OK, here is the output:
> >>Can you try the attached (UNTESTED!) patch?
> >>
> >>Thanks,
>