Usermod -aG sudo library

i am trying to authorizied it but it is not happening i am getting this error
library@Ahsan:~$ usermod -aG sudo library
usermod: Permission denied.
usermod: cannot lock /etc/passwd; try again later.
library@Ahsan:~$
someone help me plz

Hi,

Please describe the operating environment. You may need to run the command as root.

how i can do that can you explain it little more i am using ubuntu 22.04.5 LTS on window 11

the root user is the administrative user (superuser) and can perform administrative tasks such as changing permissions. You may have to log in as root or use the su or sudo commands.

https://www.cyberciti.biz/faq/become-superuser-on-ubuntu-linux/

Got It sir thanks let me implement it if i need any help i will ask thanks