LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-24-2010, 02:45 PM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
SAMBA weird situation


Samba: Version 2.2.10
Kernel: 2.4.31

There is share on the server (for DBASE app) with following config:
Code:
        comment = zwierzaki 2.5.04N
        path = /pub/zwierz/
        force user = smbguest
        read only = No
        guest only = Yes
        guest ok = Yes
        dos filetime resolution = Yes
I have found weird situation:
- not every file in shared dir is visible under windows but all files are visable under unix
- file created under linux is not visable under windows
- file created under windows is not visable under linux

I know it sounds weird, like DBASE shouldn work... but it does.
I will try to restart server on maintenance window as the uptime is 223d 11:11:17.69 - maybe it helps.

Any other ideas what may be wrong ?
 
Old 10-24-2010, 10:32 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi czezz, Permissions?

Good luck. ;-)
 
Old 10-25-2010, 03:50 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Hi,
permissions wont help. I tried chmod 777 * and it didnt help :/
 
Old 10-25-2010, 04:33 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Could we see the rest of the smb.conf please?

Good luck. ;-)
 
Old 10-26-2010, 03:40 AM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Sure. It's kind of long in global section and I am not sure all of them are necessary.
Please keep in mind this is Samba ver. 2.2.10 (it need to be that because of clients Win XP and Wion 98).

Code:
[global]
        coding system =
        client code page = 850
        code page directory = /etc/codepages
        workgroup = KSIAZECA
        netbios name = ZWIERZAK
        netbios aliases =
        netbios scope =
        server string = ZWIERZAK
        interfaces = eth0
        bind interfaces only = No
        security = SHARE
        encrypt passwords = No
        update encrypted = No
        allow trusted domains = Yes
        hosts equiv =
        min passwd length = 5
        map to guest = Bad User
        null passwords = No
        obey pam restrictions = No
        password server =
        smb passwd file = /etc/samba/private/smbpasswd
        root directory =
        pam password change = No
        passwd program = /usr/bin/passwd
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = No
        lanman auth = Yes
        use rhosts = No
        ssl = No
        ssl hosts =
        ssl hosts resign =
        ssl CA certDir =
        ssl CA certFile =
        ssl server cert =
        ssl server key =
        ssl client cert =
        ssl client key =
        ssl egd socket =
        ssl entropy file =
        ssl entropy bytes = 256
        ssl require clientcert = No
        ssl require servercert = No
        ssl ciphers =
        ssl version = ssl2or3
        ssl compatibility = No
        admin log = No
        log level = 2
        syslog = 1
        syslog only = No
        log file = /var/log/samba/logs/log.%m
        max log size = 50
        timestamp logs = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        protocol = NT1
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        acl compatibility =
        nt smb support = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts host wins bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = Yes
        unix extensions = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max smbd processes = 0
        max disk size = 0
        max open files = 10000
        name cache timeout = 660
        read size = 16384
        socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 IPTOS_LOWDELAY
        stat cache size = 50
        use mmap = Yes
        total print jobs = 0
        load printers = Yes
        printcap name = /etc/printcap
        disable spoolss = No
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        strip dot = No
        mangling method = hash
        character set =
        mangled stack = 50
        stat cache = Yes
        domain admin group =
        domain guest group =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = Auto
        local master = Yes
        domain master = Auto
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = No
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        add share command =
        change share command =
        delete share command =
        config file =
        preload =
        lock dir = /var/cache/samba
        pid directory = /var/run/samba
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        dfree command =
        valid chars =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map =
        time offset = 0
        NIS homedir = No
        source environment =
        panic action =
        hide local users = No
        host msdfs = No
        winbind uid =
        winbind gid =
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 15
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = No
        comment = server_zwierz
        path =
        alternate permissions = No
        username =
        guest account = smbguest
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        printer admin =
        force user =
        force group =
        read only = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = 00
        inherit permissions = No
        inherit acls = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow = 192.168.1.0/255.255.255.0
        hosts deny =
        status = Yes
        nt acl support = Yes
        profile acls = No
        block size = 1024
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        write cache size = 0
        max print jobs = 1000
        printable = No
        postscript = No
        printing = bsd
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = No
        printer driver =
        printer driver file = /etc/samba/printers.def
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = Yes
        mangling char = ~
        hide dot files = Yes
        hide unreadable = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = No
        share modes = Yes
        copy =
        include = /etc/samba/smb.conf.
        exec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No
        vfs object =
        vfs options =
        msdfs root = No

[zwierz]
        comment = zwierzaki 2.5.04N
        path = /pub/zwierz/
        force user = smbguest
        read only = No
        guest only = Yes
        guest ok = Yes
        dos filetime resolution = Yes
        # oplocks = True
        # level2 oplocks = True
        # veto oplock files = /*.DBF/*.dbf/
        # valid user = smbguest
        # veto oplock files = /*.mdb/*.mdx/*.dbf/*.MDB/*.MDX/*.DBF/
        # level2oplocks = no
The share /pub/zwierz need no authentication.
This is "ls -al" on that share:
Code:
...
drwxr-xr-x    12 smbguest smbguest     20480 2010-10-26 09:45 zwierz

Last edited by czezz; 10-26-2010 at 03:44 AM.
 
Old 10-26-2010, 09:38 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Honestly, I would have to do a massive amount of reading to check all of those options. I'll take a stab and guess that you don't have the same users/credentials on the Windows and Linux machines which is why shares aren't visible. This would be an easy enough check to make for starters.

Good luck. ;-)
 
Old 10-27-2010, 02:54 AM   #7
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Can't be.
As I written - this share does not need authentication. So the share is accessable for everyone.

In Global section guest account is set to "smbguest".
In Share section there are entries:
force user = smbguest
guest only = Yes
guest ok = Yes

Must be something else...
 
Old 10-27-2010, 04:50 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What are the permissions on the shares that don't show up properly?

Good luck. ;-)
 
Old 10-31-2010, 02:06 PM   #9
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Each file has "-rwxr--r--" and belong to guest account "smbuser"
 
Old 10-31-2010, 03:33 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What group? could you post the ls -l output please?

Good luck. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Samba problem davecgs Linux - Server 2 02-15-2009 11:53 AM
Weird undefined video mode error situation andromada Linux - Newbie 0 10-20-2008 08:49 AM
Samba Situation coffeekid Linux - Newbie 10 02-18-2007 10:28 PM
Weird Situation postal26 Slackware 10 11-23-2004 11:02 PM
Weird things going on with samba Cerb Linux - Software 2 03-29-2004 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration