• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Problems with Samba in Fedore Core 4

Skaven

Senior member
I just did an installation of Fedora Core 4 on my home computer. I figured out how to mount my NTFS partitions from another drive and get my MP3 collection moved over to my linux drive. I have since been battling with Samba in an attempt to get the files shared on my home network. Both of them reside behind the router/firewall and have static IP addresses. I have the firewall disabled on the Linux box, so I don't think that could be the problem. I have read a bunch of howto and I have tried many samba config files. I can't figure out where I'm going wrong. Below is my current smb.conf file (parsed by testparm):


[global]
workgroup = HOOD
server string = Dionysus
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[data]
comment = Media Files
path = /data
read only = No
guest ok = Yes

I can see the samba server from my XP box. I have duplicated the main username on the linux box that I use in XP - same password and everything. I have made sure to add the linux users to the samba config and set the samba password. First I did this all through the command prompt, then I tried using the GUI. Both with the same result. When I double click on the samba server in the Network browser in XP I get the following error:

\\Dionysus is not accessible. You may not have permission to use this network resource. Contact the administrator....

The network path was not found.

I made sure that the data folder is universally writeable and readable in Linux. I'm stumped! Can anybody give me some advice?!
 
Hmm. Have your tried adding your Windows username as a samba user name? If not, do that, and then give that user permission to view certain shares in samba.
 
I set the samba passwords using smbpasswd. I have tried creating a windows username to match the linux/samba username and password, didn't work. I have tried using the IP address of the server within the XP network browser, and it didn't work. I tried the IP address of the server in the smb.conf file and that didn't work either. I used the GUI to create the smb.conf file with the same results. Where am I going wrong?
 
I would start over, delete the smbpasswd file and get a copy of the orginal smb.conf file.
1. Use EITHER GUI or Commandline, not both
2. Start with the user, smbpasswd -a username
3. Setup samba shares, for JUST that user
4. Set permissions on the local .filesystem to 777 for testing
 
Originally posted by: nweaver
I would start over, delete the smbpasswd file and get a copy of the orginal smb.conf file.
1. Use EITHER GUI or Commandline, not both
2. Start with the user, smbpasswd -a username
3. Setup samba shares, for JUST that user
4. Set permissions on the local .filesystem to 777 for testing


My guess is that he forgot the -a switch when adding passwords.
 
I used the -a switch from the beginning while setting the conifg from the command prompt. I also checked the logs, and they don't really give any useful information. There are no additional log entries when I try to log onto the Samba share from XP.
 
For some reason setting up samba in Fedora 4 seems to have problems I had a painful time doing it, and didn't have half as much trouble oin Fedora 3.
 
I have been starting and stopping the services manually from the command prompt, as well as using the services GUI. If the services were not running, would I even see the icon for the Linux box in my XP network browser?
 
FC4 has selinux, and it gives many users grief with samba, iirc. Not an FC user myself, I felt kicked to the curb with the split to REHL/FC, not to mention RPMed out after RH9
 
Right First Off

1)Can you access the list and access shares locally via smbclient ?

smbclient -L //the.pcs.hostname.or.ip.address -U username
and
smbclient //the.pcs.hostname.or.ip.address/sharename -U username

2)If that works move on to logs

3)on your linux pc open up 2 consoles either via going into a physical console or just starting 2 console sessions and logging in with someone with root / superuser privileges

1)tail -f /var/log/messages
2) tail -f /var/log/samba/access [I think I think it matched RHEL I use]


4)Post what happens to these log files , if there is no activity check your IPTABLES Rules whether it allows SMB packets .
 
Back
Top