Re: Cleaning out users



Johnny Rebel wrote:
laredotornado wrote:
Hi,

I'm using Fedora Core 6. As root user, logged in remotely, how do I
identify and delete/disable all users with remote access to the
machine except user "root" and user "dave"?

Thanks, - Dave

vipw. Don't delete the system/daemon users along with root and dave.

JR.


Or edit /etc/ssh/sshd_config to restrict access to specific users.

And *NO*, don't use vipw for this! It's too easy to make mistakes. If you have a well-defined set of users to delete, use "userdel".
.



Relevant Pages

  • Re: Cleaning out users
    ... laredotornado wrote: ... I'm using Fedora Core 6. ... As root user, logged in remotely, how do I ... identify and delete/disable all users with remote access to the ...
    (linux.redhat)
  • Re: Cleaning out users
    ... Nico Kadel-Garcia wrote: ... I'm using Fedora Core 6. ... As root user, logged in remotely, how do I ... While I understand what you are saying, it does not meet the stated requirement of "all users with remote access" - which covers ftp, telnet, smb, ssh, etc... ...
    (linux.redhat)
  • Two word username
    ... I'm setting up a samba sever (I'm not sure which version, ... version # I will) on Fedora Core 3 to work on a small home network. ... getting errors- until I finally decided to try changing the username ... from "remote access" to remote, I've been able to use usernames with a ...
    (comp.os.linux.networking)
  • Two word username
    ... I'm setting up a samba sever (I'm not sure which version, ... version # I will) on Fedora Core 3 to work on a small home network. ... getting errors- until I finally decided to try changing the username ... from "remote access" to remote, I've been able to use usernames with a ...
    (linux.redhat)