View previous topic :: View next topic |
Author |
Message |
lekto Apprentice
Joined: 20 Sep 2014 Posts: 175 Location: Ancient Rome
|
Posted: Sun Sep 10, 2017 2:15 pm Post subject: [SOLVED] Temporary create file in read-only cifs. |
|
|
I have directory on my NAS with movies, that I share using samba in read-only mode. Sometimes I want to watch movie with subtitles, so I want to download subtitles using bashnapi on client, but since it's read-only I have to download movie to my home directory and then use bashnapi. Is there any way to mount read-ony cifs as read-write cifs, but with changes only visibles on client machine?
Last edited by lekto on Sun Sep 10, 2017 5:59 pm; edited 1 time in total |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sun Sep 10, 2017 3:08 pm Post subject: |
|
|
samba would need to be configured such that the share is RW but then the client fstab mount option to be RO. then a mount -o remount,rw .... to remount as RW should then work _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Sun Sep 10, 2017 3:16 pm Post subject: Re: Temporary create file in read-only cifs. |
|
|
lekto wrote: | I have directory on my NAS with movies, that I share using samba in read-only mode. Sometimes I want to watch movie with subtitles, so I want to download subtitles using bashnapi on client, but since it's read-only I have to download movie to my home directory and then use bashnapi. Is there any way to mount read-ony cifs as read-write cifs, but with changes only visibles on client machine? |
OverlayFS? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21770
|
Posted: Sun Sep 10, 2017 4:50 pm Post subject: |
|
|
Why not just download the subtitles to your home directory and leave the movie on the server? If bashnapi does not support separate directories for input versus output (it should, but maybe it doesn't), you could use a symlink in your home directory to point to the file on the server. |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 175 Location: Ancient Rome
|
Posted: Sun Sep 10, 2017 5:59 pm Post subject: |
|
|
Naib wrote: | samba would need to be configured such that the share is RW but then the client fstab mount option to be RO. then a mount -o remount,rw .... to remount as RW should then work |
I share folders with few computer in my place and some players was making mess like downloading album cover, so I make all this shares read only.
Dr.Willy wrote: | lekto wrote: | I have directory on my NAS with movies, that I share using samba in read-only mode. Sometimes I want to watch movie with subtitles, so I want to download subtitles using bashnapi on client, but since it's read-only I have to download movie to my home directory and then use bashnapi. Is there any way to mount read-ony cifs as read-write cifs, but with changes only visibles on client machine? |
OverlayFS? |
I just set up overlayfs and add in local.d command to clean every files I created and looks like it's working.
Hu wrote: | If bashnapi does not support separate directories for input versus output (it should, but maybe it doesn't), you could use a symlink in your home directory to point to the file on the server. |
I don't thought about it, but it's extra work every time when you want to watch movie. |
|
Back to top |
|
|
|