Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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've been struggling with this on and off for several weeks when I have time after work and am unable to get Win7 to see any shares that I have in Fedora.
Both are part of the workgroup "workgroup" without quotes
I have disabled SELinux as I know nothing of this and it will likely take me several months of studying to understand how to work it.
smb and nmb are currently running.
I have installed system-config-samba
I set up a share name and directory
Under the Security tab, the Authentication Mode is set to User
Authentication Server and Kerberos Realm values are both blank.
Encrypt Passwords: Yes
No Guest account
I have set up a user with the same name as on my Windows PC.
Permissions on my share in system-config-samba are set to Read Only.
Visibility is set to Visible.
Windows 7 Firewall is dropped.
I went into Firewall Configuration and under both the Trusted and Home sections, checked off samba and samba client.
Under /etc/fstab I have my drive's ntfs-3g dmask set to 022,fmask is 133 and umask is 0022.
When I browse Windows Explorer to the Network icon, only my own Windows PC shows up.
It's definitely not a firewall issue as I dropped the firewall service and refreshed the Windows Explorer window and nothing shows up.
Re-enabled the Fedora firewall immediately after since it was not the cause of the problem.
I can ping the server from my desktop.
I should mention they're both on the LAN, in the same subnet.
I'm not sure what else I am missing.
I'm guessing that since I am using system-config-samba, I no longer need to configure the /etc/samba/smb.conf file?
I've noticed that some values in it have been commented out with a ; after I installed system-config-samba.
Regardless, I do see for example:
[global]
hostname lookups = yes
hosts allow = win7pc
workgroup = workgroup
server string = Samba Server Version %v
bind interfaces only = True
interfaces = lo p33p1 10.0.0.0/24
hosts deny = ALL
security = user
;encrypt passwords = yes
smb passwd file = /etc/smbpasswd
guest ok = no
;guest account = nobody
[music]
netbios name = music
path = media/g/music
;read only = yes
;browseable = yes
valid users = alemoo
[global]
hostname lookups = yes
hosts allow = win7pc
workgroup = workgroup
server string = Samba Server Version %v
bind interfaces only = True
interfaces = lo p33p1 10.0.0.0/24
hosts deny = ALL
security = user
;encrypt passwords = yes
smb passwd file = /etc/smbpasswd
guest ok = no
;guest account = nobody
[music]
netbios name = music
path = media/g/music
;read only = yes
;browseable = yes
valid users = alemoo
netbios name belongs in the global section and your path is not absolute. Try the following:
[global]
workgroup = workgroup
netbios name = music
server string = Samba Server Version %v
bind interfaces only = True
;interfaces = lo p33p1 10.0.0.0/24
security = user
passdb backend = tdbsam
guest ok = no
;guest account = nobody
[music]
path = /media/g/music
browseable = yes
testparm is a command line tool to check the syntax of your smb.conf file.
netbios name belongs in the global section and your path is not absolute. Try the following:
[global]
workgroup = workgroup
netbios name = music
server string = Samba Server Version %v
bind interfaces only = True
;interfaces = lo p33p1 10.0.0.0/24
security = user
passdb backend = tdbsam
guest ok = no
;guest account = nobody
[music]
path = /media/g/music
browseable = yes
testparm is a command line tool to check the syntax of your smb.conf file.
I noticed you wanted me to use music for the netbios name but is it not asking me for my computer's hostname which is orion?
Also, testparm only gave me one warning about having one of the shares with a name longer than 12 characters, but I'm assuming that won't cause the entire share process to break.
Here's what I have now.
[global]
workgroup = workgroup
netbios name = music
server string = Samba Server Version %v
bind interfaces only = True
;interfaces = lo p33p1 10.0.0.0/24
security = user
passdb backend = tdbsam
guest ok = no
;guest account = nobody
Thanks Michaelk, it shows up.
I just had to wait a bit for it to refresh.
It says it can not access the path, so I'll have to see what that's about now...
Then replace
netbios name = music
with
netbios name = orion
Be sure to restart samba.
Can you access any of the shares on windows PC?
No, it shows up the computer name under Network, so I can see Orion there.
When I try to get in, it says Windows can not access \\orion.
Diagnostics simply said to make sure it allows incoming connections for file and printer sharing.
I think I'm going to drop the firewall on the server (orion) real quick to try it out and see if that's where the issue is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.