Re: adduser and single-user groups

2010-01-27 Thread Glen Barber
Hi, John

John wrote: 
 Could someone point me in the direction of enlightenment with regard
 to the value add of the group per user approach that adduser
 uses?  Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe
 thing, or what?
 

If I understand your question correctly, you are asking about the default
group to which a user is added upon user creation.  If not, please explain
more on what you are asking.

useradd(8) will automatically add a user to a group, named after the user,
unless otherwise specified.  This is the login group for the user, and the
primary GID used when read/write access to files and directories is
determined.  This, of course, can be overridden with the '-g' flag,
changing the default group, and additionally with '-G' to add to several
groups.

Regards,

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: adduser and single-user groups

2010-01-27 Thread Erik Norgaard

On 27/01/10 19.05, John wrote:

Could someone point me in the direction of enlightenment with regard
to the value add of the group per user approach that adduser
uses?  Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe
thing, or what?


Many systems do this AFAIK.

IIRC, the point is that you can set umask to 007 or 002 and your home 
directory with owner you, and group you will remain private or at least 
only writable by you.


The umasks 007 or 002 are useful if you have some shared folder where 
you have multiple users with write access, say:


drwxrwxr-x root:users /home/share

With umask 002, when files are created in this directory by another user 
in the users group, all users in this group can edit that file, no need 
to modify permissions.


BR, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: adduser and single-user groups

2010-01-27 Thread Lowell Gilbert
John j...@starfire.mn.org writes:

 Could someone point me in the direction of enlightenment with regard
 to the value add of the group per user approach that adduser
 uses?

man adduser; about 60 lines in, there is a whole section titled
UNIQUE GROUPS.  This is the document you want.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Adduser and bcrypt password hashes

2008-02-25 Thread Alphons Fonz van Werven

[EMAIL PROTECTED] wrote:


something goes wrong while using adduser with bcrypt password hashes on
 FreeBSD 7.0-RC3:


I assume bcrypt means the blowfish cypher?

In any case, thanks for the alert!

Alphons

--
All right, that does it Bill [Donahue]. I'm pretty sure that killing Jesus
is not very Christian.
 -- pope Benedict XVI, South Park episode #158

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adduser utility to generate random passwds ?

2007-01-09 Thread Michael

Frank Bonnet wrote:

Hello

Is there a possibility to use as a standalone software
the adduser feature that generate random passwd.

I want to generate new strong password for existing users.

Thank you

Frank
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


Another good choice for separate password generation is apg which is 
also in the ports.  What I like about apg is that it also provides a 
basic phonic for each password you can generate that helps you to 
remember your password.  As you may already know, having completely 
ambiguous random passwords isn't necessarily the best thing to use since 
most users will tend to write them down on paper somewhere and defeat 
the real purpose for generating good secure passwords in the first place.


Here is a small script that can generate these passwords via a web 
interface which is quite nice.  It does require that you have a ksh 
shell however since it was written with this shell in mind.


#!/usr/local/bin/ksh93

PATH=/bin:/user/bin:/usr/local/bin:/; export PATH
umask 077

a=/tmp/apg.$RANDOM
b=/tmp/apg.$RAMDOM

cat  EOF
Content-type: text/html

!DOCTYPE html PUBLIC -//IETF//DTD HTML 2.0//EN
 html
   head
   titleHelp generating a new password/title
   /head

   body
   h3Help generating a new password/h3

   blockquote
   These passwords should be reasonably safe.
   Feel free to use one, or reload the page
   for a new batch./p
   /blockquote pre font size=+1
EOF

apg -q -m 4 -x 4 -M NC -E '[EMAIL PROTECTED]*()\\' -n 10  $a
apg -q -m 4 -x 4 -M S  -E '[EMAIL PROTECTED]*()\\' -n 10  $b

# tr command is for bug workaround; apg is not supposed to
# include characters specified after -E option

paste $a $b |   
   tr 'l' 'L' |

   awk '
 BEGIN {
   printf Password\tRough guess at pronunciation\nhr /
   }
   {
   printf %s%s\t%s %s\n, $1, $3, $2, $4
   }'

cat  EOF
   /font
   /pre
   /blockquote
   /blockquote
   hr /
   /body
 /html
EOF

rm $a $b
exit 0

This script is from the book BSD Hacks, enjoy!

Michael Lawver

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Sahil Tandon

Frank Bonnet wrote:


