How to delete a user account in linux bases application.

Hi,

Can anyone please guide me how can I remove/block a user from a server access.

/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john

I used the above command to add a user "john". How do I delete and block john.

Appreciate your responses.

you can lock an account.
passwd -l john

Or delete it
userdel -r john where the -r denotes remove home directory, which is optional.

what do you mean by "block" a user?
as sureshcisco emntioned, you can only lock or delete users. if you're talking abt RBAC, its different issue:D