Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    815

    terminating accounts in SSH

    i want to terminate accounts in SSH and remove the DNS zones. Is this correct?

    # yes yes | /scripts/killacct username
    will it delete the dns zones too?
    All things work together for the good of those who love God - Romans 8:28

  2. #2
    Join Date
    Apr 2002
    Posts
    930
    I think just:

    Code:
    yes | /scripts/killacct <user>
    will suffice. But please note, this will delete the account from the server. By piping yes into the script's execution you won't be able to confirm this and back out. As soon as you execute this account, the account will be deleted. I would advise to use this with caution.

    The DNS is deleted by default. If you want to keep the DNS, pass n as the second parameter to killacct. Execute just:

    [code]/scripts/killacct[/b]

    to see a complete list of options.

  3. #3
    Join Date
    Sep 2007
    Posts
    368

    *

    Quote Originally Posted by sharmaine1111 View Post
    i want to terminate accounts in SSH and remove the DNS zones. Is this correct?



    will it delete the dns zones too?

    There is a suggestion that also setup a monitoring script that will check entries of users from /etc/passwd as well, if user account not exists and its ssh account exists so you get alert for that particular user, hence this way you can keep secure your server from a mess, also take backup before terminating of any account, may be in future your client need that.

  4. #4
    Join Date
    Jul 2009
    Posts
    178
    /scripts/killdns domain.com

    You can use this command even if the DNS zone file remain in remian.

Similar Threads

  1. WHM error when terminating accounts
    By zoogne in forum Hosting Security and Technology
    Replies: 5
    Last Post: 09-14-2006, 12:30 PM
  2. Cpanel and SSH on terminating and creating accounts
    By hardjoko in forum Hosting Security and Technology
    Replies: 6
    Last Post: 09-12-2006, 01:55 AM
  3. Qwest terminating shared accounts?
    By PCGH in forum Web Hosting
    Replies: 19
    Last Post: 03-24-2004, 08:32 PM
  4. Terminating Accounts & Backing up
    By [inx]Olly in forum Hosting Security and Technology
    Replies: 2
    Last Post: 11-17-2003, 09:18 AM
  5. terminating an account
    By .com in forum Hosting Security and Technology
    Replies: 3
    Last Post: 11-04-2003, 11:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •