I have a ubuntu machine which has different users on it. I wonder if there is a way so I multiple users can login to the same cifs server share using their different ubuntu credentials and different cifs server credentials.
Currently if one of the machine users want to connect, he has to mount to a certain directory like this:
user1@ubuntumachine:~$ sudo mount -t cifs -o "username=serveruser1,uid=$(id -u),gid=$(id -g) //server-address/folder /mount/path_on_ubuntu
and if user2
wants to mount he either has to mount into a different location or he needs to umount
user1
first. I wonder if there a way where user1
and user2
can mount into the same to the same directory /mount/path_on_ubuntu
?