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 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
  error message?  If cut-n-paste won't work, might I suggest just
  (carefully) typing it?
  Yes, I'm lazy like that. Plus it removes any ambiguity.
 
  Side note: it's lost on me why you're unable to run the compiler
  because of tangles with adduser/sudo/whatever.
  Oh, that's my own doing. I need to install wget and subversion to
  fetch the sources. Plus, I want to see how a Clang 3.3 build goes.
  (Compilers and software engineering are my business, not system
  administration).
 
 $ su -
 Password:
 # pkg_add subversion llvm
 
 That's it.  You're not into system adminstration yet you want to do
 unneeded configuration when you have a precise goal.  What do you
 expect?
 
 Re wget, there is ftp(1).
 
 That's already a lot of mails and a lot of attention for what is
 a rather simple problem.  Just have a break.

All I did when I did my new install this week was :

$su # enter password
$usermod -G wheel,operator username # obviously my username
$visudo

use 'j' to scrol down to the line that says users in wheel group can use sudo 
and uncomment it. Then press 'esc' ( to go into command mode for vi) and press 
':' then 'wq' and press return. Simple.



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? And why?

I'd expect the user jwalton to be added to the sudo group. Its seems
like a reasonable expectation to me.


I don't know the base for your expectations, but I'm afraid they are 
invalid.


man adduser




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 break and exit from root, I'm told I'm not in sudoers again.

How does one use adduser in OpenBSD?


I'd say you use it to add users, but since your user name already existed
you could not. It makes sense to me.

When I cat /etc/sudoers, its not there.


adduser(8) adds system users, which are defined in /etc/master.passwd 
(and /etc/password). For these users, specific configuration may or may 
not exist in /etc/sudoers. /etc/sudoers does not define local user accounts.



The question is what you really wanted to do.

I wanted to add myself to the sudo group.


There is no spoon. Or group named sudo for that matter, unless you 
created it yourself, which I suspect you didn't.



I'm not a BSD admin - I'm just a dumb user. So I'm probably doing
something wrong. I just haven't figured out what it is.


As pointed out, you expect OpenBSD to behave and be configured in the 
same way as some other system you recently used. That is not necessarily 
true.


man and apropos are your friends. Probably the FAQ, too.

Happy hunting!

/Alexander



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 visudo to move
 the cursor around, some of the arrow keys don't work. Not to mention
 the DELETE key (or the key combinations I know to use to simulate
 delete). visudo responds with ^? is not valid. I'm sure I'll have that
 file corrupted shortly.

In this case, I would suggest ssh'ing to the OpenBSD vm from a terminal
in the host OS, rather than using the VM console, there should be less
trouble with keymaps.



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 break and exit from root, I'm told I'm not in sudoers again.

How does one use adduser in OpenBSD?



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 try to RETURN
(no name), I looped back to the prompt. I have to break out with a ^C.

After the ^C break and exit from root, I'm told I'm not in sudoers again.

How does one use adduser in OpenBSD?


I'd say you use it to add users, but since your user name already 
existed you could not. It makes sense to me.


The question is what you really wanted to do.

/Alexander



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 be added to the sudo group. Its seems
like a reasonable expectation to me.

 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 break and exit from root, I'm told I'm not in sudoers again.

 How does one use adduser in OpenBSD?

 I'd say you use it to add users, but since your user name already existed
 you could not. It makes sense to me.
When I cat /etc/sudoers, its not there.

 The question is what you really wanted to do.
I wanted to add myself to the sudo group.

I'm not a BSD admin - I'm just a dumb user. So I'm probably doing
something wrong. I just haven't figured out what it is.

Jeff



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[]:

 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 break and exit from root, I'm told I'm not in sudoers again.

 How does one use adduser in OpenBSD?


 rtfm?
Thanks Kenneth.



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 suggest usermod(1).



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 the web and landed on an overflow page (I think its
the 'meta' site, and not the 'stack' site). That's what took me to
'adduser'.

 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 existence, so its
baffling (to me) the package manager cannot find it.

 man adduser
I tried `adduser jwalton sudo`, and it did not work even though the
command looks well formed. I got the command from the overflow site.

 man group
Does not appear applicable. I want to add a user to a group, and not
create or delete groups.

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...

Jeff



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 you can configure visudo, vipw, and vigr to use an editor
besides vi. It's possible to get by on Unix without knowing vi, I did so
on GNU/Linux systems for most of 4 years, but I finally broke down and
figured it out and promptly realized it wasn't as hard as it had been
made out to be.

-- 
  Shawn K. Quinn
  skqu...@rushpost.com



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 existence, so its
 baffling (to me) the package manager cannot find it.

