LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2005, 10:29 PM   #16
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15

Thanks again for your inputs. When I check the security settings, I apparently have selinux disabled already. When I select the enabled box, it allows me to change things in the section at the bottom.... but samba is not listed in there. Anyway, I just left it disabled.

I installed a tool called smb4k and it immediately allows me to view my network. However, when I try to open a folder, I get an error saying an error occurred while trying to mount the share. And in the details of the error it says "smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1".

So, I think you're right about it being a permissions/protection thing getting in the way.
 
Old 11-17-2005, 10:37 PM   #17
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
this will get rid of the smbmnt error
chown root smbmnt; chmod u+s smbmnt
but it can open up the security of the samba
 
Old 11-17-2005, 11:47 PM   #18
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by jugdish
Thanks again for your inputs. When I check the security settings, I apparently have selinux disabled already. When I select the enabled box, it allows me to change things in the section at the bottom.... but samba is not listed in there. Anyway, I just left it disabled.

I installed a tool called smb4k and it immediately allows me to view my network. However, when I try to open a folder, I get an error saying an error occurred while trying to mount the share. And in the details of the error it says "smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1".

So, I think you're right about it being a permissions/protection thing getting in the way.
I have no trouble viewing my samba shares in Konqueror. I was curious about this smb4k I keep on hearing about, so I tried installing it. Started playing with it and doing manual share. I have also encountered your error

"smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1".

It is a permission error. Here is the fix I found. Please try this:

1. On Smb4k menubar, go to Settings->Configure Smb4K
2. Clik on Super User.
3. On the Actions options, click on "Use super user priveleges to mount and unmount shares".
4. Click on OK.
5. You will now be prompted for the root password. Enter your root password. (The program will add entries on your sudoers file.)
6. You can try creating your shares again and see if this works.

Hope this works.
 
Old 11-18-2005, 12:20 AM   #19
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks Sirkware! I now have smb4k working perfectly. I can certainly get by with using smb4k for my network browsing needs.

It still haunts me how my Konqueror won't work with smb shares though. I'm even more convinced now that it's a permissions problem somewhere... similar to getting smb4k to work.
 
Old 11-18-2005, 12:39 AM   #20
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by jugdish
That being said, if I enter remote:/ and hitgo, I'll get a list of 4 icons: local network, network services, samba shares, and add a network folder...

Clicking on local network gives me a list of folder icons named with ip addresses - representing the machines on my network. If I click on a folder, it displays a single smb folder. Clicking on the smb folder produces an error: The file or folder smb://192.168.x.x/ does not exist.

Clicking on network services pushes down into an empty window.

Clicking on samba shares produces an error: The file or folder smb:/ does not exist.

Any clues as to what might be wrong?
I think your lmhosts file is not properly configured thats why you're seeing the ipaddress of the machines and not their names. Can you synchronize your /etc/hosts file with /etc/samba/lmhosts file? Here are the steps:

1. cd /etc/samba
2. mv lmhosts lmhosts.orig
3. cp /etc/hosts /etc/samba/lmhosts
4. Restart samba daemon : /etc/rc.d/init.d/smb restart

Hope this helps.
 
Old 11-18-2005, 11:23 AM   #21
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
I copied the hosts file as you recommended and restarted the daemons. Still can't access network machines using Konqueror.

Let me describe my problem again: open Konqueror, under GO menu select Network Folders. Four icons appear - Local Network, Network Sevices, Samba Shares, Add a Network...

Clicking on Local Network displays icons with IP addresses. If I click on one and then the subsequent SMB folder, it produces an error dialog box saying: The file or folder smb://192.168.x.x/ does not exist.

Clicking on Samba Shares immediately produces an error dialog box saying: The file or folder smb:/ does not exist.

From what others have said, clicking on Samba Shares should open to your workgroup and when you push into workgroup, you see all the machines on your network with their real names and can navigate through them as expected.

Please keep the ideas coming...
 
Old 11-20-2005, 07:48 PM   #22
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
Does anyone know how I can debug this? Please advise...
 
Old 11-20-2005, 08:39 PM   #23
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Can you try this on konqueror:

smb://<workgroup>/

i.e.
smb://myworkgroup/

What error do you get?
 
Old 11-20-2005, 08:59 PM   #24
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
I get the following error:

The file or folder smb://trigger/ does not exist.

(trigger is my workgroup)
 
Old 11-20-2005, 09:47 PM   #25
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Can you try disabling the lisa daemon? Lisa (LAN Information Server) does not have nothing to do with smb. After disabling the lisa daemon, please try to access your network using samba? Does it work? Let's try to eliminate the possibilities that the lisa daemon might be causing the problem.

