Searched defs:uid (Results 1 - 25 of 383) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetname.c64 uid_t uid; local
72 uid = getuid();
78 || p->pw_uid != uid
80 if ((p = getpwuid(uid)))
89 if (uid > 0) {
92 sprintf (logname, "%d", uid);
/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c51 * Search the passwd file for a uid. Return name through ref parameter
57 getname(uid_t uid, char namebuf[]) argument
61 if (uid == (uid_t)-1) {
66 pw = getpwuid(uid);
/illumos-gate/usr/src/cmd/getent/
H A Ddogetpw.c42 uid_t uid; local
54 * a uid, if it can be completely transformed
55 * to a long integer. So we check for uid in
61 uid = strtoul(*list, &ptr, 10);
63 ((pwp = getpwuid(uid)) == NULL)) {
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_getuid.c27 * Routines to set gssd value of uid and replace getuid libsys call.
53 set_gssd_uid(uid_t uid) argument
79 printf(gettext("set_gssd_uid called with uid = %d\n"), uid);
82 * nfsd runs as UID 1, so upcalls triggered by nfsd will cause uid to
85 if (uid == 1)
86 uid = 0;
93 krb5_cc_uid = uid;
99 * Switch uid and set the saved set-uid t
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_selfcred.h51 uid_t uid; member in struct:nscd_fork
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rquota.c72 int uid; local
86 uid = getxdr_long();
90 uid, buff);
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Duid.c42 static boolean_t isreserveduid(uid_t uid);
45 * Find the highest unused uid. If the highest unused uid is "stop",
51 uid_t uid = start; local
59 if (pwd->pw_uid >= uid) {
64 uid = pwd->pw_uid + 1;
74 while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */
75 uid++;
76 *ret = uid;
85 isreserveduid(uid_t uid) argument
97 uid_t uid; local
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.h45 uid_t uid; /* User id */ member in struct:smb_passid
/illumos-gate/usr/src/cmd/logname/
H A Dlogname.c53 uid_t uid; local
56 uid = getuid();
57 pass = getpwuid(uid);
61 (void) snprintf(uidbuf, sizeof (uidbuf), "%u", uid);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c17 * safechown changes the owner ship of src to uid. If the mode parameter
24 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument
57 /* we should probably get the primary group id for uid here */
58 if (fchown(fd, uid, gid)) {
79 fprintf(stderr, "Usage %s [-u uid] [-m mode] source\n", prg);
87 uid_t uid = 0; local
95 uid = atoi(optarg);
105 if (safechown(argv[optind], uid, getgid(), mode)) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dimport_name.c131 uid_t uid; local
155 uid = *(uid_t *) input_name_buffer->value;
157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
162 uid = atoi(tmp);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpw.c48 getpw(uid_t uid, char buf[]) argument
96 if (n == uid) {
H A Dgetpwnam.c70 getpwuid(uid_t uid) argument
75 getpwuid_r(uid, b->result, b->buffer, b->buflen));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dchown.c36 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) argument
38 return (syscall(SYS_fchownat, fd, name, uid, gid, flags));
43 chown(const char *name, uid_t uid, gid_t gid) argument
46 return (syscall(SYS_chown, name, uid, gid));
48 return (fchownat(AT_FDCWD, name, uid, gid, 0));
54 lchown(const char *name, uid_t uid, gid_t gid) argument
57 return (syscall(SYS_lchown, name, uid, gid));
59 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW));
65 fchown(int filedes, uid_t uid, gid_t gid) argument
68 return (syscall(SYS_fchown, filedes, uid, gi
[all...]
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dallowed.c207 tsol_check_admin_auth(uid_t uid) argument
212 p = getpwuid(uid);
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dlog_auto.h21 DBT uid; member in struct:_log_register_args
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/
H A Dlsacl.c100 uid_t uid; local
136 error = smbfs_acl_sd2zfs(sd, acl, &uid, &gid);
148 if (uid == (uid_t)-1)
151 printf("owner: %u\n", uid);
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c53 uid_t uid; local
55 uid = getuid();
57 perror("cannot determine adm's uid"), exit(1);
60 if (uid == ROOT || uid == admuid) {
/illumos-gate/usr/src/cmd/bnu/
H A Dexpfile.c51 uid_t uid; local
64 if ((user[0]=='\0') || (gninfo(user, &uid, file) != 0)){
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dstore_forw_creds.c53 uid_t uid; local
60 uid = getuid();
103 (void) seteuid(uid);
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcsys.h48 uid_t uid; member in struct:krpc_revauth_1
55 uid32_t uid; member in struct:krpc_revauth_132
67 #define uid_1 krpc_revauth_u.r.uid
/illumos-gate/usr/src/uts/common/syscall/
H A Dchown.c58 fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag) argument
64 if (uid != (uid_t)-1 && !VALID_UID(uid, zone) ||
68 vattr.va_uid = uid;
83 chown(char *path, uid_t uid, gid_t gid) argument
85 return (fchownat(AT_FDCWD, path, uid, gid, 0));
89 lchown(char *path, uid_t uid, gid_t gid) argument
91 return (fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW));
95 fchown(int fd, uid_t uid, uid_t gid) argument
97 return (fchownat(fd, NULL, uid, gi
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtuid.c27 * uid number -> name
56 * return uid name given uid number
60 fmtuid(int uid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
78 if (pw = getpwuid(uid))
86 else if (uid == 0)
90 name = fmtbuf(z = sizeof(uid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(uid), uid);
[all...]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c115 uid_t uid; local
125 uid = crgetuid(cr);
136 xdr_uid_t(xdrs, &uid) &&
150 uid_t uid; local
160 uid = crgetuid(cr);
167 xdr_uid_t(xdrs, &uid) &&
/illumos-gate/usr/src/cmd/tsol/updatehome/
H A Dupdatehome.c98 uid_t uid; local
152 uid = getuid();
154 if ((pwd = getpwuid(uid)) == (struct passwd *)0) {
157 gettext("Unable to get password entry for uid %d.\n"), uid);

Completed in 48 milliseconds

1234567891011>>