View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Oct 12, 2009 11:37 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
I need to drop some video files off of my windows machine and onto my R6 machine. I enabled Fuppes and can see the folders on my LinHES machine but I can't write to them. I tried chainging the ownership to Mythtv. I even enabled password and loged into the folder as root and still I couldn't write to Mythtv.

What am I missing here?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 13, 2009 10:10 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
How did you configure Samba?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 13, 2009 11:09 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
I guess that's where I need the help I thought I configured Samba thorugh one of the settings menu. While poking around the internet looking for an answer I've been changing the smb.conf file.

Before all of that however I noticed that when I do
Code:
  /etc/rc.d/samba start 

I get
Code:
:: Starting Samba Server                                                 [FAIL]

I just want to write some files from my xp machine on to my linHES machine.
Thanks for your help cecil.


Here is my smb.conf file
Code:
 #
#======================= Global Settings =====================================
[global]

workgroup = WORKGROUP
server string = MattsMythTv

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
   security = user

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.1. 192.168.2. 127. 192.168.0.

   load printers = no

# you may wish to override the location of the printcap file
;   printcap name = /etc/printcap

;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = <NT-Server-Name>

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
;   realm = MY_REALM

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
;   passdb backend = tdbsam

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
#       this line.  The included file is read at that point.
;   include = /usr/local/samba/lib/smb.conf.%m

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#   Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one   WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
   dns proxy = no

# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
;  add user script = /usr/sbin/useradd %u
;  add group script = /usr/sbin/groupadd %g
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;  delete user script = /usr/sbin/userdel %u
;  delete user from group script = /usr/sbin/deluser %u %g
;  delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================

include =  /home/mythtv/templates/user.shares
include =  /etc/samba/smb.conf.media
include =  /etc/samba/smb.conf.home
; path = /myth
; valid users = mythtv
; public = yes
; writable = yes
; browseable = yes

_________________
My System


Last edited by mattbatt on Tue Oct 13, 2009 11:15 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 13, 2009 11:12 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Oh also Fuppes was throwing out a huge number of errors so I just uninstalled it.

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 14, 2009 10:14 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Is there something else besides Samba that is doing the folder sharing? I stopped Samba and I was still able to logon and see the /myth folder.
I have uninstalled Fuppes completely what else might there be?

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 14, 2009 11:27 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
So I found out that if you turn off the network share in the LinHES Settings/ Advanced Settings menu then Samba Disappears from the /etc/rc.d/ menu. I turned it off and back on. Then I tried checking the Readonly, then unchecked it, all of which didn't work. The part that I can't figure out is that when you turn off the network share in the Settings Menu you can't see the folders anymore, but when you turn it on you still can't start or restart Samba, I get a [fail] everytime.

What does that mean? how do I fix it so that the folder has user privileges instead of just share?

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 14, 2009 11:36 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
I'll attempt to duplicate this in the next few days. Please open a ticket on flyspray with the issue.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 15, 2009 7:16 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Ticket Opened http://mysettopbox.tv/flyspray/index.ph ... d=110&type[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 15, 2009 7:41 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Ok it's now working I'm not sure If it's related to restarting windows I am going to experiment until I find the answer.

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 15, 2009 7:44 pm 
Offline
Joined: Fri Apr 21, 2006 2:06 pm
Posts: 32
You can always go the other way... Install Windows SFU http://www.microsoft.com/downloads/deta ... laylang=en

which will give you the ability to do NFS on windows.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 15, 2009 10:29 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Yes you must at least log out of Windows for changes in Samba to take effect. AND the problem is the READONLY check boxes are backwards. If you check read only then you can write to the folder. If they are unchecked then you can only read.

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 16, 2009 5:24 am 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
Here is my smb.conf, in which I have a bunch of differently configured shares (this doesn't even include them all, only important ones):
Code:
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.

#======================= Global Settings =====================================
[global]

   workgroup = WORKGROUP
   netbios name = mythbox
   server string = LinHES RC6.00.09

   security = user
   hosts allow = 192.168.1.  127.
#   hosts deny = 192.168.1.2
   guest account = nobody

   log file = /var/log/samba/%m.log
   max log size = 50

   local master = yes
   os level = 33
   domain master = yes
   dns proxy = no

   # Without this, samba fails to start? Go figure.
   printcap name = /etc/printcap

   create mask = 0664
   directory mask = 0775

#============================ Share Definitions ==============================
[homes]

   comment = Home Directory
   browseable = yes
   writable = yes
   valid users = abc, xyz, router
   public = no

[video]
   
   comment = Movies and Television
   path = /myth/video
   browseable = yes
   public = no
   writeable = yes
   valid users = abc, xyz
   force user = mythtv
   force group = mythtv

[bkp]
   
   comment = Backup
   path = /myth/bkp
   browseable = yes
   public = no
   writeable = yes
   valid users = abc, xyz

[tv]
   
   comment = Recorded Shows
   path = /myth/pretty
   browseable = yes
   public = no
   writeable = no
   valid users = abc, xyz

[logs]
   
   comment = Logfiles
   path = /var/log
   browseable = yes
   valid users = abc
   public = no
   writeable = no

[tmp]
   
   comment = Temporary Stuff
   path = /myth/tmp/work
   browseable = yes
   valid users = abc
   public = no
   writeable = yes

[shared]
   
   comment = Shared fils
   path = /myth/shared
   browseable = yes
   public = no
   writeable = yes
   valid users = abc, xyz
   create mask = 660
   directory mask = 770
   force create mode = 660
   force directory mode = 770
   force group = mythbox


Couples things: I think the correct way to start services is by using the 'sv' command, e.g.,
Code:
# sv start smbd; sv start nmbd

'smbd' and 'nmbd' are the two services for Samba. I don't get errors when I use the 'sv' command. I used to use the /etc/rc.d method in the past, and I think I would get errors, but it would still work.

Another issue is that you need to create separate Samba users using the 'smbpasswd' command. If you haven't done this, don't expect any of your sharing settings to work.

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 16, 2009 6:37 am 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
Thank you Langelgjm
I will be experimenting with replacing my smb.conf file. Just one question the
Code:
valid users = abc, xyz

thing are abc and xyz place holders or are those the actual entries?
Thanks

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 16, 2009 6:53 am 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
Yes, they are placeholders in this case. I scrubbed the actual users names from the file.

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu