Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-15 Thread James Griffin
* Jérémie Courrèges-Anglas j...@wxcvbn.org [2013-09-15 04:22:08 +0200]: Jeffrey Walton noloa...@gmail.com writes: On Sat, Sep 14, 2013 at 10:08 PM, Philip Guenther guent...@gmail.com wrote: On Sat, Sep 14, 2013 at 7:00 PM, Jeffrey Walton noloa...@gmail.com wrote: ... Yeah, I should

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-15 Thread Alexander Hall
On 09/15/13 01:01, Jeffrey Walton wrote: On Sat, Sep 14, 2013 at 6:56 PM, Alexander Hall alexan...@beard.se wrote: On 09/15/13 00:41, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. What did you expect from that command?

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-15 Thread Stuart Henderson
On 2013-09-15, Jeffrey Walton noloa...@gmail.com wrote: Thanks Shawn. Sorry to go offlist. So, I'm trying to do some initial testing. I'm on a MacBook with OpenBSD in a VM. All I want to do is run my compiler over some source files. MacBooks have a funky keyboard, and when I try to use

How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. Now I'm stuck a loop of: Enter username[]: When I try and add my name, I'm told its there. When I try to RETURN (no name), I looped back to the prompt. I have to break out with a ^C. After the ^C

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Alexander Hall
On 09/15/13 00:41, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. What did you expect from that command? And why? Now I'm stuck a loop of: Enter username[]: When I try and add my name, I'm told its there. When I

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 6:56 PM, Alexander Hall alexan...@beard.se wrote: On 09/15/13 00:41, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. What did you expect from that command? And why? I'd expect the user jwalton to

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Martin Schröder
2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo man visudo man adduser man group Best Martin

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 7:08 PM, Martin Schröder mar...@oneiros.de wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo man visudo man adduser man group Thanks Martin.

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 7:11 PM, Kenneth R Westerback kwesterb...@rogers.com wrote: On Sat, Sep 14, 2013 at 06:41:58PM -0400, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. Now I'm stuck a loop of: Enter username[]:

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread William Ahern
On Sun, Sep 15, 2013 at 01:08:05AM +0200, Martin Schröder wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo man visudo man adduser man group Are any of those directly useful for adding a group to a user's supplementary groups? I'd

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 7:08 PM, Martin Schröder mar...@oneiros.de wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo It appears to lack information on adding a user (I went through this man page before asking the question). Then, I went to

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Martin Schröder
2013/9/15 Jeffrey Walton noloa...@gmail.com: man visudo I don't know vi. I do known emacs, but its not on this system so I Then learn it. This is unix. You really should use visudo to edit /etc/sudoers, not an editor. Best Martin PS: su - should also work.

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Shawn K. Quinn
On Sat, Sep 14, 2013, at 06:47 PM, Martin Schröder wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: man visudo I don't know vi. I do known emacs, but its not on this system so I Then learn it. This is unix. You really should use visudo to edit /etc/sudoers, not an editor. Note that

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread anton . super . computer
On Sat, Sep 14, 2013 at 07:42:46PM -0400, Jeffrey Walton wrote: man visudo I don't know vi. I do known emacs, but its not on this system so I can't edit /etc/sudo by hand. I tried to add emacs through pkg_add, but it appears broke. Surely emacs has been ported to every *nix system in

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Kenneth R Westerback
On Sat, Sep 14, 2013 at 06:41:58PM -0400, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. Now I'm stuck a loop of: Enter username[]: When I try and add my name, I'm told its there. When I try to RETURN (no name),

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
Thanks Shawn. Sorry to go offlist. So, I'm trying to do some initial testing. I'm on a MacBook with OpenBSD in a VM. All I want to do is run my compiler over some source files. MacBooks have a funky keyboard, and when I try to use visudo to move the cursor around, some of the arrow keys don't

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jérémie Courrèges-Anglas
Jeffrey Walton noloa...@gmail.com writes: On Sat, Sep 14, 2013 at 7:08 PM, Martin Schröder mar...@oneiros.de wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo It appears to lack information on adding a user (I went through this man page

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jérémie Courrèges-Anglas
Jeffrey Walton noloa...@gmail.com writes: Thanks Shawn. Sorry to go offlist. So, I'm trying to do some initial testing. I'm on a MacBook with OpenBSD in a VM. All I want to do is run my compiler over some source files. Parallels? MacBooks have a funky keyboard, and when I try to use

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Juan Francisco Cantero Hurtado
On Sun, Sep 15, 2013 at 02:28:15AM +0200, Jérémie Courrèges-Anglas wrote: Jeffrey Walton noloa...@gmail.com writes: On Sat, Sep 14, 2013 at 7:08 PM, Martin Schröder mar...@oneiros.de wrote: 2013/9/15 Jeffrey Walton noloa...@gmail.com: I wanted to add myself to the sudo group. man sudo

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Brian McCafferty
On 09/14/13 18:41, Jeffrey Walton wrote: I'm trying to add myself to sudoers. I used `su -` to get root, and then `adduser jwalton sudo`. Now I'm stuck a loop of: Enter username[]: When I try and add my name, I'm told its there. When I try to RETURN (no name), I looped back to the prompt.

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 9:20 PM, Brian McCafferty br...@mccafferty.ca wrote: On 09/14/13 18:41, Jeffrey Walton wrote: Just in case you didn't notice, when you first install you should have mail. $mail It will describe reading afterboot and many other things, even an example of adding the

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Marc Espie
On Sat, Sep 14, 2013 at 09:28:07PM -0400, Jeffrey Walton wrote: On Sat, Sep 14, 2013 at 9:20 PM, Brian McCafferty br...@mccafferty.ca wrote: On 09/14/13 18:41, Jeffrey Walton wrote: Just in case you didn't notice, when you first install you should have mail. $mail It will describe

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Ted Unangst
On Sat, Sep 14, 2013 at 20:14, Jeffrey Walton wrote: I really don't get why this shit is so f**k'ing difficult. How is running around with a root terminal open more secure than exec'ing one command under sudo??? I think you're going to be in for a long day. It's not really very hard to drive

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 9:52 PM, Ted Unangst t...@tedunangst.com wrote: On Sat, Sep 14, 2013 at 20:14, Jeffrey Walton wrote: I really don't get why this shit is so f**k'ing difficult. How is running around with a root terminal open more secure than exec'ing one command under sudo??? I think

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 9:47 PM, Marc Espie es...@nerim.net wrote: On Sat, Sep 14, 2013 at 09:28:07PM -0400, Jeffrey Walton wrote: On Sat, Sep 14, 2013 at 9:20 PM, Brian McCafferty br...@mccafferty.ca wrote: On 09/14/13 18:41, Jeffrey Walton wrote: Just in case you didn't notice, when

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread William Ahern
On Sat, Sep 14, 2013 at 07:42:46PM -0400, Jeffrey Walton wrote: snip And 'usermod -G sudo jwalton' does not work, either. It errors with Can't append group sudo for user jwalton. This stuff really should not be this hard... I'm going to go out on a limb here and guess that you really want

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Philip Guenther
On Sat, Sep 14, 2013 at 7:00 PM, Jeffrey Walton noloa...@gmail.com wrote: ... Yeah, I should have taken a screen capture. I don't use the mail program too often (its been years since I've had to), so it was not a priority. Screen capture? In order to convey what was presumably a one line

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jeffrey Walton
On Sat, Sep 14, 2013 at 10:08 PM, Philip Guenther guent...@gmail.com wrote: On Sat, Sep 14, 2013 at 7:00 PM, Jeffrey Walton noloa...@gmail.com wrote: ... Yeah, I should have taken a screen capture. I don't use the mail program too often (its been years since I've had to), so it was not a

Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Jérémie Courrèges-Anglas
Jeffrey Walton noloa...@gmail.com writes: On Sat, Sep 14, 2013 at 10:08 PM, Philip Guenther guent...@gmail.com wrote: On Sat, Sep 14, 2013 at 7:00 PM, Jeffrey Walton noloa...@gmail.com wrote: ... Yeah, I should have taken a screen capture. I don't use the mail program too often (its been