LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba pissing me off! (https://www.linuxquestions.org/questions/linux-server-73/samba-pissing-me-off-551078/)

jlukensow 05-03-2007 03:57 PM

Samba pissing me off!
 
Allright, here we go.

I have Samba installed on Fedora 6, I can from a Windowx box, browse the network and shares. But, on my Linux box, I can see the network and computer, however, I cannot view the shares of the Microcrap computers. Says "Contents of Network cannot be shown"

Any ideas?

Brian1 05-03-2007 05:13 PM

What app are you using to browse the network with?

Brian

ErrorBound 05-03-2007 10:38 PM

Do you have a firewall? Try disabling it...accessing windows shares uses all sorts of weird ports that you probably have closed.

Or, it's a setting in a config file. But don't ask me which one.

jlukensow 05-04-2007 08:02 AM

I'm just using the GNOME, if that is what you are asking. Basically, I click on "Network Server" then a list of avaiable computers pops up, but I cant get in. I have tried disabling the Firewall, but let me try disabling the firewall on the Microsoft computers, I havent tried that yet.

Thanks

ajg 05-06-2007 10:26 AM

1) On the MS box, make sure "File & Printer Sharing for Microsoft Networks" is checked under the properties of the network card. Sounds stupid I know, but it bit me in the bum the other day - assumed it was set, didn't check it and spent a good while beating my head against a wall.

2) You need to allow inbound connections on UDP ports 137 and 138, and TCP port 139 - but only from the IP addresses of the computers which need access.

If it still doesn't work, you need to make sure that "Enable NetBIOS over TCP/IP" is checked. Have a look at this for more info. If it's anything less than Windows 2000, this option won't be there.

gautamatul82 05-06-2007 02:24 PM

Hi there....

After performing the steps listed above, we are done from the MS-Windows end, now we need to set up our Linux box.

Note if you have specified username based shares then you need to access that share using the same username which is having an access to it else you can perform the steps given below --

1) Make an entry to your /etc/fstab file in the same way as it is given -----

<//Windows share-name> <Mount dir> <FS type> <Options>

e.g.
//10.10.10.10/Upload /mnt/upload smbfs credentials=/etc/samba/pass_info,uid=201,gid=201 0 0

where --
//10.16.10.10/Upload is the name of the MS-Windows share.
/mnt/Upload is the name of the directory on which Windows
share will be mounted.
smbfs is the file system for Windows share.
credentials=/etc/samba/pass_info is a file that contains the authentication information for accessing windows share. This information is in the format
Username=abcd
Password=xyz
uid=201 is the effective UID of the linux user who will access the share.
gid=201 is the effective GID of the linux user who will access the share.
0 is used for dumping the filesystem.
0 is used for fsck (filesystem checks)


After making an entry, save your /etc/fstab file and issue the command -- mount -a

Also, the "credentials" is used to access the share if the permission has been given to a specific user else there is no need to mention the credential field in /etc/fstab file.

Check if these steps help you out and your problem gets resolved or not.




ATUL


All times are GMT -5. The time now is 01:24 AM.