Jump to content

Linux/Samba issue


pwall

Recommended Posts

Posted

Definitely not truck related...but definitely related to my sanity. ;)

 

I have Fedora 6 installed and have samba configured to share out a couple of directories to my WindowXP boxes (home setup).

Anyways, I can mount any directory that is shared out, except for /home, which is a seperate disk (ie. not part of the root disk).

I've tried just about everything but can not get /home to mount.

 

Anyone have any linux/samba knowledge that they could share ?

 

Thanks!

Posted

Samba mounts home directories differently than others. How do you have it set up in smb.conf? I have home directories mounted on a centos 4 box like:

 

[homes]

comment = Home Directories

browseable = no

writable = yes

 

 

This allows me to run

 

\\servername\jim\

 

to access my own home directory. It also appears in my Network Places as "username on servername".

 

When you say separate disk, is a just a separate partition on 1 disk or is it physically a second hard drive?

Posted

What worked for me back in FC3 was to create a username that corresponded with that of the user on the windows machine.

 

Add a user, username

type 'smbpasswd -a username'

press enter when prompted for password (twice)

Posted
Samba mounts home directories differently than others.  How do you have it set up in smb.conf?  I have home directories mounted on a centos 4 box like:

 

[homes]

  comment = Home Directories

  browseable = no

  writable = yes

 

 

This allows me to run

 

\\servername\jim\

 

to access my own home directory.  It also appears in my Network Places as "username on servername".

 

When you say separate disk, is a just a separate partition on 1 disk or is it physically a second hard drive?

 

 

 

 

It's a seperate disk. Here is how /etc/fstab looks:

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1

LABEL=/boot /boot ext3 defaults 1 2

devpts /dev/pts devpts gid=5,mode=620 0 0

tmpfs /dev/shm tmpfs defaults 0 0

proc /proc proc defaults 0 0

sysfs /sys sysfs defaults 0 0

/dev/VolGroup00/LogVol01 swap swap defaults 0 0

/dev/hdb /homedirs ext2 defaults 1 2

 

What is driving me nuts it that it seems like I just can't share the drive (/homedirs).

It was called /home, I renamed it to homedirs just to try something else, it didn't help.

I can mount /tmp as an example with no troubles at all.

 

My other linux box is configured the same way (or at least I think so) and it does not have this problem (it's Fedora 1).

Posted
What worked for me back in FC3 was to create a username that corresponded with that of the user on the windows machine.

 

Add a user, username

type 'smbpasswd -a username'

press enter when prompted for password (twice)

 

 

 

Done that...hasn't helped. :banghead:

My windowxsp userid/passwd matches my linux userid/passwd as to make it simple and easy.

Posted

fstab looks correct although i would put it back to /home to keep it consistent with standard linux distros. What does the relevant section from smb.conf look like? Is is just the standard:

 

[homes]

comment = Home Directories

browseable = no

writable = yes

 

?

 

Normal samba shares use the name in brackets [share_name_here] to declare a share name. This allows you to run \\server\share_name_here\

Home directories are different. The share declaration looks like [homes] (above) but this does not create a share named "homes" and you can not run \\server\homes\

 

Instead, it creates a share name for every account you have set up in samba. Like i said, in my case, it creates a share named "jim" which only the "jim" account on the windows machines can access.

 

It must do this internally somehow as there is no other configuration needed to share home directories. Im not sure how samba would handle this with the home directories being in something other than /home (which is why i suggested changing fstab to be /home for this mount point). The fact that it is a separate disk may be part of the problem here. As I have never tried this, i cant say for sure.

 

Oh, you dont happen to have selinux enabled do you? This will cause all sorts of problems as well. Any firewall enabled too?

Posted

Thanks for the response.

 

I've tried everything to mount anything from /home....no go.

I can mount any other directory on the box, just not /home or directories below that.

Posted

Just a quick update.....no matter what I can the 'extra' disk that I have installed in the linux server, samba will not let me share it out.

I can share anything from the main disk, just not the 400gig empty drive.

:cool:

Posted

Are there any other partitions on the extra drive other than /home? what are the permissions of /home?

 

It should be:

 

drwxr-xr-x 6 root root 4096 Feb 12 2006 home

 

 

Are you getting any errors in any logs? Whats in /var/log/samba/ ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...