You can do it without emacs or vi:
echo jwalton ALL=(ALL)  /etc/sudoers

 This stuff really should not be this hard...
 
 Jeff
 

-- 
anton



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), I looped back to the prompt. I have to break out with a ^C.
 
 After the ^C break and exit from root, I'm told I'm not in sudoers again.
 
 How does one use adduser in OpenBSD?
 

rtfm?

adduser(8) should explain things. Looking at the synopsis it's not clear
what you typed would do. Certainly I can't see such a command line in
the examples section.

If you're just working with sudoers, perhaps you want visudo(8) and not
adduser(8).

 Ken



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 work. Not to mention
the DELETE key (or the key combinations I know to use to simulate
delete). visudo responds with ^? is not valid. I'm sure I'll have that
file corrupted shortly.

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???

Thanks for the advice.

Jeff


On Sat, Sep 14, 2013 at 7:53 PM, Shawn K. Quinn skqu...@rushpost.com wrote:
 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 you can configure visudo, vipw, and vigr to use an editor
 besides vi. It's possible to get by on Unix without knowing vi, I did so
 on GNU/Linux systems for most of 4 years, but I finally broke down and
 figured it out and promptly realized it wasn't as hard as it had been
 made out to be.

 --
   Shawn K. Quinn
   skqu...@rushpost.com



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 before asking the question).

 Then, I went to the web and landed on an overflow page (I think its
 the 'meta' site, and not the 'stack' site). That's what took me to
 'adduser'.

 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.

To make things clear: you should always use visudo(8).  It does
validation on the modified sudoers(5) file.  And just like a lot of
programs, visudo(8) respects the VISUAL and EDITOR environment
variables.  So you're not forced to use vi(1), the base system also
ships with ed(1) and mg(1).

 I tried to add emacs through pkg_add, but it appears broke. Surely
 emacs has been ported to every *nix system in existence, so its
 baffling (to me) the package manager cannot find it.

I am the emacs package maintainer.  If you encounter problems not
documented by the README, please send a mail to po...@openbsd.org, with
a full description.

 man adduser
 I tried `adduser jwalton sudo`, and it did not work even though the
 command looks well formed. I got the command from the overflow site.

 man group
 Does not appear applicable. I want to add a user to a group, and not
 create or delete groups.

adduser is not a standardized command, you can't expect it to behave the
same way as it does on some other OSes.  Just stating a fact.

 And 'usermod -G sudo jwalton' does not work, either. It errors with
 Can't append group sudo for user jwalton.

$ getent group sudo
$ # no output

There is no group named `sudo' in the default install, though you can
add one.  On the other hand, just use visudo(8) and read the bits about
the wheel group.

 This stuff really should not be this hard...

You're on a different OS now, some things stay the same, some change.
On the plus side the documentation is quite extensive.  Manpages, the
FAQ and other pieces of information are a big concern here, so make use
of them.  Have fun.

-- 
jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494



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 visudo to move
 the cursor around, some of the arrow keys don't work. Not to mention
 the DELETE key (or the key combinations I know to use to simulate
 delete). visudo responds with ^? is not valid. I'm sure I'll have that
 file corrupted shortly.

The vi(1) editor in base doesn't behave the same way as vim wrt. some
keys.  export EDITOR=mg and profit.

 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???

No one said it was more secure.  As I already said in another mail,
you can't meet a new OS and expect everything to work as you think they
should.

 Thanks for the advice.

 Jeff


 On Sat, Sep 14, 2013 at 7:53 PM, Shawn K. Quinn skqu...@rushpost.com wrote:
 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 you can configure visudo, vipw, and vigr to use an editor
 besides vi. It's possible to get by on Unix without knowing vi, I did so
 on GNU/Linux systems for most of 4 years, but I finally broke down and
 figured it out and promptly realized it wasn't as hard as it had been
 made out to be.

 --
   Shawn K. Quinn
   skqu...@rushpost.com


-- 
jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494



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
  It appears to lack information on adding a user (I went through this
  man page before asking the question).
 
  Then, I went to the web and landed on an overflow page (I think its
  the 'meta' site, and not the 'stack' site). That's what took me to
  'adduser'.
 
  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.
 
 To make things clear: you should always use visudo(8).  It does
 validation on the modified sudoers(5) file.  And just like a lot of
 programs, visudo(8) respects the VISUAL and EDITOR environment
 variables.  So you're not forced to use vi(1), the base system also
 ships with ed(1) and mg(1).

Just to clarify. mg is an emacs-like editor. Every OpenBSD installation
include it by default.

You can run visudo with mg with this command: EDITOR=mg visudo.

 
  I tried to add emacs through pkg_add, but it appears broke. Surely
  emacs has been ported to every *nix system in existence, so its
  baffling (to me) the package manager cannot find it.
 
 I am the emacs package maintainer.  If you encounter problems not
 documented by the README, please send a mail to po...@openbsd.org, with
 a full description.
 
  man adduser
  I tried `adduser jwalton sudo`, and it did not work even though the
  command looks well formed. I got the command from the overflow site.
 
  man group
  Does not appear applicable. I want to add a user to a group, and not
  create or delete groups.
 
 adduser is not a standardized command, you can't expect it to behave the
 same way as it does on some other OSes.  Just stating a fact.
 
  And 'usermod -G sudo jwalton' does not work, either. It errors with
  Can't append group sudo for user jwalton.
 
 $ getent group sudo
 $ # no output
 
 There is no group named `sudo' in the default install, though you can
 add one.  On the other hand, just use visudo(8) and read the bits about
 the wheel group.
 
  This stuff really should not be this hard...
 
 You're on a different OS now, some things stay the same, some change.
 On the plus side the documentation is quite extensive.  Manpages, the
 FAQ and other pieces of information are a big concern here, so make use
 of them.  Have fun.
 
 -- 
 jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



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. I have to break out with a ^C.

