View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: expanding samba
PostPosted: Sat Nov 24, 2012 12:16 am 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1196
Location: Orlando FL
So if you are like me and have multiple hard drives in your system and a windows computer on your network, you may want to access more than just the /home and /myth folder on your myth box.
Code:
 sudo nano /etc/samba/smb.conf.media

You will see this
Code:
[myth]
path = /myth
public = yes
only guest = yes
writeable  = yes
printable = no
force user = mythtv
force group = mythtv
create mask = 0755


I just ccopied everything like so
Code:
[myth]
path = /myth
public = yes
only guest = yes
writeable  = yes
printable = no
force user = mythtv
force group = mythtv
create mask = 0755

[myth0]
path = /myth0
public = yes
only guest = yes
writeable = yes
printable = no
force user = mythtv
force group = mythtv
force mask = 0755


Save it and you don't even need to restart Samba!!

voila I now have easy access to my other drive.

_________________
My System


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Sat Nov 24, 2012 11:43 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
Excellent tip.
I would like to point out that smb.media.conf will be overwritten everytime that the advanced module is run. Edit /etc/mythvantage.cfg to disable the advanced module.

Also it's worth mentioning that this shortcoming has been addressed in R8. By default it will share every drive that was added via add_storage.py , one less thing to tweak!


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Sat Nov 24, 2012 9:59 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1196
Location: Orlando FL
except that add_storage.py wipes whatever drive you add!!! but yes good to know that it might revert.

_________________
My System


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Tue Mar 05, 2013 9:02 am 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1196
Location: Orlando FL
Apparently the update I did recently reverted this file I'm glad I documented it here.

_________________
My System


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Sat May 11, 2013 4:47 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 677
Excellent Post

For those of you that are tired of having to manually kick off samba you can always just make it start automatically courtesy of Jams

as root

Code:
add_service.sh smbd
add_service.sh nmbd


if you need to restart the service then use courtesty of brfransen

Code:
sudo sv restart smbd


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Mon May 13, 2013 8:10 am 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
mattbatt wrote:
except that add_storage.py wipes whatever drive you add!!! but yes good to know that it might revert.


Correct, but
Code:
add_storage.py --no_destruction
does not. See "Adding Additional Drives" under the Upgrading LinHES R7.X to R8 Wiki page.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject: Re: expanding samba
PostPosted: Mon May 13, 2013 6:29 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1196
Location: Orlando FL
Good to know.

_________________
My System


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu