On Wed, 26 Aug 1998, Matthew Chapman wrote:> > Two questions. First, timestamps seem to be getting screwed up when I > > access files on the company's NT server. Someone (using NT) creates some > > files. My ls -l output shows them as having screwed up dates (ie, 1935, > > 2027, etc). 95, 98, and NT users see the dates as normal. When I copy > > any files with cp, the dates change for me, although remain nonsensical, > > but now the timestamp is also nonsensical for all the Win* users. This > > does not happen when I create, access, or modify files on someone's 95 or > > 98 drive. > > Do you mean that this happens when you are mounting an NT share with > smbmount? What kernel version?Yes. To be clearer: When I mount a W95/98 drive and create or modify files, everything is groovy. When I mount an NT drive and create, modify, or read files (as in, copying them from the NT drive to my own local drive), the dates go crazy. Our sysadmin tells me the NT system is NT Server 4.0 Enterprise Eddition, service pack 3. My kernel is 2.0.33. I tried to go to 2.0.35, but it screws up some of my plug-n-play devices and keeps me from running X, which I need for my work.> > Second, is there a way to get smbmount to use WINS? Currently I'm > > manually specifying IP numbers when I want to mount a drive, as follows: > > No, unless you want to add this functionality yourself there is no > provision for WINS in smbfs. The only way you can avoid specifying IP > numbers is to add those hosts to /etc/hosts.Doh! Don't have time for that right at the moment, in the meantime I put my pitiful script coding abilities to work and came up with the following: smbmount //$1/c ~/mnt -n -I `smbclient -L $1 | grep 'Got a positive' | sed "/Got a positive name query response from x.x.x.x ( /s///" | sed "/ )/s///"` Replace x.x.x.x with your WINS IP address. Is it just me, or is WINS slow as tar? *grumble* Thanks for the info. Adam
I'm running Samba 1.9.18p8 on a RedHat5.1 system. Shares are going cleanly, except that I can't write large files to the shares (Home directories, or any others). I can write small files, no problem, read & delete large files, no problem, but when I try to copy a 4MB file _to_ the samba server from a Win95 machine, it grinds away for about 3 minutes, then says the network resource isn't available, although the mount is still there. Ideas? Here's what testparm shows: Load smb config files from /etc/smb.conf Processing section "[homes]" Processing section "[netlogon]" Processing section "[internet]" Processing section "[sis]" Processing section "[sis-inq]" Processing section "[acctg]" Processing section "[kb]" Processing section "[circ]" Processing section "[opac]" Processing section "[virus]" Processing section "[cd]" Processing section "[helpdesk]" Loaded services file OK. Press enter to see a dump of your service definitions # Global parameters debuglevel = 2 syslog = 1 syslog only = No protocol = NT1 security = USER max disk size = 0 lpq cache time = 10 announce as = NT encrypt passwords = No update encrypted = No getwd cache = Yes read prediction = No read bmpx = Yes read raw = Yes write raw = Yes use rhosts = No load printers = Yes null passwords = No strip dot = No interfaces = bind interfaces only = No networkstation user login = Yes password server = socket options = TCP_NODELAY netbios name = netbios aliases = smbrun = /usr/bin/smbrun log file = /var/log/samba/log.%m config file = smb passwd file = /etc/smbpasswd hosts equiv = preload = server string = Blackcats Rule! printcap name = /etc/printcap lock dir = /var/lock/samba root directory = / default service = message command = dfree command = passwd program = /usr/bin/smbpasswd passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No valid chars = workgroup = DUNKLIN username map = character set = logon script = attach.bat logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U remote announce = remote browse sync = socket address = 0.0.0.0 homedir map = announce version = 4.2 max log size = 100 mangled stack = 50 max mux = 50 max xmit = 65535 max packet = 65535 name resolve order = lmhosts host wins bcast packet size = 65535 password level = 0 username level = 0 keepalive = 0 deadtime = 0 time offset = 0 read size = 16384 shared mem size = 102400 coding system = client code page = 850 os level = 64 max ttl = 14400 max wins ttl = 259200 min wins ttl = 21600 lm announce = Auto lm interval = 60 dns proxy = No wins support = No wins proxy = No wins server = preferred master = Yes local master = Yes domain master = Yes domain logons = Yes browse list = Yes unix realname = No NIS homedir = No unix password sync = No time server = No printer driver file = /etc/printers.def # Default service parameters comment = copy = include = exec = postexec = root preexec = root postexec = alternate permissions = No revalidate = No default case = lower case sensitive = No preserve case = No short preserve case = No mangle case = No mangling char = ~ browseable = Yes available = Yes path = username = guest account = nobody invalid users = valid users = admin users = read list = write list = volume = force user = force group = read only = Yes max connections = 0 min print space = 0 create mask = 0744 force create mode = 00 directory mask = 0755 force directory mode = 00 set directory = No status = Yes hide dot files = Yes delete veto files = No veto files = hide files = veto oplock files = guest only = No guest ok = No print ok = No postscript = No map system = No map hidden = No map archive = Yes locking = Yes strict locking = No share modes = Yes oplocks = Yes only user = No wide links = Yes follow symlinks = Yes sync always = No mangled names = Yes fake oplocks = 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 = printer = printer driver = NULL printer driver location = hosts allow = hosts deny = dont descend = magic script = magic output = mangled map = delete readonly = No dos filetimes = No dos filetime resolution = No fake directory create times = No [homes] comment = H: network Home directory browseable = No read only = No [netlogon] comment = Z: Network Logon path = /staff2/resources/netlogon guest ok = Yes share modes = No [internet] comment = I: Internet applications browseable = No path = /staff2/resources/internet read list = @internet @staff hauser rjdavis volume = internet [sis] comment = G: SIS home directory browseable = No path = /staff2/resources/sis read list = @staff @teacher @admin write list = @sis volume = SIS read only = No create mask = 0770 [sis-inq] comment = G: SIS browseable = No path = /staff2/resources/sis read list = @staff @teacher volume = SIS [acctg] comment = J: Accounting programs browseable = No path = /staff2/resources/acctg write list = @student @teacher @staff @user volume = Accounting read only = No create mask = 0760 [kb] comment = K: Keyboarding files browseable = No path = /staff2/resources/kb write list = @student @teacher @staff @user volume = Keyboard read only = No create mask = 0770 [circ] comment = L: Library Automation browseable = No path = /staff2/resources/winnebago write list = @library volume = Library Circ read only = No create mask = 0774 [opac] comment = L: Library catalog path = /staff2/resources/winnebago volume = Library OPAC guest ok = Yes [virus] comment = V: Anti-virus path = /staff2/resources/virus volume = AntiVirus guest ok = Yes [cd] comment = X: shared CD's path = /staff2/resources/cd volume = CD's guest ok = Yes [helpdesk] comment = Y: Helpdesk browseable = No path = /staff2/resources/helpdesk write list = @helpdesk volume = helpdesk read only = No create mask = 0770 [IPC$] comment = IPC Service (Blackcats Rule!) path = /tmp status = No guest ok = Yes Rod Hauser hauser@blackcat.dunklin.k12.mo.us Technology Coordinator Voice: 314-479-7897 (afternoons) Dunklin R-5 School District FAX: 314-479-6297 (anytime) #1 Blackcat Drive http://blackcat.dunklin.k12.mo.us Herculaneum, MO 63048
Serious SAMBA Admins, Has anyone tried to reproduce the NT/Solaris SMB server comparison done by Mindcraft: http://www.mindcraft.com/whitepapers/nt4sol26exec.html Their test using the TotalNET SMB software ( demo comes with Solaris 2.6), and tested with the Ziff-Davis Benchmark Operation NetBench 5.01 showed that NT was 4 times faster than a Sun Ultra 450, and has 11 times better price/perf. The article sounds really biased (linked from the Microsoft site.), and it doesn't surprise me that an OS built to serve SMB has an easier time with the SMBtests, I also don't want to start a bunch of "but Unix is better because..." arguments. However, I've heard several times on this list that SAMBA tests have equaled or bettered NT performance on equally priced hardware. Is the TotalNET software so bad? Is the NetBench test bogus? Was there a config problem with Mindcraft's test setup? Whats the story? - AM -