Hi all, I?m relatively new on this list, but I hope, my questions are not too stupid. We plan to use samba on some of our central file servers. Today these servers (under HP-UX 10.20) supports access for PCs only via NFS (for files and printers). We tested with samba 1.9.18p10 and all seems fine. But there are some questions left: 1.) Are there some known limitations for the smb.conf, i.e. file size or bytes per line or number of entries in a "comma-separated-list" or such things? 2.) Today each NFS-server exports up to 400 printers and up to 100 different (group-)directories. For some reasons (NIS and secondary unix-groups) I think we need only 1 entry for all printers, but 100 or more sections for the file shares (each with 5-10 lines). Is there a limit for "section entries" in smb.conf? I think, our smb.conf will grows up to 1000 or more lines (and in the future we will not only export group-directories but also user-home-directories ...)! 3.) Today (with NFS) we use the possibilities of secondary unix-groups in an extensive manner. To get the same behaviour with samba, we use: [<share_for_group_1>] comment = <group 1> ... valid users = + <group_1> force group = <group_1> create mask = 0770 force create mask = 0770 Is this correct or some other suggestions? (In a group are up to 100 users and we have ca. 200 groups). 4.) A big question is the correct file locking, because (old) PCs with NFS-clients and (new) PCs with SMB-protocol uses the same files. We set "ole locking compatibility" to "yes". It seems, that it works correct, but is there a way to observe, which ranges from a file are locked via SMB or what range is specified in a SMB-lock-request? When I switched on the trace-mode for the NFS-lock-daemon (/usr/sbin/rpc.lockd), than I can see, which NFS-locks are granted for a specified file: (400502c0), oh= PC002ANF1195393088, svr= hp113, fh = 40000005ffffffff000a000000002646000000a7000a00000000000200000000, op=6, ranges= [2147483559, 2147483560) (400506c8), oh= PC002ANF1195393088, svr= hp113, fh = 40000005ffffffff000a000000002646000000a7000a00000000000200000000, op=6, ranges= [2147483599, 2147483600) 5.) Where can I find a list, which explains the debug levels (0: none; 1: errors; 2: warnings; 3: info...)? 6.) Is there a way to collect some logs (errors or security-logs) in a different log file? Today we use: log file = .../log.%m include = .../smb.conf.%m So we can control the debug level separate for each PC, but I search for a simply way for "What errors or security attacks occured in the last week or month?". 7.) Are there some new features in samba v2.0.0, related to my questions above? 8.) My last question (for today :) is the same problem, that Alan GUILLEVIC reported on 21 Jan 1999: When I try to compile samba v2.0.0 on HP-UX 10.20 I get: ERROR: No locking available. Running Samba would be unsafe configure: error: summary failure. Aborting config. But the hint from Heiko Nardmann (use CPPFLAGS, ...) doesn?t help for me. -- Tschuess ABu!
Hello, On Tue, 2 Feb 1999 12:59:43 +0100, Jan Kratochvil <short@ucw.cz> wrote> > > I'm using 1.9.18p10 with FreeBSD 2.2.8. I have a small network in my > > office where security is no problem and I decided to deal with a > > permissions problem in a quick and dirty way -- real quick / real > > dirty. I did a "chmod -R 777 /usr". After this samba quit printing. I > > OUCH! You probably broke a lot of things! You lost all the permissions > like SUID, SGID, sticky and so on... Correct way would be: > > chmod -R ugo+rw 1.sh /usr;chmod ugo+x `find -type d /usr` > > Probably the only way to get now out from this situation is to reinstall > the whole system completely. :-))) You'll find probably a lot of different > things to magically get broken. >If you have another UNIX system, which is installed the same way, this Perl script will help you to restore the permissions of the files: #!/usr/bin/perl open FD, "find /usr \! -type l -print|" or die "executing find: $!"; while(<FD>) { chomp; printf "chmod %04o \"%s\"\n", (stat($_))[2] & 07777, $_; } You may need to adjust the path to perl in the first line and maybee specify the full path to find in the third line. Pipe it's output to a file and execute this file on the bad system. This will restore the permissions for all files which exist also on the good system. Then you can execute the command Jan Kratochvil suggested. To get a list of files which are not on the good system, and therefore aren't restored, execute find /usr -print | sort >/tmp/bad-sys on the bad system and find /usr -print | sort >/tmp/good-sys on the good system. Then transfer both files to one host and execute diff /tmp/bad-sys /tmp/good-sys | grep '^>' | cut -c 3- Herbert Stocker -- Hell (Herbert Stocker) : mailto:hell@stusta.mhn.de \_ Hell is also talkto:hell@hell.hsh.stusta.mhn.de \_ my NickName goto:D->MUC->StuSta->HSH[1126] \_ in RealLife :
Using the "smbclient -M machine_name" you can send messages to PC's with a shell for loop. The shell would go something like this: 1) find your samba log directory ( grep "log file" smb.conf ) 2) use a find command to list all samba log files that are active within a week (find /var/adm/samba -type f ! -mtime +7 -print ) 3) strip the "samba_log." off of the filename with awk ( awk -F. '{print $2 "\n"}' ) 4) for each hostname send a messages (cat message.txt | smbclient -M $i) But before you re-invent the wheel you should check out John D. Blair's book "Samba Integrating Unix and Windows". The companion CD comes with a smbwall utility - Jim>------------------------------ > >Date: Tue, 2 Feb 99 16:40:23 GMT >From: Martin.Wheatley@jet.uk (Martin Wheatley) >To: samba@samba.org >Subject: Can anyone suggest a solution? >Message-ID: <9902021640.AA19340@xn-sysadm-1.jet.uk> > >Thankyou for taking the time to read this ... > >We have large PC userbase and a not-so-large (but equally loud) Unix >user base. We have a requirement to "PopUp" information windows on ALL >our user's screens with an absolute minimum of manual intervention (ie >type the message once and then forget it). > >We can manage the Unix X servers but can't seem to find a UNIX >application that will get th message(s) to our PC community. > >Is there anything in Samba that would give us what we need? >or is there another UNIX application that will do what we want. > >Our UNIX systems and Suns - running Solaris 2.6 & 7. The PCs >all have the MS messenger client installed. > > > +-------------------------------------------------------------------+ > | Martin Wheatley | Voice : 44-(0)1235-464784 | > | CODAS Division | FAX : 44-(0)1235-464404 | > | JET Joint Undertaking | E-mail : Martin.Wheatley@jet.uk | > | Abingdon |-------------------------------------------| > | Oxfordshire | | > | OX14 3EA | | > | United Kingdom | | > +-------------------------------------------------------------------+ > >------------------------------
When the world was young, "Martin Frakes" <m_frakes@hotmail.com> carved some runes like this:> Is it possible to use Samba to print from a Unix machine to a printer > connected to a Win 95 machine over a LAN? The printer is the Windows only > HP Deskjet 820 Cxi.It sure is (but may be dependent on your OS, etc). Does your unix box have the smbclient stuff? If so, it should work. In my case, RedHat has a printer configuration tool that automatically sets up /etc/printcap, nenscript & ghostscript printfilters, etc. All I had to do is specify a remote SMB printer and it works like a champ. Samba even picks them up and shares them back out again (kind of voodoo, eh?). YMMV. Steve **************************************************************** Stephen L. Arnold Senior Systems Engineer ENSCO Inc. email: arnold.steve@ensco.com P.O. Box 5488 www: http://www.ensco.com Vandenberg AFB, CA 93437 voice: 805.734.8232 x68838 fax: 805.734.4779 #include <std_disclaimer.h> ****************************************************************
When the world was young, Jose_Dorado@mail.amsinc.com carved some runes like this:> Is there a way of automatically get rid of the ^M when transferring ASCII > files?Here is a repost from the last time this question was asked: I don't think samba will ever do it automatically; to be reliable, it should be done explicitly by the user. One option would be not to use notepad ;-} There are much better alternatives: Get PFE and set unix mode when you save the file (or you could use ntemacs or gvim for win32 - all are free). http://www.lancs.ac.uk/people/cpaap/pfe/ http://www.cs.washington.edu/homes/voelker/ntemacs.html http://www.vim.org/ Most commercial editors should handle multiple EOL conventions as well (ie, SlickEdit, Brief, etc). There's a drag-n-drop win32 converter mentioned in Hints.txt, but I haven't gotten it to work. You can bug him yourself if you like: Jim Barry 100317.364@compuserve.com I just finished my first C class (yahoo!) and I was thinking of doing just such a converter; a console version first, then a win32 GUI version (Jim, if you're still around I wouldn't mind taking a look at your source code ;-) Hope this helps, Steve PS. I still haven't started any coding (other projects, kids, fun, etc); if anyone wants to help, feel free to chime in. ****************************************************************** Stephen L Arnold sarnold@earthling.net Conserving bandwidth (and bellybutton lint)
When the world was young, Thomas Bail carved some runes like this:> one short question wich is maybe a little bitt off topic. I setup an > internet router with an isdn dialup link to my provider with dynamic IP > and masquarading - so far so good, after that i installed Samba 2.0.0 and > disabled the isdn interface and samba works ok, but if i try to use both > the router and samba i get call to the provider i do not want and samba > does not appear in the browselist of my win98 machine.I have a similar setup at home (ppp instead of ISDN) and samba works just fine. Check the following smb.conf parameters: bind interfaces only interfaces Hope this helps, Steve ****************************************************************** Stephen L Arnold sarnold@earthling.net Conserving bandwidth (and bellybutton lint)