Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi all, I'm trying to set up Samba on Fedora 10 so that I can connect to my Windows box and it can connect to my Linux box.
I originally used this tutorial to configure it (Yes, I know it's for Ubuntu.) because that worked for me when I was setting up my Ubuntu system.
I then came across this little guide and it kind of worked.
From Windows when I run "net view \\192.168.1.4" (ip of my linux system) it shows the shares I have set up. However, Windows does not show the linux pc in My Network Places. But I have been able to connect by mapping the shares in Windows but that was only when I had no security in place in Samba.
Also, in Fedora, it can see my Windows box but when I open it, it looks like it's loading something but doesn't load anything. I am positive that there are shares on my Windows machine but Samba isn't picking them up.
Any ideas, help, or a point in the right direction is awesome. Let me know if more info is required. Thanks.
Below is my smb.conf file...
Code:
# Global parameters
[global]
workgroup = SEPTAGON
netbios name = LESLIE
server string =
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
# Share
[Data]
path = /media/Data
valid users = User
read only = No
create mask = 0777
directory mask = 0777
Thank you for your config file rylan76, but it didn't work for me.
Quote:
Originally Posted by archtoad6
Do you have both Samba daemons, smdb & nmdb running? You can run:
Code:
$ ps aux |grep mb[d]
to check.
Here is my output of that command. I'm not sure what it means however.
Code:
# ps aux |grep mb[d]
root 2027 0.0 0.1 17108 2600 ? Ss 15:05 0:00 smbd -D
root 2029 0.0 0.0 17108 1188 ? S 15:05 0:00 smbd -D
Samba now seems to be picking up none of my other systems but Windows can still Samba's shares when using the net view command. Maybe this is a firewall issue? I set Samba as a trusted service though.
Is that your actual config? Do you really have a user called User (why are you even bothering to restrict to only one user when you set permissions to 777)?
What do your samba logs tell you when you are trying to connect?
Try disabling SELinux temporarily (setenforce 0) and see it that changes things (setenforce 1 to turn it back on)
Last edited by billymayday; 12-07-2008 at 07:46 PM.
Is that your actual config? Do you really have a user called User (why are you even bothering to restrict to only one user when you set permissions to 777)?
What do your samba logs tell you when you are trying to connect?
Try disabling SELinux temporarily (setenforce 0) and see it that changes things (setenforce 1 to turn it back on)
I actually have no idea how that got like that. The correct smb.conf that I'm using is below. I must have copied the old one by mistake. I have everything set as 777 right now for testing purposes. I intend to increase security and permissions once it is working.
Which Samba log are you referring to? For the sake of space I don't want to post every log in the /var/log/samba directory.
And SELinux has not changed anything. Thank you though.
archtoad6, I tried starting nmbd "/usr/sbin/nmbd -D" and "/etc/init.d/nmb restart". Neither has worked. Below is my output of "ps aux |grep mb[d]" now.
Below is the smb.conf file I am using now. I have my system set up as a WINS server on my Windows machine so I've added wins support in there.
Code:
# Global parameters
[global]
workgroup = SEPTAGON
netbios name = LESLIE
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
wins support = yes
# Share
[Data]
path = /media/Data
valid users = Shane
read only = No
create mask = 0777
directory mask = 0777
Yes, Shane is the user I log onto my system as. As I understand I just need to run smbpasswd to set samba up with that user.
I have the following log files in /var/log/samba
log.smbd
log.nmbd
log.__ffff_192.168.1.3 <-- I assume you mean this one as that is the ip of my Windows machine. However, it is an empty file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.