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
* [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

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