Re: Check whether the user is local user

2000-05-24 Thread John Pearson
On Wed, May 24, 2000 at 02:43:04PM +0800, Wan Hing Wah wrote > Is it any method that I can check whether the user is a local user > (that mean use the computer by sitting in front of the computer > physically).It maybe useful so that I can make a program which is setuid > to root and check whether

Re: Check whether the user is local user

2000-05-24 Thread Oswald Buddenhagen
> However,does it work if people from remote login to my machine,and then > type > "telnet 127.0.0.1" to login again? > well ... then then host field would be the local address. but it would be non-empty. as i already said, this may be configuration-dependent. just try it. -- Hi! I'm a .signatu

Re: Check whether the user is local user

2000-05-24 Thread Wan Hing Wah
On Wed, 24 May 2000, Oswald Buddenhagen wrote: > > Is it any method that I can check whether the user is a local user > try "man utmp". > > for scripts: the output of "who" has a non-empty last field, if the user > is non-local. however, this may vary from configuration to configuration. > >

Re: Check whether the user is local user

2000-05-24 Thread Oswald Buddenhagen
> Is it any method that I can check whether the user is a local user try "man utmp". for scripts: the output of "who" has a non-empty last field, if the user is non-local. however, this may vary from configuration to configuration. -- Hi! I'm a .signature virus! Copy me into your ~/.signature,

Check whether the user is local user

2000-05-24 Thread Wan Hing Wah
Is it any method that I can check whether the user is a local user (that mean use the computer by sitting in front of the computer physically).It maybe useful so that I can make a program which is setuid to root and check whether the user is local and grant permission to some physical device... P