Unix Technical Forum

login -p -- 1

This is a discussion on login -p -- 1 within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> The subject line showed up in a ps -ax listing about 5 minutes ago. Since the -- option is ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:49 AM
dave
 
Posts: n/a
Default login -p -- 1

The subject line showed up in a ps -ax listing about 5 minutes ago.
Since the -- option is not mentioned in man login, I tried to google,
but the minus signs don't google well. What do the '--' and the '1'
arguments mean?

Thanks,
Dave Feustel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:49 AM
Marco S Hyman
 
Posts: n/a
Default Re: login -p -- 1

dave <daf@a64.comcast.net> writes:

> The subject line showed up in a ps -ax listing about 5 minutes ago.
> Since the -- option is not mentioned in man login, I tried to google,


The "--" option is a somewhat standard part of option processing that
says "I'm finished with options", the rest of the command line are
non-option arguments. See getopt(3), the library function used by
most software to process command line options, for more information.

> but the minus signs don't google well. What do the '--' and the '1'
> arguments mean?


The login(1) man page says that the non-option argument is "user",
so I'd expect it to be a user name. You'll need to find out what
process invoked login to see why that process passed a user named 1.

// marc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com