script to change user's group?

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

  • Next message: Sascha Klauder: "Re: script to change user's group?"
    Date: Thu, 20 Nov 2003 06:39:11 -0600
    To: freebsd-isp@freebsd.org
    
    

    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.

    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: Sascha Klauder: "Re: script to change user's group?"

    Relevant Pages

    • 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: Setting time error
      ... However, everytime this script runs, it asks the user in the command box ... select Y for yes to set the time from this server. ... switch I am missing that will automatically change the time to the ...
      (microsoft.public.windowsxp.general)
    • Re: script to change users group?
      ... Sascha Klauder 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 ... If I knew of a command line way I could write a script. ...
      (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: Extract user group membership details
      ... The Directory Services tools from Microsoft, which are included with WS03 and WS08, will give you group membership details. ... If you want to list all groups that a user belongs to, you can use the following command: ... If you want to run either of these for multiple users, then you need to create a text file that contains the DNs of each user, one per line, and then run the following command: ...
      (microsoft.public.windows.server.active_directory)