Re: script to change user's group?

From: Chris Cook (ccook_at_tcworks.net)
Date: 11/20/03

  • Next message: Len Conrad: "Re: About DNS (BIND) with Database"
    Date: Thu, 20 Nov 2003 06:51:58 -0600
    To: Sascha Klauder <sklauder@trimind.de>
    
    

    Sascha Klauder wrote:
    >
    > On Thu, Nov 20, 2003 at 06:39:11AM -0600, Chris Cook wrote:
    > > Is there a command line way to change the group that a user belongs to?
    > > We would like to automatically change a user's group when they become
    > > past due on their account. The only way I know how to do this is
    > > chpass. If I knew of a command line way I could write a script.
    >
    > Check out the pw(8) command.
    >

    OK, that was an incredibly stupid question.

    Ha! Thanks.

    -- 
    Chris
    o----< ccook@tcworks.net >------------------------------------o
    |Chris Cook - Admin     |TCWORKS.NET - http://www.tcworks.net |
    |The Computer Works ISP |FreeBSD - http://www.freebsd.org     |
    o-------------------------------------------------------------o
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Len Conrad: "Re: About DNS (BIND) with Database"

    Relevant Pages

    • script to change users group?
      ... Is there a command line way to change the group that a user belongs to? ... We would like to automatically change a user's group when they become ... If I knew of a command line way I could write a script. ... To unsubscribe, ...
      (freebsd-isp)
    • Re: script to change users group?
      ... > Is there a command line way to change the group that a user belongs to? ... > We would like to automatically change a user's group when they become ... If I knew of a command line way I could write a script. ... To unsubscribe, ...
      (freebsd-isp)
    • Re: Determining real user access permissions to files/directories (ls -l doesnt help)
      ... Examples of that query would be: ... users have access to the file/folder. ... You should first determine the groups a user belongs to, ... build a query for the "find" command that would give you the list of files ...
      (comp.unix.shell)
    • RE: Which Groups and what are effective permissions based on multiple groups?
      ... You can use xp_logininfo to get the group name which the user belongs to. ... if you have a Windows user John who belongs to the Windows ... For example, run the following command: ...
      (microsoft.public.sqlserver.server)
    • RE: How to determine if an user belongs to a specific group?
      ... If you're talking about groups as in ActiveDirectory, I think the command is ... HTH ... Dan ... > How could i determine if an user belongs to a specific group, ...
      (microsoft.public.dotnet.framework.aspnet)