Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can't run samba at my Laptop (fedora11 gnome).
I have installed the packages:
samba, samba-client, samba-common, samba-swat, samba-winbind, and system-config-samba. (I have removed + installed again&again&again!)
Then I enabled the winbind server the nmb server and the smbd server:
su -c 'chkconfig --add smb'
su -c 'chkconfig --list 2345 smb on'
I did it for the 3.
I restarted the laptop...
When I try to run the samba I just can't...
System-Administration-Samba don't do nothing
But in terminal I type $system-config-samba and when I enter the root pass
I receive this:
Traceback (most recent call last):
File "/usr/bin/system-config-samba", line 49, in <module>
mainWindow.MainWindow (debug_flag = debug_flag, use_dbus = use_dbus)
File "/usr/share/system-config-samba/mainWindow.py", line 104, 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/slip/dbus/polkit.py", line 65, in enable_proxy_wrapper
return func (*p, **k)
File "/usr/lib/python2.6/site-packages/scsamba/dbus/proxy/sambaBackend.py", line 48, in readSmbConf
return self.dbus_interface.readSmbConf ()
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.Exception: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python2.6/site-packages/slip/dbus/service.py", line 81, in wrapped_method
retval = method (self, *p, **k)
File "/usr/lib/python2.6/site-packages/scsamba/dbus/service/sambaBackend.py", line 52, in readSmbConf
return self.backend.readSmbConf ()
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaBackend.py", line 104, in readSmbConf
self.parser.parse (filecontents)
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 281, in parse
section = SambaSection (self, token.value)
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 44, in __init__
if not prototype and not self.set_name (name):
File "/usr/lib/python2.6/site-packages/scsamba/core/sambaParser.py", line 82, in set_name
raise Exception ("section name must be enclosed in brackets")
Exception: section name must be enclosed in brackets
Try running "testparm" to check smb.conf for errors if it exists.
Double check if the smb (or is it smbd) symlinks exist in /etc/init.d/rc.5/ and rc.3, etc.
Look at the startup script itself in /etc/init.d/. do you see a line like this:
# chkconfig: 2345 20 80
Try restarting the services from the console using the service commaand. Do you see any error messages.
Since you have swat, you could use that to configure samba. run "sudo chkconfig swat on" to enable it in /etc/xinet.d/swat, and point your web browser to "http://localhost:901". From there you can configure samba and restart services.
Your python installation could be corrupt as well (or the wrong version) but the failures seem to deal with a missing smb.conf file. If the other system-config-* modules work, then python should be OK.
Thanks a lot for your reply!!
1) Yes the file exists.
2) I didn't found any /etc/init.d/rc.5/ BUT i found /etc/rc.* etc...
3) Whats is the filename of the start up script?(I am new to linux!)
4) I restarted all the services and I didn't receive any error.
5) OK I enabled swat and I am able to browse samba gui from my browser. BUT SELinux was alerted me with this:
SummarySELinux is preventing the swat from using potentially mislabeled files (/root). Detailed DescriptionSELinux has denied swat access to potentially mislabeled file(s) (/root). This means that SELinux will not allow swat to use these files. It is common for users to edit files in their home directory or tmp directories and then move (mv) them to system directories. The problem is that the files end up with the wrong file context which confined applications are not allowed to access. Allowing AccessIf you want swat to access this files, you need to relabel them using restorecon -v '/root'. You might want to relabel the entire directory using restorecon -R -v '/root'.
6) I don't have problems with other system-config-*, the only problem is samba.
On my system, the startup script is /etc/rc.d/smb.
/etc/rc.d is a symlink to /etc/init.d on SuSE linux.
Your startup script could be smbd instead.
There will also be a /etc/rc.d/nmb and /etc/rc.d/winbind script as well.
There will be links to them in /etc/rc.d/rc.{2..5}/ given the run levels you indicated.
My smb service script starts with this header:
Code:
#! /bin/sh
# Copyright (c) 1999-2004 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Lars Mueller <lmuelle@suse.de>
#
# /etc/init.d/smb
# and its symbolic link
# /usr/sbin/rcsmb
#
### BEGIN INIT INFO
# Provides: smb
# Required-Start: $network $remote_fs $syslog
# Should-Start: cupsd winbind nmb
# Required-Stop: $network $remote_fs $syslog
# Should-Stop: cupsd winbind nmb
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Samba SMB/CIFS file and print server
# Description: Samba SMB/CIFS file and print server
### END INIT INFO
The smb service starts the nmb, winbind and cupsd services entering run levels 3 and 5.
I used to have Fedora 11 on my netbook until recently. I thought that it had a /etc/init.d/ directory.
You could run "rpm -qf /etc/rc.d"
Then validate the package that is returned:
sudo rpm -qV <package_name>
or all in one step:
sudo rpm -qV $(rpm -qf /etc/rc.d)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.