1 Reply Latest reply: Apr 1, 2012 1:30 AM by Bjoern Rost RSS

    Cannot delete a user

    905746
      Cannot delete a user:

      root@suntt1 # getent passwd | grep 'k0013394966'
      k0013394966:x:2039:2000:0013394966:/export/home/k0013394966:/bin/bash

      root@suntt1 # /opt/RMee/bin/wa userdel --attrs uid=k0013394966
      ERROR: ERROR[4] login: Bad login/password
        • 1. Re: Cannot delete a user
          Bjoern Rost
          Hi,

          I have no idea what /opt/RMee/bin/wa ist but you could try '/usr/sbin/userdel k0013394966'. If that still does not work I'd simply remove the user by hand by removing it's line from /etc/passwd, /etc/shadow and deleting the home directory. Maybe also remove the user's additional groups from /etc/group.

          Or are you using some directory service instead of files? In that case you might have to specify that with userdel. You can check for that with 'grep passwd /etc/nsswitch.conf'

          Bjoern