Results 1 to 7 of 7

Thread: Problems with samba

  1. #1

    Question Problems with samba

    Hi all,

    currently i try to install & test samba with OpenSuSE v11.1 to learn for the LPIC-1 test.

    Today i have the problem that i have changed /etc/samba/smb.conf , tested it with testparm and even restarted the server with 'rcsmb restart' but on a WinDOOF client i still have the old values before i changed the smb.conf, even after rebooting WinDOOF !

    I tried to use the same directories on the server but with different rights and users allowed to access this directories ( called /samba/daten01 - /samba/daten06 )

    Can someone help me and tell me what i have forgotten or overlooked ?

    MfG, MEX

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Problems with samba

    Try restarting both nmbd then smbd then windows and waiting 5 minutes after that.

    And what change were you expecting?
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  3. #3

    Thumbs down Re: Problems with samba

    Quote Originally Posted by swerdna View Post
    Try restarting both nmbd then ..
    At least the "server string" in [global] is now correct, but i still dont have the correct rights for /samba/daten01/ to /samba/daten05 ...

    Thanks for the tip with restarting nmbd, i didnt think about that myself

    MfG, MEX

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Problems with samba

    Let's check the permissions.

    Can you post here the stanzas from smb.conf for the shares daten1 to daten5 (or just one of them if they're all the same) plus the return you get from this Linux command:
    Code:
    ls -l /samba
    plus this command:
    Code:
    sudo pdbedit -L
    Can you also tell me in your reply what you mean by "but i still dont have the correct rights"?
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  5. #5

    Unhappy Re: Problems with samba

    ls -l /samba
    Code:
    insgesamt 24
    drwxrwxrwt 5 root root 4096  7. Sep 15:33 daten01
    drwxrwxrwt 3 root root 4096  9. Sep 14:55 daten02
    drwxrwxrwt 2 root root 4096  7. Sep 13:53 daten03
    drwxrwxrwt 5 root root 4096  9. Sep 14:55 daten04
    drwxrwxrwt 3 root root 4096  7. Sep 15:21 daten05
    drwxrwxrwt 2 root root 4096  7. Sep 15:34 daten06
    sudo pdbedit -L
    Code:
    asterix:1002:asterix
    obelix:1003:obelix
    idefix:2003:
    saufnix:2004:
    gehtnix:2005:
    Current /etc/samba/smb.conf
    Code:
    ...
    [global]
    	server string = WinDOS
    	workgroup = linux.at
    ...
    [daten1]
    	comment = Nur Lesen fr Alle
    	path = /samba/daten01
    	read only = yes
    [daten2]
    	comment = Vollzugriff fr Alle
    	path = /samba/daten02
    	writeable = yes
    [daten3]
    	comment = Nur fr asterix & gehtnix
    	path = /samba/daten03
    	valid users = asterix gehtnix
    [daten4]
    	comment = asterix schreibend, saufnix & gehtnix nur lesend
    	path = /samba/daten04
    	valid users = asterix saufnix gehtnix
    	write list = asterix
    [daten5]
    	comment = Auch fr Gste
    	path = /samba/daten05
    	guest ok = yes
    Old /etc/samba/smb.conf
    Code:
    ...
    [global]
    	server string = WinDOOF
    	workgroup = linux.at
    ...
    [daten1]
    	comment = Freigabe fr WinDOOF
    	path = /samba/daten01
    	writeable = yes
    [daten2]
    	comment = Nur fr asterix & obelix !
    	path = /samba/daten02
    	write list = asterix obelix
    [daten3]
    	comment = Fr asterix !
    	path = /samba/daten03
    	valid users = asterix obelix idefix
    	write list = asterix
    [daten4]
    	comment = Nur fr Gallier !
    	path = /samba/daten04
    	invalid users = @rom
    	write list = @gallien
    [daten5]
    	comment = Frei fr ALLE !
    	path = /samba/daten05
    	guest ok = yes
    	writeable = yes
    [daten6]
    	path = /samba/daten06
    	valid users = @rom @gallien
    	write list = @rom
    	force group = rom
    	create mask = 664
    	directory mask = 775
    I also created a tabe what should be possible with the NEW rights:
    Code:
    asterix obelix saufnix gehtnix ANYBODY
    ..ro... ..ro.. ..ro... ..ro... ....... /samba/daten01
    ..rw... ..rw.. ..rw... ..rw... ....... /samba/daten02
    ..rw... ...... ....... ..rw... ....... /samba/daten03
    ..rw... ...... ..ro... ..ro... ....... /samba/daten04
    ..rw... ..rw.. ..rw... ..rw... ..rw... /samba/daten05
    Then i looked if the table above is correct with a user werner from a client with Windows installed ...

    MfG, MEX

    PS: Work in progress, i update this post as soon as possible ...

  6. #6

    Unhappy Re: Problems with samba

    Accourding to what should be allowed
    Code:
    1.) every samba users should get ro to /samba/daten01
    2.) every samaba user should get rw to /samba/daten02
    3.) asterix and gehtnix should get rw to /samba/daten03
    4.) asterix should get rw; saufnix, gehtnix should get ro to /samba/daten04
    5.) ANYBODY ( including guests ) should get access to /samba/daten05
    which i translated into a table what should be possible with the NEW rights:
    Code:
    asterix obelix idefix saufnix gehtnix ANYBODY
    ..ro... ..ro.. ..ro.. ..ro... ..ro... ....... /samba/daten01
    ..rw... ..rw.. ..rw.. ..rw... ..rw... ....... /samba/daten02
    ..rw... ..??.. ..??.. ..??... ..rw... ....... /samba/daten03
    ..rw... ...... ...... ..ro... ..ro... ....... /samba/daten04
    ..rw... ..rw.. ..rw.. ..rw... ..rw... ..rw... /samba/daten05
    i looked if the table above is correct with a user werner (which doesnt exist on my Linux server) from a client with Windows installed :
    Code:
    werner
    ..ro.. /samba/daten01
    ..rw.. /samba/daten02
    ..??.. /samba/daten03
    ..rw.. /samba/daten04
    ..ro.. /samba/daten05
    I just noticed that i should have included "writeable = yes" in sections [daten5] and [daten3] ... but i dont understand what is happening in the directory /samba/daten03, where i see a directory "LVNRFX~8" as werner from the Windows client and a directory "leer?" as root on the server !
    And i also dont understand why werner which doesnt exist on my linux server is able to get into /samba/daten01 - /samba/daten04 at all !

    MfG, MEX

    PS: With the old smb.conf our teacher showed us what is possible, then he told us to generate a new smb.conf ... i asume my problems arise from the fact that i tried to use the old directories /samba/daten01 - /samba/daten05 again instead of creating new directories ( or that i made errors in the new sections [daten1] - [daten5] in the new smb.conf ) ?

  7. #7

    Thumbs down Re: Problems with samba

    Hi swerdna,

    it seems that we have found the source of the problem:

    The user werner on the WinDOOF client is logged in as asterix on the samba server !

    MfG, MEX

    PS: I HATE M$, always i have troubles because of their dirty OS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •