Home
last modified time | relevance | path

Searched refs:userid (Results 1 – 21 of 21) sorted by relevance

/original-bsd/bin/rcp/
H A Dutil.c81 susystem(s, userid) in susystem() argument
82 int userid; in susystem()
95 (void)setuid(userid);
H A Drcp.c65 uid_t userid; variable
159 if ((pwd = getpwuid(userid = getuid())) == NULL)
160 errx(1, "unknown user %d", (int)userid);
166 (void)setuid(userid);
172 (void)setuid(userid);
266 (void)susystem(bp, userid);
294 (void)setuid(userid);
318 if (susystem(bp, userid))
352 (void)seteuid(userid);
/original-bsd/old/sh/
H A Dmain.c105 REG INT userid; local
120 userid=getuid(); local
124 THEN dfault(&ps1nod, (userid?stdprompt:supprompt));
/original-bsd/usr.sbin/lpr/lpr/
H A Dlpr.c71 static int userid; /* user id */ variable
240 userid = getuid();
241 if (userid != DU || person == 0) {
242 if ((pw = getpwuid(userid)) == NULL)
249 if (RG != NULL && userid != DU) {
266 if (userid && stat(buf, &stb) == 0 && (stb.st_mode & 010))
482 if (fchown(f, userid, -1) < 0) {
/original-bsd/usr.bin/rdist/
H A Dmain.c43 int userid; /* user's user ID */ variable
61 pw = getpwuid(userid = getuid());
166 seteuid(userid);
H A Dserver.c1010 extern int userid;
1012 uid = userid;
1013 if (userid == 0) {
1046 if (userid && gid >= 0) {
1296 extern int userid, groupid;
1315 setuid(userid);
H A Ddocmd.c181 extern int userid;
226 seteuid(userid);
/original-bsd/games/larn/
H A Dscores.c151 if (winr[i].suid == userid) in hashewon()
174 if (winr[i].suid == userid) /* look for players winning entry */
350 for (i=0; i<SCORESIZE; i++) if (sco[i].suid == userid) sco[i].score=0;
354 for (i=0; i<SCORESIZE; i++) if (winr[i].suid == userid)
363 for (i=0; i<SCORESIZE; i++) if (sco[i].suid == userid)
392 p->hardlev=c[HARDGAME]; p->suid=userid;
418 p->suid=userid; p->level=level;
H A Dmain.c9 int userid; /* the players login user id number */ variable
158 userid = geteuid(); /* obtain the user's effective id number */
160 userid = getplid(logname); /* obtain the players id number */
162 if (userid < 0) { write(2,"Can't obtain playerid\n",22); exit(); }
561 if (userid!=wisid) in parse()
H A DREADME56 Note regarding the wizard id: If you are using userid's, then WIZID must be
57 set to the userid of the person who can become wizard. If you are using
H A Dheader.h346 extern int dayplay,enable_scroll,srcount,yrepcount,userid,wisid,lfd,fd;
H A DFixed.Bugs66 the game used the userid to order the scoreboard, thus only one scoreboard
67 entry was allowed for each userid. If the compile time symbol UIDSCORE
/original-bsd/local/toolchest/ksh/sh/
H A Ddefs.c80 int userid; variable
H A Dmain.c120 userid=getuid();
162 if(userid!=euserid || getgid()!=egroupid)
H A Dservice.c485 if((euserid=geteuid()) != userid)
578 if((euserid=geteuid()) != userid)
H A Ddefs.h366 extern int userid;
H A Dhistory.c138 if(userid==0 && login_sh) in hist_open()
H A Dmacro.c568 if(userid)
/original-bsd/usr.sbin/sendmail/doc/op/
H A Dspell.ok618 userid
/original-bsd/games/larn/datfiles/
H A Dlarn.help119 characters. Each player (by userid or playerid, see UIDSCORE in Makefile)
/original-bsd/usr.sbin/sendmail/cf/m4/
H A Dproto.m4313 # default UID (can be username or userid:groupid)