public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] New adduser and deluser features suggestions
@ 2002-07-16 23:48 Christian Axelsson
  2002-07-17  0:00 ` Dan Naumov
  2002-07-17 12:15 ` Volker Dierks
  0 siblings, 2 replies; 10+ messages in thread
From: Christian Axelsson @ 2002-07-16 23:48 UTC (permalink / raw
  To: gentoo-dev

I was told to post this as a new bug (and so have I done :), but I want all members here to see this as well, maybe someone can give more suggestions and comments on it this way :)


This is the features I would like to see in a new adduser (and deluser) package:

adduser
=======
A configuration-file to set the following options:
* Default shell
* Default home
* Location of /etc/skel
* First and last UID to be used when adding new users
* Permissions on home
* A quota template to be applied on the new user
* Letterhomes (ie. for user foo, create /home/f/foo)
* Grouphomes (ie. for user foo that has office as default group, create /home/office/user)
* Usergroups (put all new users in this group instead of creating a new group for each user, this group needs to be changeable)

deluser
=======
A configuration-file to set the following options:
* Whether to or not to remove a users homedir
* Whether to or not to backup a users homedir
* Wheter not or not to remove all files on the system that belongs to the user
* Wheter not or not to backup all files on the system that belongs to the user

There're perl-scripts that can comply all this but I was told that to become a new system package, it needs to be bash or python.

--
Christian Axelsson
smiler@lanil.mine.nu


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-16 23:48 [gentoo-dev] New adduser and deluser features suggestions Christian Axelsson
@ 2002-07-17  0:00 ` Dan Naumov
  2002-07-17  0:58   ` Christian Axelsson
  2002-07-17 12:15 ` Volker Dierks
  1 sibling, 1 reply; 10+ messages in thread
From: Dan Naumov @ 2002-07-17  0:00 UTC (permalink / raw
  To: gentoo-dev

On Wed, 2002-07-17 at 02:48, Christian Axelsson wrote:
> I was told to post this as a new bug (and so have I done :), but I want all members here to see this as well, maybe someone can give more suggestions and comments on it this way :)
> 
> 
> This is the features I would like to see in a new adduser (and deluser) package:

<SNIP>

> Christian Axelsson
> smiler@lanil.mine.nu

Where do I get the feeling you're taking these ideas from the adduser
script from FreeBSD and OpenBSD ? ;)

Sincerely, 
-- 


#-------------------------------------------------------#
|  Dan Naumov (aka Jago on IRC) || Otavantie 2, 50670,  |
|     Otava Folk Highschool     ||   Otava, Finland.    |
#-------------------------------------------------------#
|      User of Gentoo Linux : http://www.gentoo.org     |
#-------------------------------------------------------#



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-17  0:00 ` Dan Naumov
@ 2002-07-17  0:58   ` Christian Axelsson
  2002-07-17  3:14     ` Ben Lutgens
  0 siblings, 1 reply; 10+ messages in thread
From: Christian Axelsson @ 2002-07-17  0:58 UTC (permalink / raw
  To: gentoo-dev

--------------------
On 17 Jul 2002 03:00:57 +0300
Dan Naumov <jago@telefragged.com> wrote:
>
> Where do I get the feeling you're taking these ideas from the adduser
> script from FreeBSD and OpenBSD ? ;)

Actually, I've taken it from Debian :D

--
Christian Axelsson
smiler@lanil.mine.nu


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-17  0:58   ` Christian Axelsson
@ 2002-07-17  3:14     ` Ben Lutgens
  2002-07-17  3:22       ` Christian Axelsson
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Lutgens @ 2002-07-17  3:14 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

On Wed, Jul 17, 2002 at 02:58:33AM +0200, Christian Axelsson wrote:
>> Where do I get the feeling you're taking these ideas from the adduser
>> script from FreeBSD and OpenBSD ? ;)
>
>Actually, I've taken it from Debian :D

app-admin/superadduser is based on debian's adduser script and is written
in C (i think) try that and petition for it to be in base system (I think
it should be)

-- 
Ben Lutgens				 	 | http://cvs.gentoo.org/~lamer/	
Random Gentoo Developer	 | http://www.gentoo.org/

"I got a wife and kids too but you don't see me out here stealing Imperial
Droids now do ya?"

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-17  3:14     ` Ben Lutgens
@ 2002-07-17  3:22       ` Christian Axelsson
  2002-07-18  2:18         ` mbutcher
  0 siblings, 1 reply; 10+ messages in thread
