Re: Is there a "deluser" equivalent in OpenBSD?

2006-11-16 Thread Elio Grieco
On Oct 29, 2006, at 11:15 AM, Ingo Schwarze wrote: Leonardo Rodrigues wrote on Sun, Oct 29, 2006 at 01:45:15PM -0300: Though, it seems a bit strange that OpenBSD lacks something like that. Look at it from a different perspective: There are other operating systems out there featuring thousan

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-30 Thread Paul de Weerd
It was pointed out to me in private e-mail that I mistakenly assumed telnet to be telnet and not ssh. I'm quoting parts of the private e-mail I received to the list in the hopes of educating others on the use of ssh. On Mon, Oct 30, 2006 at 04:04:34PM -0500, Eric Furman wrote: | On Mon, 30 Oct 200

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-30 Thread Paul de Weerd
On Mon, Oct 30, 2006 at 12:38:59AM -0500, Eric Furman wrote: | On Sun, 29 Oct 2006 23:12:49 +0100 (CET), "Otto Moerbeek" | <[EMAIL PROTECTED]> said: | > > but as has been pointed out, it is trivial to write a script | > > that would automatically go out and modify /etc/group | > > on even a large n

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Eric Furman
On Sun, 29 Oct 2006 23:12:49 +0100 (CET), "Otto Moerbeek" <[EMAIL PROTECTED]> said: > > but as has been pointed out, it is trivial to write a script > > that would automatically go out and modify /etc/group > > on even a large number of boxes. > > > > This is rough, needs polishing, use at own ris

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Otto Moerbeek
On Sun, 29 Oct 2006, Eric Furman wrote: > On Sun, 29 Oct 2006 19:15:56 +0100, "Ingo Schwarze" <[EMAIL PROTECTED]> > said: > > On first sight, an additional option "remove from group" to usermod(8) > > might not hurt much. As a second thought, how would you call it, -g > > and -G are already occup

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Eric Furman
On Sun, 29 Oct 2006 19:15:56 +0100, "Ingo Schwarze" <[EMAIL PROTECTED]> said: > On first sight, an additional option "remove from group" to usermod(8) > might not hurt much. As a second thought, how would you call it, -g > and -G are already occupied; yet it is important for learners to > have opt

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Eric Furman
On Sun, 29 Oct 2006 19:15:56 +0100, "Ingo Schwarze" <[EMAIL PROTECTED]> said: > Leonardo Rodrigues wrote on Sun, Oct 29, 2006 at 01:45:15PM -0300: > > Though, it seems a bit strange that OpenBSD lacks something like that. > On first sight, an additional option "remove from group" to usermod(8) > m

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Han Boetes
Otto Moerbeek wrote: > > No worries, usermod -G sets the secondary group list, like the > > man pages says and like other systems do. > > Oops, my memory and test were both wrong. Indeed, -G does not > delete membership. This seems to produce a groups file with all old systemaccounts removed. ~%

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Otto Moerbeek
On Sun, 29 Oct 2006, Otto Moerbeek wrote: > On Sat, 28 Oct 2006, Philip Guenther wrote: > > > On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: > > > Thanks, but usermod (with -G arg) seems to only let me add users to a > > > group or multiple groups, but not remove them . The man page,

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Otto Moerbeek
On Sat, 28 Oct 2006, Philip Guenther wrote: > On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: > > Thanks, but usermod (with -G arg) seems to only let me add users to a > > group or multiple groups, but not remove them . The man page, from > > what I could understand, also says nothing a

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Ingo Schwarze
Leonardo Rodrigues wrote on Sun, Oct 29, 2006 at 01:45:15PM -0300: > Though, it seems a bit strange that OpenBSD lacks something like that. Look at it from a different perspective: There are other operating systems out there featuring thousands of lines of complicated scripts just to ensure that

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Leonardo Rodrigues
Thanks everyone for the input. I guess I'll stick to a little script then =) Though, it seems a bit strange that OpenBSD lacks something like that. I thought it was a given. -- An OpenBSD user... and that's all you need to know =)

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Ingo Schwarze
Nick Guenther wrote on Sat, Oct 28, 2006 at 11:21:40PM -0400: > On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: >> Actually, it wouldn't be practical to manually edit /etc/group. [...] >> Also, er, call me dumb, but after rereading usermod(8), I really see >> no way to explicitly remove

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-29 Thread Stuart Henderson
On 2006/10/29 00:04, Leonardo Rodrigues wrote: > Actually, it wouldn't be practical to manually edit /etc/group. An > "userdel"-like command is needed in the smb.conf of the samba server > in order to graphically and easily manage users on the server by using > a Windows NT server tool. Either wri

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread JR Dalrymple
Philip Guenther wrote: > I would call this a bug in usermod: when run with the -G option it > should set the user's secondary group list to include exactly the > indicated groups. That's how usermod operates under Solaris and Linux > What's more, I've seen *NIXes that had a -R option to groupmo

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Philip Guenther
On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: Thanks, but usermod (with -G arg) seems to only let me add users to a group or multiple groups, but not remove them . The man page, from what I could understand, also says nothing about removing users =( I would call this a bug in userm

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Nick Guenther
On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: > Just edit the group itself, see /etc/group. Also take a look at > usermod(8) again. > > -Nick > > First, thanks for the help everyone =) Actually, it wouldn't be practical to manually edit /etc/group. An "userdel"-like command is need

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues
Just edit the group itself, see /etc/group. Also take a look at usermod(8) again. -Nick First, thanks for the help everyone =) Actually, it wouldn't be practical to manually edit /etc/group. An "userdel"-like command is needed in the smb.conf of the samba server in order to graphically and e

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Nick Guenther
On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: Humm... From the man page of userdel(8): DESCRIPTION The userdel utility removes a user from the system, optionally removing that user's home directory and any subdirectories. So, it won't remove an user from a group, but an u

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues
Humm... From the man page of userdel(8): DESCRIPTION The userdel utility removes a user from the system, optionally removing that user's home directory and any subdirectories. So, it won't remove an user from a group, but an user from the entire system. No signs of removing from a grou

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Josh Grosse
On Sat, Oct 28, 2006 at 07:29:41PM -0300, Leonardo Rodrigues wrote: > The man page says rmuser only accepts an username as an argument... > > Thanks, but usermod (with -G arg) seems to only let me add users to a > group or multiple groups, but not remove them . The man page, from > what I could un

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues
The man page says rmuser only accepts an username as an argument... Thanks, but usermod (with -G arg) seems to only let me add users to a group or multiple groups, but not remove them . The man page, from what I could understand, also says nothing about removing users =( -- An OpenBSD user... a

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Darrin Chandler
On Sat, Oct 28, 2006 at 06:30:33PM -0300, Leonardo Rodrigues wrote: > Hello everyone, > > So, I'm trying to set up a samba server, and looking into the > smb.conf, there's this command "deluser" that I can't find a "similar" > one on OpenBSD to replace it. I need a tool that is able to delete a >

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Lawrence Horvath
On 10/28/06, Leonardo Rodrigues <[EMAIL PROTECTED]> wrote: Hello everyone, So, I'm trying to set up a samba server, and looking into the smb.conf, there's this command "deluser" that I can't find a "similar" one on OpenBSD to replace it. I need a tool that is able to delete a user from a group,

Re: Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Darrin Chandler
On Sat, Oct 28, 2006 at 06:30:33PM -0300, Leonardo Rodrigues wrote: > Hello everyone, > > So, I'm trying to set up a samba server, and looking into the > smb.conf, there's this command "deluser" that I can't find a "similar" > one on OpenBSD to replace it. I need a tool that is able to delete a >

Is there a "deluser" equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues
Hello everyone, So, I'm trying to set up a samba server, and looking into the smb.conf, there's this command "deluser" that I can't find a "similar" one on OpenBSD to replace it. I need a tool that is able to delete a user from a group, by using the username and the group as arguments. I've looke