Is there a possibility to use as a standalone software
the adduser feature that generate random passwd.

I want to generate new strong password for existing users.


/usr/sbin/pw usermod username -w random

--
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Ivan Voras
Frank Bonnet wrote:

 I want to generate new strong password for existing users.

Here's an idea:

$ head -c 64 /dev/random | md5 | head -c 10

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Frank Bonnet

Sahil Tandon wrote:

Frank Bonnet wrote:


Is there a possibility to use as a standalone software
the adduser feature that generate random passwd.

I want to generate new strong password for existing users.


/usr/sbin/pw usermod username -w random



thanks a lot :-)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Kirk Strauser
On Monday 08 January 2007 5:26 am, Ivan Voras wrote:

 Here's an idea:

 $ head -c 64 /dev/random | md5 | head -c 10

Hugely bad idea.  Since md5 outputs hex, you're only getting 4 bits of 
entropy per character.  Much better to use something like sysutils/pwgen to 
generate good random passwords.
-- 
Kirk Strauser


pgppuaGVN8vUP.pgp
Description: PGP signature


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Ivan Voras
Kirk Strauser wrote:
 On Monday 08 January 2007 5:26 am, Ivan Voras wrote:
 
 Here's an idea:

 $ head -c 64 /dev/random | md5 | head -c 10
 
 Hugely bad idea.  Since md5 outputs hex, you're only getting 4 bits of 
 entropy per character.  

Yes, with 10 characters that's 5 bytes of practically pure random data,
i.e. 40 bits. You're somewhat right: I don't know about pwgen but
usually such utilities generate passwords from a set that looks like
[0-9a-zA-Z-,], i.e. 6 bits per character. For a password of 8
characters, that's 48 bits, so 8 bits stronger than 10 hexadecimal
characters. For equal entropy, 12 hex characters should be used.

But hex characters are easier to remember :)




signature.asc
Description: OpenPGP digital signature


Re: Adduser utility to generate random passwds ?

2007-01-08 Thread Ivan Voras
Ivan Voras wrote:
 Frank Bonnet wrote:
 
 I want to generate new strong password for existing users.
 
 Here's an idea:
 
 $ head -c 64 /dev/random | md5 | head -c 10

... or, following the upthread discussion, a preferable alternative:

 openssl rand -base64 6

This will generate a strong password of 8 characters[*] with 6 bits of
entropy each (48 bits total), which is as strong as it gets.




[*] literally: 6 random bytes encoded with base64 to 8 ASCII characters



signature.asc
Description: OpenPGP digital signature


Re: adduser question

2003-06-29 Thread Jez Hancock
On Sun, Jun 29, 2003 at 05:52:53PM -0700, Marvin J. Kosmal wrote:
 When I type adduser
 
 I get the regular first three lines.
 
 Check /etc/shells
 Check /etc/master.pwd
 Check /etc/group
 
 Usernames must match regulare expression: [mkosmal]:
iirc, the first time you run adduser it prompts you to enter the default
settings you want it to use in future (here you've chosen to allow only
usernames that contain the characters mkosmal - probably not what you
wanted).  The best thing to do would be to do:

mv /etc/adduser.conf /etc/adduser.conf.bak

and then run adduser as root again.allow only usernames that contain the
characters mkosmal - probably not what you wanted).  The best thing to
do would be to do:

mv /etc/adduser.conf /etc/adduser.conf.bak

and then run adduser as root again, but this time run it as:

adduser -silent

This will stop adduser from asking you for defaults and instead will
work it out from it's default settings.


 That last line must come from an aborted prior attempt.
Yes, perhaps you thought it was prompting you for the username of the
user you wanted to add to the system (which ends up being taken as the
regular expression to describe what valid usernames should be).

 It just gets worse after that.
 
 In /usr/sbin
 the adduser script is in part
 
 Copyright 1995-1996 Wolfram Schneider etc. yada. yada.. yada..
If you mean you edited the file /usr/sbin/adduser, that's because the
adduser program is a perl script!  If you read through it you can work
out how adduser works :)

 
 
 I am using a disk that came with Teach  Yourself FreeBSD in 24 hours..
 
 
 
 I tried editing the following files by had
 
 /etc/passwd.
 /etc/master.pwd
 /etc/group
Not a good idea unless you know what you're doing.  After editing
/etc/master.passwd by hand (NOT /etc/passwd) you then need to run 
another utility, pwd_mkdb, to rebuild the system password database.

Read the man pages thoroughly before attempting that, try:

man -k passwd

to see a list of relevant manpages.


A better password management system is 'pw' - make sure you type 

pw add -D

first to setup your defaults.

To add a user do:

pw adduser youruser -m

which creates 'youruser' and a set of skeleton files in their home
directory (/home by default).

Good luck,
Jez
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: adduser

2002-12-31 Thread Cliff Sarginson
So why the fuck do things get more difficult ?

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-31 Thread Cliff Sarginson
t should be as easy as pie to add a user.
Why the hell does FreeBSD go on and on shooting itself in the foot ?
RTFM has become a bad joke.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology .. oh come on

2002-12-31 Thread Cliff Sarginson
Adding a user should  not be rocket science,
If the old time Bill Joy lovers would realise that 'csh sucks big
time, we may avoid a lot of problems.
If anyone can prove to me that csh is superior in any respect to bash,
then please tell me.


-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology .. oh come on

2002-12-31 Thread Miguel Mendez
On Tue, 31 Dec 2002 19:16:31 +0100
Cliff Sarginson [EMAIL PROTECTED] wrote:

 Adding a user should  not be rocket science,

It isn't.

 If the old time Bill Joy lovers would realise that 'csh sucks big
 time, we may avoid a lot of problems.

You can always use /bin/sh, and yes, it does history (set -o emacs)

 If anyone can prove to me that csh is superior in any respect to
 bash, then please tell me.

-r-xr-xr-x  2 root  wheel  841916 Dec 31 15:16 /bin/tcsh
-rwxr-xr-x  1 root  wheel  1036396 Nov 17 13:30 /usr/local/bin/bash

tcsh is good enough for interactive use (others like zsh as well), and
many people have grown to hate bash for one very simple reason. In
another attempt at 'embrace and extend', GNU added some features to
plain sh that remained functional even when invoked as /bin/sh. That
lead to broken scripts that only ran on GNU/Linux systems.

Now I feel fad for feeding a troll, let this thread die already :)

Happy new year.
-- 
Miguel Mendez - [EMAIL PROTECTED]
GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
EnergyHQ :: http://www.energyhq.tk
Of course it runs NetBSD!

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology .. oh come on

2002-12-31 Thread Stacey Roberts
On Tue, 2002-12-31 at 18:30, Miguel Mendez wrote:
 On Tue, 31 Dec 2002 19:16:31 +0100
 Cliff Sarginson [EMAIL PROTECTED] wrote:
 
  Adding a user should  not be rocket science,
 
 It isn't.
 
  If the old time Bill Joy lovers would realise that 'csh sucks big
  time, we may avoid a lot of problems.
 
 You can always use /bin/sh, and yes, it does history (set -o emacs)
 
  If anyone can prove to me that csh is superior in any respect to
  bash, then please tell me.
 
 -r-xr-xr-x  2 root  wheel  841916 Dec 31 15:16 /bin/tcsh
 -rwxr-xr-x  1 root  wheel  1036396 Nov 17 13:30 /usr/local/bin/bash
 
 tcsh is good enough for interactive use (others like zsh as well), and
 many people have grown to hate bash for one very simple reason. In
 another attempt at 'embrace and extend', GNU added some features to
 plain sh that remained functional even when invoked as /bin/sh. That
 lead to broken scripts that only ran on GNU/Linux systems.
 
 Now I feel fad for feeding a troll, let this thread die already :)

Even the original poster has requested (two days ago) that this thread
be killed off.

Why is questions still being cc'd on this?

Regards,

Stacey

 
 Happy new year.
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-31 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.31.2002 @ 1005 PST): Cliff Sarginson said, in 0.3K: 
 So why the fuck do things get more difficult ?
 end of Re: adduser from Cliff Sarginson 

Not that you gave any context to this, your latest helpful question, but
I'd guess the answer is your attitude.

# Adam


- --
Adam Weinberger
vectors.cx[EMAIL PROTECTED]
FreeBSD.org   [EMAIL PROTECTED]
Bayer Berkeley[EMAIL PROTECTED]
#vim:set ts=8: 8-char tabs prevent tooth decay.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+Eibjo8KM2ULHQ/0RAm+kAKCZGwM9ZKlLaZ4vKdrdmTNpz/QGcACgvxah
pipFVbFYnaqKXgEjg8d0PY4=
=b/nS
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-31 Thread Mark
- Original Message -
From: Cliff Sarginson [EMAIL PROTECTED]
To: freebsd-questions [EMAIL PROTECTED]
Sent: Tuesday, December 31, 2002 7:05 PM
Subject: Re: adduser


 So why the fuck do things get more difficult ?

