PDA

View Full Version : Fedora 12 Samba Config Crash


RobinQi
23rd November 2009, 10:23 PM
Very very disappointed with Fedora 12.

Just installed the server. Couldn't even get samba going.
I did System->Administration->Samba
Then trying to add a user. The config screen freezes and then after a while a crash report appears on the notification area. I was not able to add any users.

This is supposed to be a simple thing?
:mad:

leigh123linux
23rd November 2009, 10:40 PM
Very very disappointed with Fedora 12.

Just installed the server. Couldn't even get samba going.
I did System->Administration->Samba
Then trying to add a user. The config screen freezes and then after a while a crash report appears on the notification area. I was not able to add any users.

This is supposed to be a simple thing?
:mad:


Try running it as root , system-config-samba works OK here on F12 x86_64


su -
system-config-sambaNow add you shares & users.

RobinQi
23rd November 2009, 10:41 PM
BTW, to be more clear. I am on 64bit
Using smbpasswd in terminal works just fine. It is the config tool that keep crashing when adding new users.

leigh123linux
23rd November 2009, 10:44 PM
BTW, to be more clear. I am on 64bit
Using smbpasswd in terminal works just fine. It is the config tool that keep crashing when adding new users.

Me to ...............

angahith
5th December 2009, 09:13 PM
I'm having the same problem. system-config-samba freezes for me when I try adding users. (It works fine through smbpasswd)
I ended up adding the shares manually to the smb.conf, 'cause the config tool would let me add shares, but not show any added users, so i couldn't set the permissions right.

So yeah, it works but I admit I'm usually lazy and prefer using the config tool. :P

CiaW
5th December 2009, 11:39 PM
That might be an selinux issue, I'm not sure. I know I had a problem with it during beta and just searched bugzilla under system-config-samba and there were several reports; none that looked familiar. I'm pretty sure I just mentioned it as part of an selinux bug report under F12 beta. And I admit I haven't been following the emails that I get on that bug.

Leigh, do you su in a terminal and then type system-config-samba to get it working? It's not a critical thing for me, I was trying it to do some file sharing with Puppy and the Puppy forums mentioned using samba...

angahith
6th December 2009, 07:54 AM
Actually I disabled SElinux first thing after the install was done. The config wouldn't even open with SElinux active.

leigh123linux
6th December 2009, 11:19 AM
That might be an selinux issue, I'm not sure. I know I had a problem with it during beta and just searched bugzilla under system-config-samba and there were several reports; none that looked familiar. I'm pretty sure I just mentioned it as part of an selinux bug report under F12 beta. And I admit I haven't been following the emails that I get on that bug.

Leigh, do you su in a terminal and then type system-config-samba to get it working? It's not a critical thing for me, I was trying it to do some file sharing with Puppy and the Puppy forums mentioned using samba...


Yes ..........

keathmilligan
31st January 2010, 04:23 PM
Ran into this one as well. Running it from the command-line as root works. It doesn't have anything to do with SELinux.

Darr247
1st February 2010, 06:40 AM
From the terminal screen run

$ testparm

