Hi I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same. Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all. What am i missing here as i have the same settings i use with other distros which work. I disable my firewall and to no avail. Must say nfs was a breeze with Suse 9.1, just this samba is giving me grief. Marek
I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same.
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all.
What am i missing here as i have the same settings i use with other distros which work. I disable my firewall and to no avail.
Must say nfs was a breeze with Suse 9.1, just this samba is giving me grief.
One thing why I use SuSE cause it's samba so easy to manage, and never had significant problem with it, but never use it as PDC / BDC. Maybe you can show us what is your smb.conf. Is it become samba server, or client. -- Arie Reynaldi Zanahar reymanx at gmail.com http://www.reynaldi.com
ReymanX wrote:
I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same.
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all.
What am i missing here as i have the same settings i use with other distros which work. I disable my firewall and to no avail.
Must say nfs was a breeze with Suse 9.1, just this samba is giving me grief.
One thing why I use SuSE cause it's samba so easy to manage, and never had significant problem with it, but never use it as PDC / BDC. Maybe you can show us what is your smb.conf. Is it become samba server, or client.
This is my smb.conf file generated by webmin, i have tried the webmin way no as the standard samba conf way did not work. This is not a PDC btw but a workstation. [global] netbios name = Microsoft writeable = yes printing = cups socket options = TCP_NODELAY password server = microsoft path = /home/pawinski/downloads workgroup = localdomain os level = 20 map to guest = Bad User printcap name = cups printer admin = @ntadmin, root, administrator bind interfaces only = true [homes] comment = Home Directories valid users = %S browseable = No read only = No # A share to export all user directories; appropriate permissions required [users] comment = All users path = /home writeable = Yes inherit permissions = Yes # Exclude a groups and other shares veto files = /aquota.user/groups/shares/ # Create all directories for groups below /home/groups and export this # directries as one share [groups] comment = All groups path = /home/groups writeable = Yes inherit permissions = Yes # A simple PostScript to PDF converter provided to SMB clients [pdf] comment = PDF creator path = /var/tmp printable = Yes print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z create mask = 0600 # The following share gives all users access to the Server's CD drive, # assuming it is mounted under /media/cdrom. ;[cdrom] ; comment = Linux CD-ROM ; path = /media/cdrom ; locking = No # With the next two lines you could automatically mount or umount the CD if a # connection to the share is established or closed. ; preexec = /bin/mount /media/cdrom ; postexec = /bin/umount /media/cdrom [printers] comment = All Printers path = /var/tmp # Make printers accessible without user authentication. ; guest ok = Yes printable = Yes create mask = 0600 browseable = No # This share provides printer driver down- and upload in an Windows NT-style # point-and-print way. For more detailed information consult the Printing # Support Section of the Samba-HOWTO-Collection. For uploading take extra # care to add the printer admins to the group lp. [print$] comment = Printer Drivers path = /var/lib/samba/drivers # Make printer drivers accessible without user authentication. ; guest ok = Yes write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 [downloads] Marek
I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same. Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all. This is my smb.conf file generated by webmin, i have tried the webmin way no as the standard samba conf way did not work. This is not a PDC btw but a workstation.
[global] netbios name = Microsoft writeable = yes printing = cups socket options = TCP_NODELAY I use this socket options = SO_KEEPALIVE IPTOS_LOWDELAY
password server = microsoft
Never use this
path = /home/pawinski/downloads
And this
workgroup = localdomain os level = 20 map to guest = Bad User printcap name = cups printer admin = @ntadmin, root, administrator bind interfaces only = true
I use 'bind interfaces only = yes'
[homes] comment = Home Directories valid users = %S browseable = No read only = No Have you make smbuser ?
Try use swat. It's easier. -- Arie Reynaldi Zanahar reymanx at gmail.com http://www.reynaldi.com
Marek, here is a working smb.conf built by hand that shows the basics. Double check your permissions of /home and /home/group on your box. Why are you exporting all home directories?? Permission will kill you there unless the files are all owned by a common group. Also, your password server=microsoft seems suspect. If it is a default samba install you are using the smbpasswd file. So you have to make sure each user has a Linux username/password (useradd) as well as a samba password (smbpasswd -a) Make sure the Linux and smbpasswd's are the same otherwise passwd chat won't be very happy. Anyway, here is my smb.conf: skyline:/etc/ssl/certs # cat /etc/samba/smb.conf # Global parameters [global] netbios name = skyline workgroup = rb_law server string = Skyline Network Server %v encrypt passwords = Yes update encrypted = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *new*password* %n\n *success* passwd chat debug = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log size = 50 name resolve order = wins hosts lmhosts bcast socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon script = %U.bat domain logons = Yes time server = yes os level = 60 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes hosts allow = 192.168.6. localhost 66.76.63.60 min print space = 2000 load printers = yes printing = cups printcap name = cups [Skyline] comment = Skyline Shares path = /home/samba/skyline valid users = @skyline force group = skyline admin users = david writeable = Yes map archive = Yes inherit permissions = Yes [RankinFirm] comment = Rankin Law Firm path = /home/samba/rankin valid users = @rankin force group = rankin admin users = david writeable = Yes map archive = Yes inherit permissions = Yes [rbpllc] comment = Rankin Bertin path = /home/samba/rbpllc valid users = @rankin force group = rankin admin users = david writeable = Yes map archive = Yes inherit permissions = Yes [homes] comment = Homes Directory writeable = Yes browseable = No [printers] comment = The Printers path = /var/spool/samba guest ok = Yes public = Yes writeable = no printable = Yes browseable = no -- David C. Rankin, J.D., P.E. Rankin * Bertin, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 www.rankin-bertin.com ----- Original Message ----- From: "Marek Pawinski" <pawinski@webstorm.co.za> To: "ReymanX" <reymanx@gmail.com> Cc: <suse-linux-e@suse.com> Sent: Friday, October 15, 2004 10:46 PM Subject: Re: [SLE] Samba
ReymanX wrote:
I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same.
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all.
What am i missing here as i have the same settings i use with other distros which work. I disable my firewall and to no avail.
Must say nfs was a breeze with Suse 9.1, just this samba is giving me grief.
One thing why I use SuSE cause it's samba so easy to manage, and never had significant problem with it, but never use it as PDC / BDC. Maybe you can show us what is your smb.conf. Is it become samba server, or client.
This is my smb.conf file generated by webmin, i have tried the webmin way no as the standard samba conf way did not work. This is not a PDC btw but a workstation.
[global] netbios name = Microsoft writeable = yes printing = cups socket options = TCP_NODELAY password server = microsoft path = /home/pawinski/downloads workgroup = localdomain os level = 20 map to guest = Bad User printcap name = cups printer admin = @ntadmin, root, administrator bind interfaces only = true
[homes] comment = Home Directories valid users = %S browseable = No read only = No
# A share to export all user directories; appropriate permissions required [users] comment = All users path = /home writeable = Yes inherit permissions = Yes # Exclude a groups and other shares veto files = /aquota.user/groups/shares/
# Create all directories for groups below /home/groups and export this # directries as one share [groups] comment = All groups path = /home/groups writeable = Yes inherit permissions = Yes
# A simple PostScript to PDF converter provided to SMB clients [pdf] comment = PDF creator path = /var/tmp printable = Yes print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z create mask = 0600
# The following share gives all users access to the Server's CD drive, # assuming it is mounted under /media/cdrom. ;[cdrom] ; comment = Linux CD-ROM ; path = /media/cdrom ; locking = No # With the next two lines you could automatically mount or umount the CD if a # connection to the share is established or closed. ; preexec = /bin/mount /media/cdrom ; postexec = /bin/umount /media/cdrom
[printers] comment = All Printers path = /var/tmp # Make printers accessible without user authentication. ; guest ok = Yes printable = Yes create mask = 0600 browseable = No
# This share provides printer driver down- and upload in an Windows NT-style # point-and-print way. For more detailed information consult the Printing # Support Section of the Samba-HOWTO-Collection. For uploading take extra # care to add the printer admins to the group lp. [print$] comment = Printer Drivers path = /var/lib/samba/drivers # Make printer drivers accessible without user authentication. ; guest ok = Yes write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775
[downloads]
Marek
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
David Rankin wrote:
Marek, here is a working smb.conf built by hand that shows the basics. Double check your permissions of /home and /home/group on your box. Why are you exporting all home directories?? Permission will kill you there unless the files are all owned by a common group. Also, your password server=microsoft seems suspect. If it is a default samba install you are using the smbpasswd file. So you have to make sure each user has a Linux username/password (useradd) as well as a samba password (smbpasswd -a) Make sure the Linux and smbpasswd's are the same otherwise passwd chat won't be very happy. Anyway, here is my smb.conf:
Do i need winbind to be running ? smb and nmb are running ok. This is what i tried, no luck yet. Something i am missing somewhere else ? # Global parameters [global] netbios name = microsoft workgroup = localdomain server string = Microsoft encrypt passwords = Yes update encrypted = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *new*password* %n\n *success* passwd chat debug = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log size = 50 name resolve order = hosts lmhosts wins bcast socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon script = %U.bat domain logons = Yes time server = yes os level = 60 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes hosts allow = 192.168.0.1 localhost 192.168.0.2 min print space = 2000 load printers = yes printing = cups printcap name = cups [Public] comment = Public Shares path = /home/pawinski/downloads valid users = @pawinski force group = pawinski admin users = pawinski writeable = Yes map archive = Yes inherit permissions = Yes #[RankinFirm] ; comment = Rankin Law Firm ; path = /home/samba/rankin ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes #[rbpllc] ; comment = Rankin Bertin ; path = /home/samba/rbpllc ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes [homes] comment = Homes Directory writeable = Yes browseable = No [printers] comment = The Printers path = /var/spool/samba guest ok = Yes public = Yes writeable = no printable = Yes browseable = no Marek
Do i need winbind to be running ? smb and nmb are running ok.
No, not unless you are mapping NT Domains to Unix, see the following from the samba site: "Winbind is an nss switch module to map Windows NT Domain databases to Unix. In combination with Samba and pam_ntdom, a Unix box will be able to integrate straight into a full Windows NT Domain environment, without needing a Unix Account database. " If I understand your setup to be a simple file sharing setup, no PDC/BDC and using smbpasswd authentication, then winbind isn't required. Have you worked through the /usr/share/doc/packages/samba/textdocs/DIAGNOSIS.TXT? Where is your setup failing?? -- David C. Rankin, J.D., P.E. Rankin * Bertin, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 www.rankin-bertin.com ----- Original Message ----- From: "Marek Pawinski" <pawinski@webstorm.co.za> To: "David Rankin" <drankin@cox-internet.com> Cc: "suse" <suse-linux-e@suse.com> Sent: Friday, October 15, 2004 11:56 PM Subject: Re: [SLE] Samba
David Rankin wrote:
Marek, here is a working smb.conf built by hand that shows the basics. Double check your permissions of /home and /home/group on your box. Why are you exporting all home directories?? Permission will kill you there unless the files are all owned by a common group. Also, your password server=microsoft seems suspect. If it is a default samba install you are using the smbpasswd file. So you have to make sure each user has a Linux username/password (useradd) as well as a samba password (smbpasswd -a) Make sure the Linux and smbpasswd's are the same otherwise passwd chat won't be very happy. Anyway, here is my smb.conf:
Do i need winbind to be running ? smb and nmb are running ok.
This is what i tried, no luck yet. Something i am missing somewhere else ?
# Global parameters [global] netbios name = microsoft workgroup = localdomain server string = Microsoft encrypt passwords = Yes update encrypted = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *new*password* %n\n *success* passwd chat debug = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log size = 50 name resolve order = hosts lmhosts wins bcast socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon script = %U.bat domain logons = Yes time server = yes os level = 60 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes hosts allow = 192.168.0.1 localhost 192.168.0.2 min print space = 2000 load printers = yes printing = cups printcap name = cups
[Public] comment = Public Shares path = /home/pawinski/downloads valid users = @pawinski force group = pawinski admin users = pawinski writeable = Yes map archive = Yes inherit permissions = Yes
#[RankinFirm] ; comment = Rankin Law Firm ; path = /home/samba/rankin ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes
#[rbpllc] ; comment = Rankin Bertin ; path = /home/samba/rbpllc ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes
[homes] comment = Homes Directory writeable = Yes browseable = No
[printers] comment = The Printers path = /var/spool/samba guest ok = Yes public = Yes writeable = no printable = Yes browseable = no
Marek
David Rankin wrote:
Have you worked through the /usr/share/doc/packages/samba/textdocs/DIAGNOSIS.TXT?
Where is your setup failing??
Sorry to be a pain but i have been googling for 2 days and no luck. I don't have the DIAGNOSIS.TXT file on my 9.1 edition. The setup seems to be failing where Windows can't see the Suse box at all i.e. samba wise. I know in the past on other setups i could at least see the printer share, but now nothing. So the smb.conf file seems to be alright now. What really gets me is that i have done this a thousand times on Mandrake no problem. The second problem is when i mount a Windows share from my Suse box i can't write to the Windows share, but can read and copy. Marek
Marek Pawinski wrote:
David Rankin wrote:
Have you worked through the /usr/share/doc/packages/samba/textdocs/DIAGNOSIS.TXT?
Where is your setup failing??
Sorry to be a pain but i have been googling for 2 days and no luck. I don't have the DIAGNOSIS.TXT file on my 9.1 edition.
The setup seems to be failing where Windows can't see the Suse box at all i.e. samba wise. I know in the past on other setups i could at least see the printer share, but now nothing. So the smb.conf file seems to be alright now.
What really gets me is that i have done this a thousand times on Mandrake no problem.
The second problem is when i mount a Windows share from my Suse box i can't write to the Windows share, but can read and copy.
Marek
Well on the 1001 time i messed up, i pointed my WINS server in the wrong direction, the first bit is good now thanx. Marek
hosts allow = 192.168.0.1 localhost 192.168.0.2
This is your problem and it should be: hosts allow = 192.168.0. localhost ***** note the '.' after '0' and nothing else unless you really want to allow access to only .1 and .2 -- David C. Rankin, J.D., P.E. Rankin * Bertin, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 www.rankin-bertin.com ----- Original Message ----- From: "Marek Pawinski" <pawinski@webstorm.co.za> To: "David Rankin" <drankin@cox-internet.com> Cc: "suse" <suse-linux-e@suse.com> Sent: Friday, October 15, 2004 11:56 PM Subject: Re: [SLE] Samba
David Rankin wrote:
Marek, here is a working smb.conf built by hand that shows the basics. Double check your permissions of /home and /home/group on your box. Why are you exporting all home directories?? Permission will kill you there unless the files are all owned by a common group. Also, your password server=microsoft seems suspect. If it is a default samba install you are using the smbpasswd file. So you have to make sure each user has a Linux username/password (useradd) as well as a samba password (smbpasswd -a) Make sure the Linux and smbpasswd's are the same otherwise passwd chat won't be very happy. Anyway, here is my smb.conf:
Do i need winbind to be running ? smb and nmb are running ok.
This is what i tried, no luck yet. Something i am missing somewhere else ?
# Global parameters [global] netbios name = microsoft workgroup = localdomain server string = Microsoft encrypt passwords = Yes update encrypted = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *new*password* %n\n *success* passwd chat debug = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log size = 50 name resolve order = hosts lmhosts wins bcast socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon script = %U.bat domain logons = Yes time server = yes os level = 60 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes hosts allow = 192.168.0.1 localhost 192.168.0.2 min print space = 2000 load printers = yes printing = cups printcap name = cups
[Public] comment = Public Shares path = /home/pawinski/downloads valid users = @pawinski force group = pawinski admin users = pawinski writeable = Yes map archive = Yes inherit permissions = Yes
#[RankinFirm] ; comment = Rankin Law Firm ; path = /home/samba/rankin ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes
#[rbpllc] ; comment = Rankin Bertin ; path = /home/samba/rbpllc ; valid users = @rankin ; force group = rankin ; admin users = david ; writeable = Yes ; map archive = Yes ; inherit permissions = Yes
[homes] comment = Homes Directory writeable = Yes browseable = No
[printers] comment = The Printers path = /var/spool/samba guest ok = Yes public = Yes writeable = no printable = Yes browseable = no
Marek
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
does this look like whats happening to you? https://bugzilla.samba.org/show_bug.cgi?id=1865 -s Marek Pawinski wrote:
Hi
I have samba set up and can see the Windows machine but can not write to it. I try to change the permisions on the Suse machine's /mnt point but they stay the same.
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all.
What am i missing here as i have the same settings i use with other distros which work. I disable my firewall and to no avail.
Must say nfs was a breeze with Suse 9.1, just this samba is giving me grief.
Marek
On Saturday 16 October 2004 04:47, Marek Pawinski wrote:
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all. Is nmbd running? Be aware that SUSE separates smb and nmb (I know Mandrake and/or redhat launches both if you start just smb). This could be useful if you have e.g. a backup fileserver to a windows server that you don't want to be visable to the whole network.
Do a: /etc/init.d/nmb status And see what happens. -- Kind regards Hans du Plooy Newington Consulting Services hansdp at newingtoncs dot co dot za
Hans, That was the problem, no nmb. Thanks for all the input. jcp On Monday 18 October 2004 11:02, Hans du Plooy wrote:
On Saturday 16 October 2004 04:47, Marek Pawinski wrote:
Then i try to browse the network from the Windows machine and nothing, the Suse machine does not show up at all.
Is nmbd running? Be aware that SUSE separates smb and nmb (I know Mandrake and/or redhat launches both if you start just smb). This could be useful if you have e.g. a backup fileserver to a windows server that you don't want to be visable to the whole network.
Do a:
/etc/init.d/nmb status
And see what happens.
-- Kind regards Hans du Plooy Newington Consulting Services hansdp at newingtoncs dot co dot za
participants (6)
-
David Rankin
-
Hans du Plooy
-
John Plummer
-
Marek Pawinski
-
ReymanX
-
Sean OMeara