WTF is not going to solve your problem; RTFM will.

 If anyone can prove to me that csh is superior in any respect
 to bash,

No need to bash csh.

 RTFM has become a bad joke.

Some of us see RTFM as an obsolute low-point in the setup of their system.
To them, RTFM is for losers, and they will resort to all other means first,
the often lengthy detour despite, if only it will keep them from RTFM. These
people reason, If any additional reading is required, beyond what I already
know, or think I know, it must be
a design-flaw.

And then I recall this:

If you think education is expensive, try ignorance.

This aphorism is attributed to Derek Bok, the former President of Harvard.
It seems destined for a long career.

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-30 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.29.2002 @ 1340 PST): Cliff Sarginson said, in 0.4K: 
 Ok,
 Two things.
 One is I should not have mouthed off such a stupid email. I apologise.
 Secondly, adduser sucks.
 Let's end this thread, blame it on me.
 end of Re: adduser .. revisited, an apology from Cliff Sarginson 

The whole point of this email has been entirely overlooked: to someone
who is unfamiliar with adduser, the initial configuration questions
aren't identifiable as such. Perhaps a note such as Answers to the
following questions will be used as rules for future user additions: Or
something that makes more sense.

# Adam


- --
Adam Weinberger
vectors.cx[EMAIL PROTECTED]
FreeBSD.org   [EMAIL PROTECTED]
Bayer Berkeley[EMAIL PROTECTED]
#vim:set ts=8: 8-char tabs prevent tooth decay.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+ECS2o8KM2ULHQ/0RAtm4AJ9jpAj2aaZ87E3exsNt4KyCxwomIQCbBmtJ
VpFjASqYjg+7HaVqVbzzLIA=
=oNQM
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-30 Thread Stephen Hilton
On Mon, 30 Dec 2002 02:49:26 -0800
Adam Weinberger [EMAIL PROTECTED] wrote:

 The whole point of this email has been entirely overlooked: to someone
 who is unfamiliar with adduser, the initial configuration questions
 aren't identifiable as such. Perhaps a note such as Answers to the
 following questions will be used as rules for future user additions: Or
 something that makes more sense.

I agree with Adam, this bit me in the past also thinking that 
the Usernames must match regular expression:  prompt was asking 
for the new users name, then also munging up my /etc/adduser.conf 
file with my proposed new users name, instead of the regular exp. 
This was all pilot error, but an easy error for a new admin/user 
to make.

--snip--
desktop# adduser
/etc/adduser.conf: No such file or directory
Use option ``-silent'' if you don't want to see all warnings and questions.

Check /etc/shells
Check /etc/master.passwd
Check /etc/group
Usernames must match regular expression: 
[^[a-z0-9_][a-z0-9_-]*$]: 
--snip--

Especially unfriendly to a very new admin/user, who should 
probably be referred to /stand/sysinstall post-install 
configuration.  Remember that as a new user to FreeBSD/UNIX 
one of the first recommended steps is to get a non-root 
login, and use it!.

Regards,

Stephen Hilton
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-30 Thread Joe Gwozdecki


 On Mon, 30 Dec 2002 02:49:26 -0800
 Adam Weinberger [EMAIL PROTECTED] wrote:
 
  The whole point of this email has been entirely overlooked: to someone
  who is unfamiliar with adduser, the initial configuration questions
  aren't identifiable as such. Perhaps a note such as Answers to the
  following questions will be used as rules for future user additions: Or
  something that makes more sense.
 
 I agree with Adam, this bit me in the past also thinking that 
 the Usernames must match regular expression:  prompt was asking 
 for the new users name, then also munging up my /etc/adduser.conf 
 file with my proposed new users name, instead of the regular exp. 
 This was all pilot error, but an easy error for a new admin/user 
 to make.
 
 --snip--
 desktop# adduser
 /etc/adduser.conf: No such file or directory
 Use option ``-silent'' if you don't want to see all warnings and questions.
 
 Check /etc/shells
 Check /etc/master.passwd
 Check /etc/group
 Usernames must match regular expression: 
 [^[a-z0-9_][a-z0-9_-]*$]: 
 --snip--
 
 Especially unfriendly to a very new admin/user, who should 
 probably be referred to /stand/sysinstall post-install 
 configuration.  Remember that as a new user to FreeBSD/UNIX 
 one of the first recommended steps is to get a non-root 
 login, and use it!.
 
 Regards,
 
 Stephen Hilton
 [EMAIL PROTECTED]
 
