I used to mount a windows share in Ubuntu server, with an entry in fstab:
//data/SharedFolder /media/SharedFolder/ smbfs user,defaults,credentials=/root/.creds,uid=root,gid=root 0 0
/root/.creds is a text file with three lines, my username, password and domain.
Users on the ubuntu server could write to this mount, but then I
…