I'm using the below command to mount CIFS share, but I want to fetch the UID and GID automatically in the same command so that I don't have to enter it manually every time I mount on different machines. Any advice how?
$ sudo mount -t cifs -o username=${USER},password=${PASSWORD},uid=<user>,gid=<group> \
//server-address/folder /mount/path/on/ubuntu