Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Temporary create file in read-only cifs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 172
Location: Ancient Rome

PostPosted: Sun Sep 10, 2017 2:15 pm    Post subject: [SOLVED] Temporary create file in read-only cifs. Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Sun Sep 10, 2017 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 547
Location: NRW, Germany

PostPosted: Sun Sep 10, 2017 3:16 pm    Post subject: Re: Temporary create file in read-only cifs. Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21715

PostPosted: Sun Sep 10, 2017 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 172
Location: Ancient Rome

PostPosted: Sun Sep 10, 2017 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum