PDA

View Full Version : Strange SAMBA Sharing Issue


pm124493
October 17th, 2007, 11:40 AM
I am running Gutsy Gibon on a E2180 ECS-965P-A with 2GB memory, 2 SATA HDD. /dev/sda is the root/boot dirve and /dev/sdb is store anything drive. I have /dev/sdb mounted as /media/backup and samba as //kubuntu/backup.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sr0 /media/cdrom iso9660 defaults 0 0
# /dev/sda1
UUID=f3f679c7-af41-476d-8e01-5899ee12e476 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sdb1
UUID=eccae0d5-9e83-47ca-a931-7b6b63cc719f /media/backup ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sda3
UUID=3806555d-ca44-4cd2-9f09-ccd124e886f6 /media/share ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sda2
UUID=2ab8571e-3869-43df-91eb-8a3f8a782369 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
/dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0

I have another share on /dev/sda mounted as /media/share (samba as //kubuntu/kubuntu_share.

My login to the Kubuntu box is the same as the WINXP box. I created user with smbpasswd using the same username and password as the Kubuntu user which is also the same username and password on the WINXP box. Makes things simple, eh.

My XP box can see both shares, but I can only access the share on /dev/sda (root) in the media folder. I can not access the /dev/sdb HDD mounted as /media/backup. I can access it locally on the Kubuntu box okay. I can not access it locally via Dolphin network view though I can see the other local share via Dolphin.
pmcdade@KUBUNTU:/media$ ls -al
total 32
drwxr-xr-x 6 root root 4096 2007-10-17 10:25 .
drwxr-xr-x 22 root root 4096 2007-10-11 08:36 ..
drwxr-xr-x 10 pmcdade pmcdade 4096 2007-10-17 10:30 backup
lrwxrwxrwx 1 root root 6 2007-09-27 03:34 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2007-09-27 03:34 cdrom0
lrwxrwxrwx 1 root root 45 2007-09-27 03:36 .directory -> /etc/kubuntu-default-settings/directory-media
lrwxrwxrwx 1 root root 7 2007-09-27 03:34 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2007-09-27 03:34 floppy0
-rw-r--r-- 1 root root 0 2007-10-16 15:47 .hal-mtab
lrwxrwxrwx 1 root root 42 2007-09-27 03:36 .hidden -> /etc/kubuntu-default-settings/hidden-media
drwxr-xr-x 19 pmcdade pmcdade 12288 2007-10-14 10:18 share


Trying to access the share locally via Dolphin network view says folder does not exist and XP access says I may not have permission. I suspect it is because this is sepatate HDD mounted on root which should work, but I am confused.

I have to say finding someone that knows SAMBA inside and out is hard. Any help would be appreciate. TIA

SAMBA Configuration:
pmcdade@KUBUNTU:/media$ cat /etc/samba/smb.conf
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/10/17 11:09:24

[global]
workgroup = UNIVERSE
server string =
security = SHARE
null passwords = Yes
passdb backend = tdbsam
username map = /etc/samba/smbusers
syslog only = Yes
announce version = 5.0
name resolve order = hosts wins bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = CUPS
printing = cups
print command =
lpq command = %p
lprm command =

[print$]
path = /var/lib/samba/printers
write list = root
create mask = 0664
directory mask = 0775
guest ok = Yes

[printers]
path = /tmp
guest ok = Yes
printable = Yes
browseable = No

[kubuntu_share]
path = /media/share/
read only = No
create mask = 0644
guest ok = Yes

[backup]
path = /media/backup
read only = No
create mask = 0644
guest ok = Yes
case sensitive = No
strict locking = No
msdfs proxy = no