I read in your previous post that you can navigate to individual pc (i.e. smb://computer1/) using samba without any error, is that correct? You're only having problem when accessing the workgroup?
 
Old 11-20-2005, 10:51 PM   #26
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
...my problem again: open Konqueror, under GO menu select Network Folders. Four icons appear - Local Network, Network Sevices, Samba Shares, Add a Network...

Clicking on Local Network displays icons with IP addresses. If I click on one and then the subsequent SMB folder, it produces an error dialog box saying: The file or folder smb://192.168.x.x/ does not exist.

Clicking on Samba Shares immediately produces an error dialog box saying: The file or folder smb:/ does not exist.
Actually, I can't get any network connectivity through Konqueror at all. If I type remote://lan in Konqueror (lisa daemon needs to be running for this), I can see icons with IP addresses - but when I try to push into one, then the subsequent SMB folder, I get the error message noted above.

So, long story long, my problem is not just with the workgroup - I cannot gain access to other computers on the network thru Konqueror.

I stopped lisa and observed no difference in the smb://workgroup behavior - still generates an error. I should also point out that the lisa daemon always seems to be difficult to restart or stop... at least in the service configuration tool.

Btw, thanks for your continued help on this...
 
Old 11-20-2005, 11:24 PM   #27
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
I too had a hard time starting the lisa daemon. It seems that the service configuration window hanged but the service startup was successful (maybe a bug). Anyway, I had searched thru google and it seems that other distros like Suse has users with problem the same as yours. I am using Fedora and all worked very well. Maybe, on the said distros, KDE and SAMBA is not fully polished.

I'll keep you posted when I find a solution to your problem.
 
Old 11-20-2005, 11:50 PM   #28
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Just a thought, have you tried using the default smb configuration file that came with the smb installtion? Can you try that file and see if it will work? No need to edit anything, just try if samba will work properly. Thanks.
 
Old 11-21-2005, 12:01 AM   #29
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by jugdish
Here's my current smb.conf.


# Global parameters
[global]
workgroup = TRIGGER
server string = Samba Server
preferred master = yes
wins support = yes
domain master = yes

[bubba]
comment = My Home Directory
path = /home/bubba
valid users = bubba
read only = no
If the default configuration file still doesnt work, can you try this one, using your original config file (as you have posted before), please add the following lines at the end of the global part:

log level = 2
log file = /var/log/samba/%m.log

Then send me the log files after trying your smb shares.
 
Old 11-21-2005, 10:00 AM   #30
jugdish
Member
 
Registered: Feb 2005
Distribution: RHEL WS 4.0
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks again.

Ok, I added the log stuff to my smb.conf file. I moved all the existing log files into a tmp dir. Then I restarted smb.

Here's my current smb.conf. Where would I find a default smb.conf file? I assumed that when I used SWAT the first time, I wrote over the original?

# Samba config file created using SWAT (not really)
# from trit (127.0.0.1)
# Date: 2005/11/17 09:04:04

# Global parameters
[global]
workgroup = TRIGGER
netbios name = trit
server string = Samba Server
username map = /etc/samba/smbusers
# preferred master = yes
# wins support = yes
# password server = None
security = SHARE
encrypt passwords = yes
# domain master = yes
local master = no
log level = 2
log file = /var/log/samba/%m.log

[bubba]
comment = bubba's Share
path = /home/bubba
valid users = bubba
writeable = yes
browseable = yes


# more smbd.log
[2005/11/21 09:42:22, 0] smbd/server.c:main(760)
smbd version 3.0.10-1.4E.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/11/21 09:42:22, 2] param/loadparm.c:do_section(3421)
Processing section "[bubba]"
[2005/11/21 09:42:22, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.x.100 bcast=192.168.x.255 nmask=255.255.255.0
[2005/11/21 09:42:22, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2005/11/21 09:42:22, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2005/11/21 09:42:22, 2] smbd/server.cpen_sockets_smbd(324)
waiting for a connection

# more nmbd.log
[2005/11/21 09:42:22, 0] nmbd/nmbd.c:main(669)
Netbios nameserver version 3.0.10-1.4E.2 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2005/11/21 09:42:22, 2] nmbd/nmbd.c:main(693)
Becoming a daemon.
[2005/11/21 09:42:22, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2005/11/21 09:42:22, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2005/11/21 09:42:22, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.x.100 bcast=192.168.x.255 nmask=255.255.255.0
[2005/11/21 09:42:22, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:192.168.x.100 Broadcast address:192.168.x.255 Subnet mask:2
55.255.255.0
[2005/11/21 09:42:22, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.
0
[2005/11/21 09:42:22, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet ma
sk:0.0.0.0
[2005/11/21 09:42:22, 0] libsmb/namequery.c:getlmhostsent(602)
getlmhostsent: too many columns in lmhosts file (obsolete syntax)
 
  


Reply



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
Network browser in KDE jugdish Linux - Networking 4 11-17-2005 09:24 PM
KDE question about Network Browser in SuSe 9.2 Pro (debian) Lleb_KCir Linux - Software 5 04-19-2005 03:56 AM
Can't use any browser in KDE! help! Slovak Slackware 9 11-22-2004 04:22 PM
Network Browser HaTHor Linux - Newbie 9 02-11-2003 04:53 PM
Browser and Network problems jkgg2001 Linux - Networking 1 10-17-2001 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

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
Open Source Consulting | Domain Registration