 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

7th January 2006, 04:06 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
Samba: Can't see share
Newbie Alert!
I have a Fedora server which I want to be a Samba server so I can have my WinXP machines map a drive to.
I added a *big* 500gb disk and mounted it to /home/music
I currently have a "root" share working and a "music" share configured but not working. If I browse the "root" share, I do not see the /home directory at all. So this must be why my "music" share isn't working either. (?) I even tried re-mounting the "music" directory onto the "root" and I still can't see it via the Samba share.
What am I doing wrong?
smb.conf
[global]
workgroup = COUTURE
netbios name = media1
security = share
browseable = yes
[music]
comment = Our Music Collection
path = /home/music
writeable = yes
guest ok = yes
browseable = yes
[root]
path = /
writeable = yes
browseable = yes
guest ok = yes
Thanks for helping a newbie!
-Mike
|

7th January 2006, 06:32 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 31

|
|
The problem has to do with user permissions. You could make your shares public but that could be unsafe. This should help you out http://www.comptechdoc.org/os/linux/...ambausers.html -Good Luck Coffee
__________________
Dave :D
|

7th January 2006, 01:38 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
Maybe I didn't explain myself - or maybe I just don't get what's going on....(wouldn't be the first time!)
But my root share works "ok" except it doesn't show me the /home directory.
And my music share (path=/home/music) gives an error of "path not found"
SMBD.LOG
[2006/01/07 08:23:11, 0] smbd/service.c:make_connection_snum(615)
'/home/music' does not exist or is not a directory, when connecting to [music]
I only need a public share at this time to /home/music but I do want to eventually lock it down some.
I did have it first configured for "user" security but I got the same error messages.....
Help!
|

8th January 2006, 12:38 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
Here is an updated "smb.conf" file:
[global]
workgroup = couture
netbios name = media1
browseable = yes
local master = yes
guest account = smbguest
encrypt passwords = yes
security = user
smb passwd file = /etc/samba/smbpasswd
server string = media1
wins support = yes
log file = /var/log/samba/log.%m
max log size = 50
log level = 2
[music]
comment = Music Collection
path = /home/music
writeable = yes
browseable = yes
guest ok = yes
Here is my "fstab":
[root@media1 samba]# more /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb1 /home/music ext3 defaults 0 0
/dev/hdd /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
and here is my smb log stating that "/home/music" does not exist.
[2006/01/07 19:31:59, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [mcouture] -> [mcouture] -> [mcouture] succeeded
[2006/01/07 19:32:02, 0] smbd/service.c:make_connection_snum(615)
'/home/music' does not exist or is not a directory, when connecting to [music]
[2006/01/07 19:32:03, 0] smbd/service.c:make_connection_snum(615)
'/home/music' does not exist or is not a directory, when connecting to [music]
[2006/01/07 19:32:03, 0] smbd/service.c:make_connection_snum(615)
'/home/music' does not exist or is not a directory, when connecting to [music]
[2006/01/07 19:32:10, 2] smbd/server.c:exit_server(609)
Closing connections
...as you can see I have gained access with my userid however I still don't see my music share. If it is a "rights issue", then how do I make Samba see the "/home/music" directory?
Any help would greatly be apprieciated.
-Mike
|

8th January 2006, 01:32 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2

|
|
Quote:
|
Originally Posted by mcouture87
Newbie Alert!
I have a Fedora server which I want to be a Samba server so I can have my WinXP machines map a drive to.
I added a *big* 500gb disk and mounted it to /home/music
I currently have a "root" share working and a "music" share configured but not working. If I browse the "root" share, I do not see the /home directory at all. So this must be why my "music" share isn't working either. (?) I even tried re-mounting the "music" directory onto the "root" and I still can't see it via the Samba share.
What am I doing wrong?
smb.conf
[global]
workgroup = COUTURE
netbios name = media1
security = share
browseable = yes
[music]
comment = Our Music Collection
path = /home/music
writeable = yes
guest ok = yes
browseable = yes
[root]
path = /
writeable = yes
browseable = yes
guest ok = yes
Thanks for helping a newbie!
-Mike
|
I had this problem once, too. I stopped and restarted smb and everything started working as it should?
/etc/rc.d/init.d/smb stop
/etc/rc.d/init.d/smb start
|

8th January 2006, 02:20 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
I've stopped/started Samba many, many times.
It seems that I can only get access to files/directories that are one the 1st drive (which was the only drive when I first installed Fedora).
|

8th January 2006, 01:54 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
Well, in doing more searching on the 'net, I came across someone else having similar problems. Selinux!
I haven't been around Linux since Redhat 7'ish and don't believe Selinux was around back then (?).
I guess I have some reading up on Selinux to do.....
It was really funny that Samba would work on the / partition, but when I added a disk and mount point that the mount point in Samba (remote) would dissapear. ie: create a directory for the mount, go to a WinXP client, I was able to browse and look at that directory...then going back to the Linux server I would mount the drive to that directory and going back to the WinXP client, that directory would dissapear and not be available!
I didn't see any mention of Selinux in any of the Samba How-tos either...maybe I missed it? I think something that obvious a problem should be documented...again I could have missed it in the Samba docs but.....
Thanks people for your help!
-Mike
|

8th January 2006, 02:33 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2

|
|
|
Yeah, Mike, I think you're right. Now that I'm thinking about it, I recall having this problem, as well. It took me a good hour to figure out that SElinux was blocking my share. Sorry I couldn't be of more help. At least I can commiserate after the fact. For all our troubles, we can at least be happy that our Linux systems are more secure than our winders machines.
-Nate
|

9th January 2006, 12:38 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 16

|
|
|
No problem Nate. ...and yes, our systems are much more secure than any M$ system will ever be....
-Mike
|

16th January 2006, 04:28 PM
|
 |
Registered User
|
|
Join Date: Jan 2006
Location: Boston, MA USA
Age: 42
Posts: 22

|
|
|
Not sure if you've solved this already, but now that you've enabled home directory browsing in SELinux you can change the mount point to a folder under that directory (/home/username/sharedfolder). Make sure you point fstab to the new mount. Hope this helps!
-Shawn
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:27 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|