From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,997003d13ae82b8a,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,997003d13ae82b8a,start X-Google-Attributes: gidfee84,public From: sstiasni@irb.hr (Sasa Stiasni) Subject: Re: whoami-Intruder Alert problems Date: 1998/05/21 Message-ID: #1/1 X-Deja-AN: 355354153 References: <3563846A.71084E9B@eden.com> Organization: IRB,Zagreb,Croatia Reply-To: sstiasni@irb.hr Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 On Wed, 20 May 1998 20:33:32 -0500, Meme Greathouse wrote: >I am learning sysadmin duties on a system running DEC UNIX 4.0. Using >dxaccounts, I created several user accounts, with primary group faculty >(GID=30). Upon logging on as user greathou (UID=202), I get some >interesting responses to user ID commands: > >% ls -l >total 7 >drwxr-xr-x 2 202 30 512 May 18 18:26 Test/ >drwxr-xr-x 2 202 30 512 Dec 29 21:48 bin/ >-rw-r--r-- 1 202 30 1315 May 15 16:17 check >-rw-rw-r-- 1 202 30 123 May 13 18:26 mailfile >-rw-r--r-- 1 202 30 1684 May 14 10:53 richard This should be user group instead of number, something is wrong with your system. Do you have C2 installed? If so, try as root: # /usr/tcb/bin/authck -a and see if it complains >% >% who >root console May 20 17:24 >root :0 May 20 17:24 >root ttyp2 May 20 17:42 >greathou ttyp3 May 20 18:31 >root ttyp0 May 20 17:24 >% >% whoami >Intruder alert. Interesting :-) Did you try typing 'alias whoami' or '\whoami' instead of just 'whoami'? :-) >% >% finger greathou >Login name: greathou In real life: ??? >% >% id greathou >User not found in /etc/passwd file > It is obvious that user 'greathou' doesn't exist... I don't understand how can you log in at all :-) >Instead of displaying user name and group name, 'ls -l' returns only >user ID and group ID. And the 'whoami' and 'id' commands are equally >confusing. Also, the user 'greathou' is listed in /etc/passwd. If you have C2 security it is important that certain user have his/hers data in tcb auth files... > >One other question, is it necessary in DEC UNIX to list users in their >primary group line of /etc/group? The help pages that come with No. >dxaccounts says that primary group members need not be listed. I have >tried it both ways in this case, with the same result for 'whoami' and >'id'. Sasa -- mailto: sstiasni@irb.hr URL: http://titan.fpz.hr/~sstiasni ICQ UIN #: 12844140