When you see a short coming like this, is there
not some way to get it put into the software and/or
FreeBSD handbook?  

I myself have seen an incident, which if it just had
a couple of more words of explanation added, 
would eliminate a great deal of confusion.

Where do you go with suggestions for changes?

Joe Gwozdecki
Houston, Texas



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-30 Thread Franklin Pierce
- Original Message -
From: Cliff Sarginson [EMAIL PROTECTED]
Date: Sun, 29 Dec 2002 20:51:20 +0100
To: FreeBSD Questions [EMAIL PROTECTED]
Subject: Re: adduser

 On Sun, Dec 29, 2002 at 08:31:58PM +0100, Alex wrote:
  
  Dear/Beste Cliff,
  
  Sunday, December 29, 2002, 7:53:02 PM, you wrote:
  
   adduser is broken.

Broken!


 I tried the simple act of adding a user to my system.

Simple!


 You should not have to have the brain of Einstein

But I keep one nearby just in case.


 I am sorry. A job that should take a few minutes, 
Pff!  What about the applications in triplicate?
What kind of users are you trying to let onto our
precious collective consciousness?

 
 It is no good pretending that FreeBSD
 sooner it will be realised that it is streets ahead of most other OS'es.
 

I use a sock filled with quarters.

Donny Thompson is not gay.

Je suis une concombre.

Love,
Franklin Pierce
-- 
___
Get your free email from http://mymail.operamail.com

Powered by Outblaze

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-30 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.30.2002 @ 0649 PST): Joe Gwozdecki said, in 1.9K: 
 When you see a short coming like this, is there
 not some way to get it put into the software and/or
 FreeBSD handbook?  
 
 I myself have seen an incident, which if it just had
 a couple of more words of explanation added, 
 would eliminate a great deal of confusion.
 
 Where do you go with suggestions for changes?
 end of Re: adduser .. revisited, an apology from Joe Gwozdecki 

That's what send-pr(1) and the team of committers are there for ::)

If you see something you'd like changed, send a PR about it. Better yet,
make a patch and send-pr that. It's not nearly as daunting as it may
seem.

# Adam


- --
Adam Weinberger
vectors.cx[EMAIL PROTECTED]
FreeBSD.org   [EMAIL PROTECTED]
Bayer Berkeley[EMAIL PROTECTED]
#vim:set ts=8: 8-char tabs prevent tooth decay.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD4DBQE+ESiLo8KM2ULHQ/0RAsTaAJ9KiSbTNxA8rbYUB/f5oGrALIMwQQCXQguk
ovcBf6yQU87Drp9Hz71A2w==
=+iHJ
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Marcel Stangenberger
 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.


what is wrong with it?

it's working fine here.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.

Your mailer is broken.  It cut off the command you issued and the
error message you got.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

Hi!

 Your mailer is broken.  It cut off the command you issued and the
 error message you got.

 What on earth are you talking about ?

IOW: if you don't tell us, what you've tried and what's happened, we
have no possibility to help you.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Alex

Dear/Beste Cliff,

Sunday, December 29, 2002, 7:53:02 PM, you wrote:

 adduser is broken.
 Jeez, people wonder why FreeBSD is not more popular.

FreeBSD is for a number of reasons not popular. One is that people
like you that produce negative PR without cause.

-- 
Best regards/Met vriendelijke groet,
Alex


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Marcel Stangenberger
 On Sun, Dec 29, 2002 at 08:31:58PM +0100, Alex wrote:
 
  Dear/Beste Cliff,
 
  Sunday, December 29, 2002, 7:53:02 PM, you wrote:
 
   adduser is broken.
   Jeez, people wonder why FreeBSD is not more popular.
 
  FreeBSD is for a number of reasons not popular. One is that people
  like you that produce negative PR without cause.
 
 Negative PR ?
 I do my best to promote it.

so i see

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.
 You should not have to have the brain of Einstein in order to put a new
 user on your system.

the really stupid thing is, that when i type adduser on my freebsd machine
and then supply the info it asks for it does work.

