LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-31-2004, 07:12 PM   #1
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Problems with RH9 samba server configuration tool


I did something wrong somewhere, because this was working before I started tinkering with the smbconf file using gedit (lesson learned, but I normally don't trust the GUI).

Here is the output when I try to run the Samba Server Config tool from a command line...


[root@localhost /]# redhat-config-samba
Traceback (most recent call last):
File "/usr/share/redhat-config-samba/redhat-config-samba.py", line 20, in ?
mainWindow.MainWindow(debug_flag)
File "/usr/share/redhat-config-samba/mainWindow.py", line 58, in __init__
self.samba_data = sambaParser.SambaParser(self)
File "/usr/share/redhat-config-samba/sambaParser.py", line 24, in __init__
self.parseFile()
File "/usr/share/redhat-config-samba/sambaParser.py", line 55, in parseFile
token = self.createToken(line)
File "/usr/share/redhat-config-samba/sambaParser.py", line 127, in createToken token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent)
File "/usr/share/redhat-config-samba/sambaToken.py", line 20, in __init__
raise AttributeError, value
AttributeError: ('only guest', 'yes')


Thanks.
 
Old 08-31-2004, 08:13 PM   #2
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
I have the exact same issue - I got what I wanted out of hand-editing the file so I figured why bother fixing it. I guess it would be nice if it worked the way it was supposed to though.

Call me lazy - but it's been a long day.

The only difference with mine is the last line:
AttributeError: ('share modes', 'no')
 
Old 08-31-2004, 08:18 PM   #3
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Can you post smb.conf file so we can take a look?
 
Old 08-31-2004, 08:30 PM   #4
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Sure. The reason I need the gui is because I think I messed up my smbuser or smbpasswd files...I am confused over accounts at this point, and when I could not get the GUI back I was getting worried.

I have only included the lines that are not commented out:


[global]
workgroup = MSHOME
hosts allow = 10.1.1 127.
server string = My Samba Server
encrypt passwords = yes
pam password change = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[public]
path = /var/myweb
public = yes
only guest = yes
writable = yes
printable = no
 
Old 08-31-2004, 08:42 PM   #5
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Don't see anything particularly wrong with that. I don't know why the tool won't parse it for you. Run testparm from the command line and see if it gives you any errors.
 
Old 08-31-2004, 08:45 PM   #6
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
This may seem a bit crazy, but until I could find the actual error, I commented out lines 19 & 20 of /usr/share/redhat-config-samba/sambaToken.py and it looks like it's working fine.

I'll post again when I've found the actual error - but I'm pretty sure it's got nothing to do with your samba configuration.

Note that I'm not recomending this as a fix - those line appear to specifically exists so that if the app thinks there's something wrong with it, it can exit gracefully. However, it does look usable in this state (for the moment anyway)
 
Old 08-31-2004, 09:42 PM   #7
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
Boy, it really has been a long day.

open your smb.conf file and edit out the:
only guest = yes
line
 
Old 08-31-2004, 11:30 PM   #8
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
That did it. Thanks.

Also, I had to change the Server Security from User to Share.

Thanks.

I LOVE LINUX!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Configuration tool GUI Artik Debian 5 04-30-2005 05:15 AM
Problems connecting winxp to RH9 samba server NRHBasher Linux - Newbie 2 03-12-2004 09:11 PM
Need Help In Building a Web-based Firewall Configuration Tool for Linux(RH9-iptables) eason Linux - General 1 02-21-2004 06:34 PM
RH9...Where did my Samba server setting go? naloxone Red Hat 1 09-17-2003 12:45 PM
Need Help with samba printer server on RH9 phaeton Linux - Networking 2 07-13-2003 11:11 PM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration