I write a script in BASH that performs MOUNT for a particular folder The MOUNT command requires a UID & GID I want the script to take from etc / passwd / The details and each will be written to his own variable and then in the MOUNT command I will summon the variables The script:
#Var
Username='user'
Password='password'
Uid=''
Gid=''
$ mount -t cifs -o username=$Username,password=$Password,uid=$Uid,gid=$Gid,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 //192.168.1.120/storage /mnt/storage