Meaning that you might have done something wrong, but instead of supplying
us with the info of what you did and what output you got you start
attacking the popularity of BSD.

 As a matter of fact, immediately after sending that email I started on
 writing a decent mechanism for adding users. If that is negative PR then
 I am sorry. A job that should take a few minutes, didn't.

 When finished I will submit it through the normal channels.

in that case, why are you mailing to this list in the first place?

Marcel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Norbert Koch
Cliff Sarginson [EMAIL PROTECTED] writes:

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.
 You should not have to have the brain of Einstein in order to put a new
 user on your system.

You misunderstood the first part of adduser which is the configuration
part (done once).  Here's a sample session from my machine:

# adduser
,[ configuration part ]
| /etc/adduser.conf: No such file or directory
| Use option ``-silent'' if you don't want to see all warnings and questions.
| 
| Check /etc/shells
| Check /etc/master.passwd
| Check /etc/group
| Usernames must match regular expression: 
| [^[a-z0-9_][a-z0-9_-]*$]: 
| Enter your default shell: bash csh date no sh tcsh zsh [sh]: bash
| Your default shell is: bash - /usr/local/bin/bash
| Enter your default HOME partition: [/home]: /usr/users
| Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: 
| Send message from file: /etc/adduser.message no 
| [/etc/adduser.message]: 
| Use passwords (y/n) [y]: 
| 
| Write your configuration to /etc/adduser.conf? (y/n) [y]: 
`

Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.

,[ first entered user ]
| Enter username [^[a-z0-9_][a-z0-9_-]*$]: testuser
| Enter full name []: Test User   
| Enter shell bash csh date no sh tcsh zsh [bash]: 
| Enter home directory (full path) [/usr/users/testuser]: 
| Uid [1000]: 
| Enter login class: default []: 
| Login group testuser [testuser]: 
| Login group is ``testuser''. Invite testuser into other groups: guest no 
| [no]: 
| Enter password []: 
| Enter password again []: 
| 
| Name: testuser
| Password: 
| Fullname: Test User
| Uid:  1000
| Gid:  1000 (testuser)
| Class:
| Groups:   testuser 
| HOME: /usr/users/testuser
| Shell:/usr/local/bin/bash
| OK? (y/n) [y]: 
`


So, you should keep the regexp at the beginning and set up a
adduser.conf according to your needs.  The rest is mainly hitting the
return key.

norbert.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: adduser

2002-12-29 Thread Mike
Hmm adduser works as well as /stand/sysinstall Configure User Management
here. 
BSD UNIX is not less user friendly it's just more picky who it's friends
with. Seems to like allot of us hereg Maybe your in Windows purgatory
or something.

M;)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Marcel
Stangenberger
Sent: Sunday, December 29, 2002 1:00 PM
To: Cliff Sarginson
Cc: FreeBSD Questions
Subject: Re: adduser


 On Sun, Dec 29, 2002 at 08:31:58PM +0100, Alex wrote:
 
  Dear/Beste Cliff,
 
  Sunday, December 29, 2002, 7:53:02 PM, you wrote:
 
   adduser is broken.
   Jeez, people wonder why FreeBSD is not more popular.
 
  FreeBSD is for a number of reasons not popular. One is that people 
  like you that produce negative PR without cause.
 
 Negative PR ?
 I do my best to promote it.

so i see

 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given. 
 You should not have to have the brain of Einstein in order to put a 
 new user on your system.

the really stupid thing is, that when i type adduser on my freebsd
machine and then supply the info it asks for it does work.

Meaning that you might have done something wrong, but instead of
supplying us with the info of what you did and what output you got you
start attacking the popularity of BSD.

 As a matter of fact, immediately after sending that email I started on

 writing a decent mechanism for adding users. If that is negative PR 
 then I am sorry. A job that should take a few minutes, didn't.

 When finished I will submit it through the normal channels.

in that case, why are you mailing to this list in the first place?

Marcel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Nathan Kinkade
On Sun, Dec 29, 2002 at 09:02:50PM +0100, Norbert Koch wrote:
 Cliff Sarginson [EMAIL PROTECTED] writes:
 
  I tried the simple act of adding a user to my system.
  It failed, repeatingly asking me for a user name I had already given.
  You should not have to have the brain of Einstein in order to put a new
  user on your system.
 
 You misunderstood the first part of adduser which is the configuration
 part (done once).  Here's a sample session from my machine:
 
snip
 
 So, you should keep the regexp at the beginning and set up a
 adduser.conf according to your needs.  The rest is mainly hitting the
 return key.
 
 norbert.

Cliff,

Check out the man page for adduser(8).  If you don't want it to run you
through the setup each time, invoke it as `adduser -silent`.  It will
then simply ask you for the basics.

By the way, although peoples responses may have seemed a little
negative, they were somewhat warranted.  They are right, you complained,
but gave no specific information such that anyone could effectually help
you.  Here's an analogy:  say I'm having a problem with my machine not
booting properly - so I post to freebsd-questions and say, WTF?  I just
installed FreeBSD 4.7 and when my machine boots it doesn't work!
Someone please help me!  Obviously, a post such as this is not only
annoying, but absolutely worthless.  Even a non-computer literate person
would be able to identify that the issue needs more clarification.  This
is what people are pointing out regarding your initial post.  Think
about your problem and then formulate a question to the list in a manner
that will elucidate your problem to people who are, in fact, not sitting 
at your terminal.  For example, you could have posted some snippets from
the command.  You say repeatedly.  Does repeatedly mean 2 times?  5
times?  10 times?  An endless loop?  Was the user eventually added?  Had
you read the man page?  Exactly how did you invoke adduser?

Nathan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread dick hoogendijk
 Negative PR ?

Yes, or at least, you act too fast..

 That does not mean being uncritical.

Than BE critical towards your own attitude.
You can not just begin adding users. You have to set up the config file
first! It's all in the handbook! So, why didn't you read better?

 I tried the simple act of adding a user to my system.

It did. It was acting as if you were setting it up and you didn't
understand it ;-)) Make the config -a one time job- and you have a very
personalized 'adduser'

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Mark
- Original Message -
From: Cliff Sarginson [EMAIL PROTECTED]
To: FreeBSD Questions [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 7:53 PM
Subject: adduser


 adduser is broken.

Hardly. :) Though I tend to use a wee Perl script of my own, built around
/usr/sbin/pw, adduser is not broken. Usually -- and I learnt this the hard
way myself -- with a thing this basic, your best bet is to assume the error
with yourself, and not with the command at hand.

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Paul A. Scott

 I tried the simple act of adding a user to my system.

If it's something simple, then any problems have most likely been addressed
already. Simple is a clue that perhaps you're doing something wrong. So,
read the documentation, pull it all apart and put it back together again
before you complain that it's broken.

 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Rick Hamell

 Negative PR ?
 I do my best to promote it.
 That does not mean being uncritical.
 I tried the simple act of adding a user to my system.
 It failed, repeatingly asking me for a user name I had already given.

Look it /etc/adduser.conf remove the user name there and leave that line
blank. I've run into the same issue until I realized it was setup so that
you could force user names to have a part in common.

Rick


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser

2002-12-29 Thread Brian
One thing worth noting, is that in my experience, it differs from the linux
version.  In Linux you just adduser username, then passwd username and youre
in business.  In Fbsd, the easiest way is to just type adduser without other
args and answer the questions.

Bri

- Original Message -
From: Rick Hamell [EMAIL PROTECTED]
To: Cliff Sarginson [EMAIL PROTECTED]
Cc: FreeBSD Questions [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 2:12 PM
Subject: Re: adduser



  Negative PR ?
  I do my best to promote it.
  That does not mean being uncritical.
  I tried the simple act of adding a user to my system.
  It failed, repeatingly asking me for a user name I had already given.

 Look it /etc/adduser.conf remove the user name there and leave that line
 blank. I've run into the same issue until I realized it was setup so that
 you could force user names to have a part in common.

 Rick


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser .. revisited, an apology

2002-12-29 Thread Cliff Sarginson
Ok,
Two things.
One is I should not have mouthed off such a stupid email. I apologise.
Secondly, adduser sucks.
Let's end this thread, blame it on me.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: adduser ownership of mounted home directory

2002-12-21 Thread dick hoogendijk
 I am trying to put user's home directories onto a mounted windows
 share (mounting via smbfs).  When I run the adduser script (and
 specify /mountedshare/username as the home directory) it doesn't set
 the ownership of the home directory to the user.  Root still owns the
 folder.  If I add a user to the usual /home directory it works fine.

Do you expect windows to honour the *NIX permisssion flags?
Only ntfs comes close but differs too. So, what you want is not
possible afaik.

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message