I have the following problem I have edited the fstab to mount a partition with CIFS network.

// /home/user/sharefile/ cifs username=linux,password=12345678,user=user,uid=1001,gid=1000,rw,auto,_netdev,file_mode=0664,dir_mode=0775,sec=ntlm,vers=1.0 0 0

Install linux mint on a computer to be able to use it remotely I need a VPN connection. But at the time of starting the computer the CIFS partition cannot be mounted, so I must connect via VPN first and then run the command 'sudo mount -a' and the partition mount.

I dont have enougt experencia in Linux but there is the possibiity to create a executable on the desktop and the user click that and ejecuted commands like 'sudo mount -a'.

To connect by VPN I import a Linux.ovpn file and then connect like in the picture

enter image description here

I hope I explain well greetings.

New contributor
MoteCL is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Use OpenVPN to run a command after the VPN is established. See here: unix.stackexchange.com/questions/398036/… – Appleoddity Dec 1 at 17:11
  • You probably want noauto (and maybe nofail as well) for the fstab entry and mount /home/user/sharefile/ for the above. – Tom Yan Dec 1 at 17:16
  • @Appleoddity I do not understand much the post, sorry I do not understand much unix, but from the client side I must add script-security 2 up / path / to / script.sh I create 2 user one Linux is the administrador and the user is user for the pc – MoteCL Dec 1 at 20:34

Your Answer

MoteCL is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.