After the ^C break and exit from root, I'm told I'm not in sudoers again.

How does one use adduser in OpenBSD?





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 emacs package.




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 emacs package.

Haha! that's too funny. I saw the prompt and immediately tried to run
mail. It did not work (I don't recall what the message was, but I
remember thinking, wtf???).

Jeff



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 reading afterboot and many other things, even an example
  of adding the emacs package.
 
 Haha! that's too funny. I saw the prompt and immediately tried to run
 mail. It did not work (I don't recall what the message was, but I
 remember thinking, wtf???).

Too bad you don't remember what the message was.

It works for us. You must have done something really stupid and obvious,
and if we knew the message, we could possibly help you...



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 a screw into wood, but it can be if you're using a hammer. Dont be fooled 
just because a screw resembles a nail.



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 you're going to be in for a long day. It's not really very hard to 
 drive a screw into wood, but it can be if you're using a hammer. Dont be 
 fooled just because a screw resembles a nail.
Yeah, there's no doubt in my mind. I'm 4 or 6 hours into this, and I
still have not been able to run my compiler!



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 you first install you should have 
  mail.
  $mail
  It will describe reading afterboot and many other things, even an example
  of adding the emacs package.
 
 Haha! that's too funny. I saw the prompt and immediately tried to run
 mail. It did not work (I don't recall what the message was, but I
 remember thinking, wtf???).

 Too bad you don't remember what the message was.

 It works for us. You must have done something really stupid and obvious,
I would not rule that out.

After system install, I saw that system message and immediately ran
`mail` based on its suggestion. I don't recall an error message - it
was more like it exited immediately or had no effect.

 and if we knew the message, we could possibly help you...
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.



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 to add
yourself to the wheel group, not sudo. This isn't Linux, and there is no
sudo group by default. For some reason Linux distros discarded the
traditional wheel group years ago. On OpenBSD wheel is used like the sudo
group, among other things.

You may also want to read the sudoers file. Just reading it will clue you
in this. And then go ahead and edit it.



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
error message?  If cut-n-paste won't work, might I suggest just
(carefully) typing it?

Side note: it's lost on me why you're unable to run the compiler
because of tangles with adduser/sudo/whatever.


Philip Guenther



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
 priority.

 Screen capture?  In order to convey what was presumably a one line
 error message?  If cut-n-paste won't work, might I suggest just
 (carefully) typing it?
Yes, I'm lazy like that. Plus it removes any ambiguity.

 Side note: it's lost on me why you're unable to run the compiler
 because of tangles with adduser/sudo/whatever.
Oh, that's my own doing. I need to install wget and subversion to
fetch the sources. Plus, I want to see how a Clang 3.3 build goes.
(Compilers and software engineering are my business, not system
administration).

Jeff



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 years since I've had to), so it was not a
 priority.

 Screen capture?  In order to convey what was presumably a one line
 error message?  If cut-n-paste won't work, might I suggest just
 (carefully) typing it?
 Yes, I'm lazy like that. Plus it removes any ambiguity.

 Side note: it's lost on me why you're unable to run the compiler
 because of tangles with adduser/sudo/whatever.
 Oh, that's my own doing. I need to install wget and subversion to
 fetch the sources. Plus, I want to see how a Clang 3.3 build goes.
 (Compilers and software engineering are my business, not system
 administration).

$ su -
Password:
# pkg_add subversion llvm

That's it.  You're not into system adminstration yet you want to do
unneeded configuration when you have a precise goal.  What do you
expect?

Re wget, there is ftp(1).

That's already a lot of mails and a lot of attention for what is
a rather simple problem.  Just have a break.

-- 
jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494