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
> 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
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.
>
>
> 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,
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
5 matches
Mail list logo