Is there any possibility to delete an user using uid??
I was trying to remove some user from my linux system and I checked is there any possibility to delete user using user id but i couldn't find anything related to that.....
|
The command to delete a user is userdel(8).
|
Quote:
|
Quote:
|
To use userdel, you need to be root. So, the only way I see is to do a script which use /etc/passwd to get the username from the uid. Then call userdel with the username found.
But I don't understand the requirement of UID use. |
An example script
Code:
lookup=4711 |
All times are GMT -5. The time now is 03:16 PM. |