and see if it lists any errors.
(Note, that $ is the prompt you should see in the terminal with user-level privileges, like the '>' greater-than sign on CMD and DOS command lines... if you do su - for root-level as leigh123linux showed, you'll get a # prompt instead.)

frie2
20th February 2010, 04:35 PM
When I run server from su - or sudo -i I get this:

Traceback (most recent call last):
File "/usr/bin/system-config-samba", line 53, in <module>
mainWindow.MainWindow (debug_flag = debug_flag, use_dbus = use_dbus)
File "/usr/share/system-config-samba/mainWindow.py", line 97, in __init__
self.samba_data = sambaConfig.SambaConfig (self.samba_backend)
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaConfig.py", line 29, in __init__
self.parseFile ()
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaConfig.py", line 32, in parseFile
return self.parse (self.backend.readSmbConf ())
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaBackend.py", line 96, in readSmbConf
self.parser.parse (filecontents)
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 274, in parse
section = SambaSection (self, token.value)
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 37, in __init__
if not prototype and not self.set_name (name):
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 75, in set_name
raise Exception ("section name must be enclosed in brackets")
Exception: section name must be enclosed in brackets

Here is my smb.conf if it matters:


#======================= Global Settings =====================================

[global]

# ----------------------- Network-Related Options -------------------------
#
# workgroup = the Windows NT domain name or workgroup name, for example, MYGROUP.
#
# server string = the equivalent of the Windows NT Description field.
#
# netbios name = used to specify a server name that is not tied to the hostname.
#
# interfaces = used to configure Samba to listen on multiple network interfaces.
# If you have multiple interfaces, you can use the "interfaces =" option to
# configure which of those interfaces Samba listens on. Never omit the localhost
# interface (lo).
#
# hosts allow = the hosts allowed to connect. This option can also be used on a
# per-share basis.

# hosts deny = the hosts not allowed to connect. This option can also be used on
# a per-share basis.

workgroup = starbase-mccart
server string = Samba Server Version %v
netbios name = starbase-mccart

interfaces = lo eth0 eth1
hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
hosts deny = ALL

# --------------------------- Logging Options -----------------------------
#
# log file = specify where log files are written to and how they are split.
#
# max log size = specify the maximum size log files are allowed to reach. Log
# files are rotated when they reach the size specified with "max log size".
#

# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# security = the mode Samba runs in. This can be set to user, share
# (deprecated), or server (deprecated).
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#

security = user
passdb backend = tdbsam


# ----------------------- Domain Members Options ------------------------
#
# security = must be set to domain or ads.
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#
# realm = only use the realm option when the "security = ads" option is set.
# The realm option specifies the Active Directory realm the host is a part of.
#
# password server = only use this option when the "security = server"
# option is set, or if you cannot use DNS to locate a Domain Controller. The
# argument list can include My_PDC_Name, [My_BDC_Name], and [My_Next_BDC_Name]:
#
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
#
# Use "password server = *" to automatically locate Domain Controllers.

security = domain
passdb backend = tdbsam
realm = mccartrealm

password server = *

# ----------------------- Domain Controller Options ------------------------
#
# security = must be set to user for domain controllers.
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#
# domain master = specifies Samba to be the Domain Master Browser, allowing
# Samba to collate browse lists between subnets. Do not use the "domain master"
# option if you already have a Windows NT domain controller performing this task.
#
# domain logons = allows Samba to provide a network logon service for Windows
# workstations.
#
# logon script = specifies a script to run at login time on the client. These
# scripts must be provided in a share named NETLOGON.
#
# logon path = specifies (with a UNC path) where user profiles are stored.
#
#
security = user
; passdb backend = tdbsam

domain master = yes
domain logons = yes

# the following login script name is determined by the machine name
# (%m):
; logon script = %m.bat
# the following login script name is determined by the UNIX user used:
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# use an empty path to disable profile support:
; logon path =

# various scripts can be used on a domain controller or a stand-alone
# machine to add or delete corresponding UNIX accounts:

; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"


# ----------------------- Browser Control Options ----------------------------
#
# local master = when set to no, Samba does not become the master browser on
# your network. When set to yes, normal election rules apply.
#
# os level = determines the precedence the server has in master browser
# elections. The default value should be reasonable.
#
# preferred master = when set to yes, Samba forces a local browser election at
# start up (and gives itself a slightly higher chance of winning the election).
#
; local master = no
; os level = 33
; preferred master = yes


#----------------------------- Name Resolution -------------------------------
#
# This section details the support for the Windows Internet Name Service (WINS).
#
# Note: Samba can be either a WINS server or a WINS client, but not both.
#
# wins support = when set to yes, the NMBD component of Samba enables its WINS
# server.
#
# wins server = tells the NMBD component of Samba to be a WINS client.
#
# wins proxy = when set to yes, Samba answers 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.
#
# dns proxy = when set to yes, Samba attempts to resolve NetBIOS names via DNS
# nslookups.

wins support = yes
wins proxy = yes
dns proxy = yes

# --------------------------- Printing Options -----------------------------
#
# The options in this section allow you to configure a non-default printing
# system.
#
# load printers = when set you yes, the list of printers is automatically
# loaded, rather than setting them up individually.
#
# cups options = allows you to pass options to the CUPS library. Setting this
# option to raw, for example, allows you to use drivers on your Windows clients.
#
# printcap name = used to specify an alternative printcap file.
#

load printers = yes
cups options = raw

; printcap name = /etc/printcap
# obtain a list of printers automatically on UNIX System V systems:
; printcap name = lpstat
printing = cups



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

[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S
valid users = starbase-mccart\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = yes
printable = yes


# Un-comment the following to provide a specific roving profile share.
# The default is to use the user's home directory:
[Profiles]
path = /var/lib/samba/profiles
browseable = yes
guest ok = yes


[Shares]
path = /home/storage/
public = yes
writeable = yes
browseable = yes
guest ok = no

andyofne
22nd February 2010, 09:49 PM
I was having this same problem a week or two back trying to put F12 on a Dell Optiplex GX280. I could never get it to work just right. Along with the errors trying to use the SAMBA GUI I had similar errors trying to use the HTTP server GUI tool as well.

I ended up installing F10 and everything worked fine.

I could never get any answers here. I'm guessing I wasn't phrasing the question properly.

fortune
12th March 2010, 08:30 PM
I had the same problem with Samba Config and managed to track down the problem.

The python script stopped working because it couldn't properly parse the smb.conf file. Apparently it expects the [ to be the first character on the line or something when defining a new section. It turned out that my [netlogon] section had a leading character (probably a tab) that caused the problem. I removed the leading character and Samba Config works once again. :)

michaelr
2nd April 2010, 11:21 PM
I had the same problem with Samba Config and managed to track down the problem.

The python script stopped working because it couldn't properly parse the smb.conf file. Apparently it expects the [ to be the first character on the line or something when defining a new section. It turned out that my [netlogon] section had a leading character (probably a tab) that caused the problem. I removed the leading character and Samba Config works once again. :)

This was the exact problem w/ my smb.conf file. I had a TAB character before the [public] section. Removed the tab, saved the file and system-config-samba runs fine. :D

KCStymie
24th April 2010, 07:32 PM
This is a very troublesome situation with Samba in Fedora 12. The smb.conf file that is distributed does not appear to have any syntax problems yet the Add User function in Samba Server Configuration Tool 1.2.83 will hang when trying to add users. Is there any fix or workaround available?

Conegliano Travel Photos - Bani Suhayla - Florissant Instagram Photos