From: Christian Axelsson @ 2002-07-17  3:22 UTC (permalink / raw
  To: gentoo-dev

--------------------
On Tue, 16 Jul 2002 22:14:45 -0500
Ben Lutgens <lamer@gentoo.org> wrote:

> On Wed, Jul 17, 2002 at 02:58:33AM +0200, Christian Axelsson wrote:
> >> Where do I get the feeling you're taking these ideas from the adduser
> >> script from FreeBSD and OpenBSD ? ;)
> >
> >Actually, I've taken it from Debian :D
> 
> app-admin/superadduser is based on debian's adduser script and is written
> in C (i think) try that and petition for it to be in base system (I think
> it should be)
> 

superadduser doesn't even have half of the features I mentioned
It's written in bash and is only a script getting some input and adds a user depending on the input.
I doesn't even have a configurationfile where you can set any defaults (but then, there are no defaults to set ;)

--
Christian Axelsson
smiler@lanil.mine.nu


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-dev] New adduser and deluser features suggestions
@ 2002-07-17 10:45 Christian Skarby
  0 siblings, 0 replies; 10+ messages in thread
From: Christian Skarby @ 2002-07-17 10:45 UTC (permalink / raw
  To: gentoo-dev; +Cc: ChristianAxelssonsmiler

First I'd like to say that I like the features that you suggest, on the
other hand ..
There are a few defaults one actially can set with the default
useradd-program. These are covered in the manpage "man adduser" / "man
useradd".
Furthermore I think I see where you'd like to move, then still I do not
see that it is too hard to implement making some modifications to the
superadduser-script.
Regarding the deluser-features I think the right thing is to use
find,xargs,rm and cp, knowing the uid it should work fine to use something
simillar to  find / -uid $uid -type f -print0 | xargs -0 --no-run-if-empty -p rm -f
in order to remove all files on mounted file-systems owned by $uid.

Anyway, that is my opinion to the matter.

--

Christian Skarby
christian@skarby.no




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-16 23:48 [gentoo-dev] New adduser and deluser features suggestions Christian Axelsson
  2002-07-17  0:00 ` Dan Naumov
@ 2002-07-17 12:15 ` Volker Dierks
  2002-07-18  5:19   ` [gentoo-dev] " Paul
  1 sibling, 1 reply; 10+ messages in thread
From: Volker Dierks @ 2002-07-17 12:15 UTC (permalink / raw
  To: gentoo-dev

Christian Axelsson wrote:
> This is the features I would like to see in a new adduser (and deluser) package:
<SNIP>
hmm, sorry. I've no comments to the features but I've a problem
to add my personal useraccount to a gentoo system. I've posted
the question to the gentoo-user maillinglist but got no answer.
Perhaps someone on the dev list can give me a answer. My normal
useraccount uses a dot (f. e. f.bar).
useradd -c "Foo Bar" -d /home/f.bar -u 500 -g 200 -s /bin/bash f.bar
useradd: invalid user name 'f.bar'

This is a example. My real username has 8 characters (with the
dot). Whitout the dot, useradd works fine.

Does anyone know where I must drive the screw? /etc/login.defs
isn't it. Are the pam modules denying a dot?

Thanks, Volker

-- 
Volker Dierks
sonic.homeunix.net

-*- If Linux doesn't have the solution, you have the wrong problem -*-



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] New adduser and deluser features suggestions
  2002-07-17  3:22       ` Christian Axelsson
@ 2002-07-18  2:18         ` mbutcher
  0 siblings, 0 replies; 10+ messages in thread
From: mbutcher @ 2002-07-18  2:18 UTC (permalink / raw
  To: gentoo-dev

I've started working on a Python port of debian adduser 3.47. I'll update the 
list when I have something working.

Matt

On Tuesday 16 July 2002 09:22 pm, Christian Axelsson wrote:
> --------------------
> On Tue, 16 Jul 2002 22:14:45 -0500
>
> Ben Lutgens <lamer@gentoo.org> wrote:
> > On Wed, Jul 17, 2002 at 02:58:33AM +0200, Christian Axelsson wrote:
> > >> Where do I get the feeling you're taking these ideas from the adduser
> > >> script from FreeBSD and OpenBSD ? ;)
> > >
> > >Actually, I've taken it from Debian :D
> >
> > app-admin/superadduser is based on debian's adduser script and is written
> > in C (i think) try that and petition for it to be in base system (I think
> > it should be)
>
> superadduser doesn't even have half of the features I mentioned
> It's written in bash and is only a script getting some input and adds a
> user depending on the input. I doesn't even have a configurationfile where
> you can set any defaults (but then, there are no defaults to set ;)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-dev] Re: New adduser and deluser features suggestions
  2002-07-17 12:15 ` Volker Dierks
@ 2002-07-18  5:19   ` Paul
  2002-07-18 16:15     ` Felipe Ghellar
  0 siblings, 1 reply; 10+ messages in thread
From: Paul @ 2002-07-18  5:19 UTC (permalink / raw
  To: Volker Dierks; +Cc: gentoo-dev

Volker Dierks <v.dierks@sonic.homeunix.net>, on Wed Jul 17, 2002 [02:15:45 PM] said:
> Christian Axelsson wrote:
> >This is the features I would like to see in a new adduser (and deluser) 
> >package:
> <SNIP>
> hmm, sorry. I've no comments to the features but I've a problem
> to add my personal useraccount to a gentoo system. I've posted
> the question to the gentoo-user maillinglist but got no answer.
> Perhaps someone on the dev list can give me a answer. My normal
> useraccount uses a dot (f. e. f.bar).
> useradd -c "Foo Bar" -d /home/f.bar -u 500 -g 200 -s /bin/bash f.bar
> useradd: invalid user name 'f.bar'
> 
> This is a example. My real username has 8 characters (with the
> dot). Whitout the dot, useradd works fine.
> 
> Does anyone know where I must drive the screw? /etc/login.defs
> isn't it. Are the pam modules denying a dot?
> 
> Thanks, Volker

	Hi;

	Well, the *bsd man page on passwd(5) has this to say:

...
     The login name must never begin with a hyphen (`-'); also,
it is strongly suggested that neither upper-case characters nor
dots (`.') be part of the name, as this tends to confuse mailers.
...

	You can always use things like vipw to force the issue;
sorry I doubt there is another way without simply hacking
useradd...

Paul
set@pobox.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-dev] Re: New adduser and deluser features suggestions
  2002-07-18  5:19   ` [gentoo-dev] " Paul
@ 2002-07-18 16:15     ` Felipe Ghellar
  0 siblings, 0 replies; 10+ messages in thread
From: Felipe Ghellar @ 2002-07-18 16:15 UTC (permalink / raw
  To: gentoo-dev

The forums are a great source of such things:

http://forums.gentoo.org/viewtopic.php?t=2428
http://forums.gentoo.org/viewtopic.php?t=6638
http://forums.gentoo.org/viewtopic.php?t=5392



-- 



_______________________________________________________________________
Yahoo! Encontros
O lugar certo para encontrar a sua alma gêmea.
http://br.encontros.yahoo.com/


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-07-18 16:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-16 23:48 [gentoo-dev] New adduser and deluser features suggestions Christian Axelsson
2002-07-17  0:00 ` Dan Naumov
2002-07-17  0:58   ` Christian Axelsson
2002-07-17  3:14     ` Ben Lutgens
2002-07-17  3:22       ` Christian Axelsson
2002-07-18  2:18         ` mbutcher
2002-07-17 12:15 ` Volker Dierks
2002-07-18  5:19   ` [gentoo-dev] " Paul
2002-07-18 16:15     ` Felipe Ghellar
  -- strict thread matches above, loose matches on Subject: below --
2002-07-17 10:45 [gentoo-dev] " Christian Skarby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox