RE: [newbie] Samba server not working
Can you read/write on a EXT2 FAT with a Windows machine connected to Samba? I thought that FAT32 was required for that? But maybe I'm confused with sharing a partition with a dual boot machine with Win and Linux (which I don't have). Bas From: Bill Shirley [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [newbie] Samba server not working Date: Wed, 26 May 2004 21:39:15 -0400 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Video 4Linux Sent: Wednesday, May 26, 2004 8:01 AM To: [EMAIL PROTECTED] Subject: [newbie] Samba server not working I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've copied the smb.conf settings from the Samba Howto and look like this: [global] workgroup = Thuis netbios name = Linux printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups [homes] comment = Home Directories valid users = %S read only = No browseable = No [public] comment = Data path = /share force user = bas force group = users guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printer admin = root, bas create mask = 0600 guest ok = Yes printable = Yes use client driver = Yes browseable = No I started the smb and nmb services which repsond both with [OK]. But when I run the command smbclient -L localhost I get: session request to LOCALHOST failed (Call returned zero bytes (EOF)) session request to *SMBSERVER failed (Call returned zero bytes (EOF)) It's 'smbclient -L netbiosname', so for you it's: smbclient -L Linux Note that because I want to share a certain partition with a windows XP machine /share is mounted at a FAT32 partition. No idea if that has samba can share out any partition. You don't have to make it a FAT partition. All my shares are ext3. Unless this is a partition that already has data, I would recomment NOT to use FAT. something to do with my problems. I also cannot chown the /share folder (operation not permitted). It is now owned by root. Help is very welcome. Bas _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com _ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Samba server not working
On Thursday 27 May 2004 12:00, Video 4Linux wrote: Can you read/write on a EXT2 FAT with a Windows machine connected to Samba? I thought that FAT32 was required for that? But maybe I'm confused with sharing a partition with a dual boot machine with Win and Linux (which I don't have). Bas The remote Windows machine neither knows nor cares what file system the host is using. The server can serve any type of file system to clients using Samba. The only thing you have to worry about is the permissions. A Samba client can only read/write to folders to which they have permission. For example a Samba client 'fred' cannot write to a Linux folder owned by 'joe' unless the appropriate permissions are set. This is true for FAT32 partitions as well as Ext3 (there is little need to use Ext2 anymore). But because a FAT32 partition has no concept of permissions, when Linux mounts a FAT32 partition it will apply the permissions defined in your /etc/fstab file to the entire partition. If you want all your Samba clients to be able to read/write to a FAT32 partition you must set the option umask=0 in the line for that partition in the fstab file. This makes the perms 777 and anyone can read/write to the partition derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Samba server not working
On Wednesday 26 May 2004 13:00, Video 4Linux wrote: I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've copied the smb.conf settings from the Samba Howto and look like this: [global] workgroup = Thuis netbios name = Linux printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups [homes] comment = Home Directories valid users = %S read only = No browseable = No [public] comment = Data path = /share force user = bas force group = users guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printer admin = root, bas create mask = 0600 guest ok = Yes printable = Yes use client driver = Yes browseable = No I started the smb and nmb services which repsond both with [OK]. But when I run the command smbclient -L localhost I get: session request to LOCALHOST failed (Call returned zero bytes (EOF)) session request to *SMBSERVER failed (Call returned zero bytes (EOF)) Note that because I want to share a certain partition with a windows XP machine /share is mounted at a FAT32 partition. No idea if that has something to do with my problems. I also cannot chown the /share folder (operation not permitted). It is now owned by root. Help is very welcome. Bas Did you try with the default smb.conf file? Samba works out of the box in mandrake. The only line you have to change is workgroup = There is a copy of the default file at usr/share/samba The reason /share is owned by root is because it is FAT32 and has no perm bits. It will have the permissions defined in /etc/fstab and will default to whoever mounted it (root) You need to set the uid=value and gid=value options in the fstab line. You might also like to set the umask= option as well See 'man mount' Mounting the FAT32 partition at /share may not be a good idea. The msec security system expects everything under / to be owned by root and will try to alter the perms. Being FAT32 it will not be able to, but all the same a better location would be /mnt/share. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
RE: [newbie] Samba server not working
Hello.. First time writing I think that is a matter of resolving the localhost the box you got and not a matter of permissions. Have you tried? name of the box , IP of the box e.t.c Check the checklist form samba documentation. since pretty new in Samba but I did had the same problem using SWAT...so I assume the problem is how to resolve your host.. -Original Message- From: Derek Jennings [mailto:[EMAIL PROTECTED] Sent: , 26 2004 4:05 To: [EMAIL PROTECTED] Subject: Re: [newbie] Samba server not working On Wednesday 26 May 2004 13:00, Video 4Linux wrote: I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've copied the smb.conf settings from the Samba Howto and look like this: [global] workgroup = Thuis netbios name = Linux printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups [homes] comment = Home Directories valid users = %S read only = No browseable = No [public] comment = Data path = /share force user = bas force group = users guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printer admin = root, bas create mask = 0600 guest ok = Yes printable = Yes use client driver = Yes browseable = No I started the smb and nmb services which repsond both with [OK]. But when I run the command smbclient -L localhost I get: session request to LOCALHOST failed (Call returned zero bytes (EOF)) session request to *SMBSERVER failed (Call returned zero bytes (EOF)) Note that because I want to share a certain partition with a windows XP machine /share is mounted at a FAT32 partition. No idea if that has something to do with my problems. I also cannot chown the /share folder (operation not permitted). It is now owned by root. Help is very welcome. Bas Did you try with the default smb.conf file? Samba works out of the box in mandrake. The only line you have to change is workgroup = There is a copy of the default file at usr/share/samba The reason /share is owned by root is because it is FAT32 and has no perm bits. It will have the permissions defined in /etc/fstab and will default to whoever mounted it (root) You need to set the uid=value and gid=value options in the fstab line. You might also like to set the umask= option as well See 'man mount' Mounting the FAT32 partition at /share may not be a good idea. The msec security system expects everything under / to be owned by root and will try to alter the perms. Being FAT32 it will not be able to, but all the same a better location would be /mnt/share. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
RE: [newbie] Samba server not working
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Video 4Linux Sent: Wednesday, May 26, 2004 8:01 AM To: [EMAIL PROTECTED] Subject: [newbie] Samba server not working I'm trying to set up a Samba server on my Linux Mandrake 10 machine. I've copied the smb.conf settings from the Samba Howto and look like this: [global] workgroup = Thuis netbios name = Linux printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups [homes] comment = Home Directories valid users = %S read only = No browseable = No [public] comment = Data path = /share force user = bas force group = users guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printer admin = root, bas create mask = 0600 guest ok = Yes printable = Yes use client driver = Yes browseable = No I started the smb and nmb services which repsond both with [OK]. But when I run the command smbclient -L localhost I get: session request to LOCALHOST failed (Call returned zero bytes (EOF)) session request to *SMBSERVER failed (Call returned zero bytes (EOF)) It's 'smbclient -L netbiosname', so for you it's: smbclient -L Linux Note that because I want to share a certain partition with a windows XP machine /share is mounted at a FAT32 partition. No idea if that has samba can share out any partition. You don't have to make it a FAT partition. All my shares are ext3. Unless this is a partition that already has data, I would recomment NOT to use FAT. something to do with my problems. I also cannot chown the /share folder (operation not permitted). It is now owned by root. Help is very welcome. Bas _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com