Re: [Samba] Re: Can't access remote server
What does ps ax | grep nmbd show on the box you can't connect to? Sometimes nmbd exits if there is an error of some sort or another. Joel On Thu, Dec 11, 2003 at 01:28:35PM -0600, Kent Wang wrote: I've run iptables -L and iptables -t nat -L and there are no settings. I've setup iptables lots of times before so I'm pretty familiar with it. A few things that are bugging me is that I have a smb entry in my /etc/rc.d/init.d but no nmbd entry. Has this been merged into one entry? It doesn't seem like my nmb functionality is actually broken as nmblookup -B webdev.ic2.org __SAMBA__ runs successfully on the server. However, this command when run from a remote machine fails: [EMAIL PROTECTED] kwang]$ nmblookup -B webdev.ic2.org __SAMBA__ querying __SAMBA__ on 128.83.222.87 name_query failed to find name __SAMBA__ DIAGNOSIS.txt has been pretty helpful, but I'm stuck on Test 8. I'm not sure how to fixup the nmbd installation but I've managed to do all the other recommended solutions with no success. Anyway, thanks for your help so far. Kent Wang -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can not browse from MS windows
The redhat firewall and walk through DIAGNOSIS.txt. Joel On Tue, Dec 09, 2003 at 02:07:35PM +0800, Dodgie V. Danosos wrote: Greetings to all, I would to ask to someone or somebody who is willing to help this novice users of your SAMBA apps. My problem is that I can not view any info from my MS windows explorer(98/200/XP) on my created shared folder on my REDHAT LINUX 9(2.4.20-8) with SAMBA 3.0.0-2 running to it ??? Did I miss something ??? Kindly refer to my attached config file on my samba For your kind support and help. Yours truly, Mr. Novice Guy (Dodge) # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command testparm # to check that you have not made any basic syntactic errors. # #=== Global Settings = [global] log file = /var/log/samba/log.%m dns proxy = no load printers = yes netbios name = dans_samba server string = samba server socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 path = /var/log wins server = 192.68.52.70 workgroup = hwdesamba os level = 20 printcap name = /etc/printcap security = SHARE guest ok = yes max log size = 50 [homes] comment = Home Directories browseable = no writeable = yes # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /home/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ;[Profiles] ;path = /home/profiles ;browseable = no ;guest ok = yes # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print printable = yes # This one is useful for people to share files [tmp] comment = Temporary file space guest ok = yes writeable = yes path = /tmp -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't access remote server
How are you so sure there are no firewall settings. These things tend to get turned on my default. Walk thru DIAGNOSIS.txt. For example, can you ping the samba server? What do you see with, let me recall, iptables -L (?), might be the command. Joel On Mon, Dec 08, 2003 at 10:58:48AM -0600, Kent Wang wrote: RedHat 9, samba-2.2.7a-8.9.0. Fresh install. No iptables or any firewall settings. I can access my server fine locally with smbclient, but using smbclient from a machine located in a network I get this: [EMAIL PROTECTED] kwang]$ smbclient //webdev.ic2.org/home added interface ip=24.243.211.67 bcast=24.243.223.255 nmask=255.255.240.0 added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0 error connecting to 128.83.222.87:139 (No route to host) Error connecting to 128.83.222.87 (No route to host) Connection to webdev.ic2.org failed Attempting this through Windows Explorer also fails. My hosts allow and hosts deny are both blank. Are there any settings that I need to check to enable the server to respond to outside connections? Thanks, Kent Wang IC2 Institute -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] disabling user access to SWAT
I am rusty on this, but, if swat is started with -a, authentication is disabled. Look in inetd.conf or xinetd? and see how swat is called. Joel On Sat, Dec 06, 2003 at 12:39:09PM +0100, Florian Effenberger wrote: Hi, is there any option to disable the user access to SWAT for anyone else than root? Currently, every user can log on and view the system configuration. I would only like to let root logon. Thanks Florian -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] i can't configure my printers
Have you walked through DIAGNOSIS.txt? Joel -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows 2000 Not Seeing Linux Box Through Samba
DIAGNOSIS.txt and firewall issues. Joel On Mon, Dec 01, 2003 at 05:50:11PM -0500, Mark Turanin wrote: I set up my Linux box with Samba 2.x I can see my Windows 98 and Windows 2000 boxes fine - but none of the Windows boxes can see the Linux box in Network Neighborhood. I added the ip's AND created a user / pw in Linux to match my windows credentials. However, it will not work. Am I missing something? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbclient sending command to windows servers
This question has risen before. I have an idea I have never tried, but it sounds reasonable. Have a share on your windows client with a file called Run_it or somesuch. When this file is moved to another folder in the share, a daemon on the windows box spots the file in this folder and does whatever Run_it says to do. Run_it could just be a program name or could contain the entire program to run. But, this is just talk by an amateur. Joel On Mon, Dec 01, 2003 at 04:24:40PM -0500, Martin Corona wrote: I once used smbclient (or something in the smb suite) to send a command to windows and reset my windows password. I can't recall how I did it though (over a year ago). What I would really like to do is use smb to send a command to a windows machine that would run a script (shutting down Interwoven) and then back up all the Interwoven files using rsync. The RSYNC portion is easy since I mounted the windows system in /etc/fstab as -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't access Samba public directory from MS Windows
The best advice is to walk through DIAGNOSIS.txt. To find it, locate DIAGNOSIS.txt This sounds like name resolution isn't working or you have a firewall problem. Joel On Sun, Nov 30, 2003 at 11:18:51PM -0500, Katherine Chan wrote: My Linux XP (hostname isat, IP 192.168.1.8) is in the same workgroup as my Microsoft PC running Windows 2003 (IP 192.168.1.7). On my Linux host, I have a [public] section in the smb.conf file, as shown at the end of this message. When I typed the command smbclient '\\isat\public' the following message was displayed: added interface ip=192.168.1.8 bcast=192.168.1.15 nmask=255.255.255.240 password: I typed in the password for the owner of directory /home/public. The following text was displayed: Domain=[WORKGROUP] Os=[Unix] Server=[Samba 2.2.7a] Smb:\ This shows that I can connect to a file service. I then go to the DOS command screen on my Windows PC and typed the following to map network drive g: to directory /home/public on my Linux XP net use g: \\isat\public The following error message was displayed: System error 53 has occurred The network path was not found I also tried the following: From the Windows PC My Network Places -- Computers Near Me I can see isat under the Name column with comment Samba server But when I clicked on entry isat, the following error message was displayed: \\isat is not accessible The Network path was not found I can ping the Linux IP 192.168.1.8 from my Windows PC and I can also ping my Windows PC IP 192.168.1.7 from the Linux XP but I cannot ping the Linux hostname isat from the Windows PC. My /home/public directory on the Linux XP has mode 0777 (rwxrwxrwx). Do you know what could be causing this problem? Thanks! Katherine = Some of the relevant lines in my smb.conf file are shown below: [global] workgroup = WORKGROUP hosts allow = 192.168.1.0/255.255.255.240 127. security = user log file = /var/log/samba/%m.log max log size = 0 dns proxy = no [homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 [public] path = /home/public public = yes only guest = yes writable = yes printable = no -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux/Samba for the first time
Another way is to use guest account = root in global and guest ok = yes in the shares (might work in global, too) you want to give full access to. This is crude but it works. After you get experience, you could easily tighten up security, (which you really should do) but it is nice to get things working. Joel On Thu, Nov 27, 2003 at 05:16:19PM +0100, Per Bäckman wrote: I'm setting up a linux mashine with samba for filesharing to windowsclients. I use samba 3 and Linux rh9 and swat. We are just a small group of trusted people. I need to create a folder with rights for any windowsuser in the workgroup to: -connect to and add subfolders and files. -read all the subfolders and files. -change in subfolders and files. Basicly we will store the economysystem, filemaker pro server and officefiles. Finally we will back it up to a tape drive or to another media. Is there no easy way to make a share without restrictions? Thanks Per Bäckman -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WINS
Maybe bind inferfaces and interfaces might help in your smb.conf file. man smb.conf /bind interfaces n Joel On Thu, Nov 27, 2003 at 02:48:49PM -0300, Jorge Pinto wrote: Hello ! I have a database server running in a RH9 machine with two networks interfaces, but the second interface (10.0.1.1) does only clustering with another server, i have a PDC and WINS Server resident on a Win2000 machine. I had have troubles on find my linux machine in a network neighborhood from a Win machine. So i verified the linux machine registration in WINS server and i could see the linux machine register points to eth1 interface (10.0.1.1 - The second interface). Because this i can't find my linux machine from windows machines. How can i configure my samba server to register the first interface (eth0) in WINS? Thanks for any help. Jorge Mário Fonseca Pinto Analista de Suporte Sênior CTA- Continental Tobaccos Alliance S/A Venâncio Aires - RS , [EMAIL PROTECTED] ( (0xx51) 3741.2126 r 2081 - (051) 9648.0307 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printer sharing
Without thinking about this, have you walked through DIAGNOSIS.txt, which comes in your samba sources? What comes to mind are things like firewalls and network problems. Also, Cups (which I do not use) may have some security issues. It is fun to make the guest user root in smb.conf (just for testing!) and see if the problem goes away. Joel On Wed, Nov 26, 2003 at 11:46:56AM +0100, Timo Haberkern wrote: Hi, i used [printers] comment = All Printers path = /var/spool/samba browseable = yes printable = yes public=yes create mode = 0700 to share my printers to W2K Clients. For that i created a printer (printing is working locally) on my linux machine (RH9, Samba 2.2.7, Cups). If i try now to use this printer on my W2K machines i can create a Printer in the Control Panel browsing the Domain and installing the driver for Windows. The printer is there but i can't access him (Access not allowed; no connection possible) Has anyone an idea whats going wrong? Timo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbprint
In my version of samba, smbprint is a shell script, which just calls smbclient with the appropriate parameters. The script is convoluted, but essentially the command that smbprint sends is something like this: cat thefile | /usr/bin/smbclient //$server/$service $password -U $server -N -P $logfile 21 You can also use smbclient to log onto the printer share and then put the local file to the printer share. Just make sure you have the file properly filtered! Now, I do believe there is an options for --with-smbclient or some such when you build samba. Joel On Sat, Nov 22, 2003 at 04:37:12PM -0800, Joe Cipale wrote: While trying to configure my *nix box to print to windows, I discovered my samba build does not have the smbprint utility. I saw no option in the configure/make script to build with the smprint utility. Is there an option that will build this tool? Thanks! Joe Cipale -- #--# #Don't fear the penguin! # #--# # Registered Linux user: #309247 http://counter.li.org # #--# -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Initial Samba Setup
smbclient doesn't need samba. Here is how I would trouble shoot this: smbclient -d9 -L netbiosname junklog Look for lmhosts in junklog. smbclient will try to find your netbios name with: lmhosts hosts wins broadcast in that order by default. Hosts is DNS or /etc/host Look to see if the log tells you if found your XP computer. I would also read DIAGNOSIS.txt. If smbclient found the XP computer, the log should also give you a clue as to why the connection failed. Joel On Thu, Nov 20, 2003 at 07:24:16PM -0500, Kev wrote: I'm in the process of setting up Samba 3 on a Fedora core machine with a second machine being an XP machine. I can ping from either machine to the other. The command smbclient -L netbiosname on the linux machine gives me a Connection to netbiosname failed On the XP machine I've enabled Wins over TCP IP but the command nbtstat -n on the XP machine only lists itself while the command nbtstat -c is empty. What is my next step? K. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Initial Samba Setup
Oh, yes, it may not be obvious which smb.conf file your smbd is using. I find that: strings `which smbd` | grep smb.conf helps Joel On Thu, Nov 20, 2003 at 07:24:16PM -0500, Kev wrote: I'm in the process of setting up Samba 3 on a Fedora core machine with a second machine being an XP machine. I can ping from either machine to the other. The command smbclient -L netbiosname on the linux machine gives me a Connection to netbiosname failed On the XP machine I've enabled Wins over TCP IP but the command nbtstat -n on the XP machine only lists itself while the command nbtstat -c is empty. What is my next step? K. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't start smbd
This error usually means that samba is being started up by xinetd or inetd. These deamons watch the ports and prevent other processes from attaching to them. You will have to edit the config files for these daemons to make them stop this behavior. Joel Wed, Nov 19, 2003 at 03:58:35AM +, [EMAIL PROTECTED] wrote: OS = AIX 4.3.3 Samba 2.2.8a smb.conf: [global] workgroup = METRAN [test] comment = For testing only, please path = /usr/local/samba/tmp read only = no guest ok = yes smbd fails to start but did log a pid in smbd.pid. The process is not in the process table. I ran smbd -i to display the messages: smbd version 2.2.8a started. Copyright Andrew Tridgell and the Samba Team 1992-2002 bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use What can I do to resolve this and have smbd start as a daemon successfully? Thank you. Lucy Koepele The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] newbie question
I run a small home network. The linux box supplies the gateway to the internet. It works very nicely. All the other boxes (windows and linux) sit masqueraded and protected by the linux gateway. This doesn't use samba. Joel On Sat, Oct 04, 2003 at 06:23:57PM -0700, John Pearson wrote: Hello, I have not installed Samba yet but before I do I was wondering if it is possible with Samba to share an internet connection with a Windows XP computer. I want to use my computer running Redhat Linux 9.0 (with Samba) as the dialup for the internet and the Windows XP to connect to my computer and then out to the internet. I am new to Linux and all. I was just wondering. Thank you John __ Visit My Christian Online Ministry at: HYPERLINK http://christianonline.delri.net/index.htmlhttp://christianonline.delr i.net/index.html for daily devotionals, weekly sermons, message board, chat, and other links A.S.A.P.(Always Say A Prayer) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbmount not exiting
I find when calling a program from a bash script, the bash script always waits for the called program to return. This is normal behavior as I understand it. You have to use the option to get the bash script to continue after calling the program without the program exiting first. eg. !#/bin/bash /bin/mount etc more statements. Now, this won't return the exit code of your mount attempt You may have to capture the output of the mount command with /bin/mount etc outputmessages 21 and then examine the contents of outputmessages to see if you are mounted. This could be a nuisance. You could also capture the output with: output=`/bin/mount/etc ` and then examine the variable $output for strings suggesting success or failure of the mount attempt. Or, you could launch a daemon before you run the mount command. The daemon would be a program which would run each second (sleep works fine here) which checks for the mount and reports success, eg. !#/bin/bash while [ 1 -eq 1 ] do sleep 1 mount | grep \/mount\/dir [ $? -eq 0 ] { echo Mounted successfully exit } done If you call this checker, this might work: !#/bin/bash checker mount etc I am a big fan of simple scripts to solve simple problems. Joel On Thu, Oct 02, 2003 at 12:46:11AM +0200, Karin Spaink wrote: The following scriptlet, containing a wrong password among the mount options, #!/bin/bash /bin/mount -t smbfs -o \ netbiosname=mymachine,workgroup=group,username=user, \ password=wrongpasswd,ro,debug=4 //machine/c /mnt/dir /bin/echo Exit $? returns invariably mount.smbfs started (version 2.2.7a-security-rollup-fix) added interface ip=192.168.0.53 bcast=192.168.0.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name machine0x20 getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_hosts: Attempting host lookup for name machine0x20 Connecting to 192.168.0.50 at port 139 3457: session request ok 3457: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed Exit 1 However, the exact same code containing the right password hangs at the end of the line and doesn't return any exit code at all: #!/bin/bash /bin/mount -t smbfs -o \ netbiosname=mymachine,workgroup=group,username=user, \ password=rightpasswd,ro,debug=4 //machine/c /mnt/dir /bin/echo Exit $? reports mount.smbfs started (version 2.2.7a-security-rollup-fix) added interface ip=192.168.0.53 bcast=192.168.0.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name machine0x20 getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_hosts: Attempting host lookup for name machine0x20 Connecting to 192.168.0.50 at port 139 3472: session request ok 3472: session setup ok 3472: tconx ok That's all. The share is correctly mounted and accessible, but the script hangs forever waiting for mount/smbmount to exit. Substituting smbmount //machine/c /mnt/dir -o [same options] for the mount command makes absolutely no difference. Increasing the debug level to 10 gives no additional information after tconx ok. The log contains entries like [2003/10/02 02:27:34, 0] client/smbmount.c:send_fs_socket(383) mount.smbfs: entering daemon mode for service \\machine\c, pid=3487 and nothing else. Running mount with strace -v -f -s 128 gives the following: snip endless normal-looking output [pid 3493] open(/mnt/machine, O_RDONLY|O_LARGEFILE) = 6 [pid 3493] ioctl(6, SMB_IOC_NEWCONN, 0xbfffd080) = 0 [pid 3493] setsid()= 3493 [pid 3493] kill(3492, SIGTERM) = 0 [pid 3493] close(6)= 0 [pid 3493] brk(0) = 0x811e000 [pid 3493] brk(0) = 0x811e000 [pid 3493] brk(0x80fe000) = 0x80fe000 [pid 3493] brk(0) = 0x80fe000 [pid 3493] close(3)= 0 [pid 3493] open(/dev/null, O_WRONLY|O_LARGEFILE) = 3 [pid 3493] getrlimit(0x7, 0xbfffd000) = 0 [pid 3493] close(0)= 0 [pid 3493] close(1)= 0 [pid 3493] close(2)= 0 [pid 3493] close(4)= 0 [pid 3493] close(5)= 0 [pid 3493] close(6)= -1 EBADF (Bad file descriptor) [pid 3493] close(7)= -1 EBADF (Bad file descriptor) [pid 3493] close(8)= -1 EBADF (Bad file descriptor) [pid 3493] close(9)= -1 EBADF (Bad file descriptor) snip 1011 identical lines [pid 3493] close(1021) = -1 EBADF (Bad file descriptor) [pid 3493] close(1022) = -1 EBADF (Bad file descriptor) [pid 3493] close(1023) = -1 EBADF (Bad file descriptor) [pid 3493]
Re: [Samba] smbmount not exiting
Well, smbmount is a process that runs until you umount the share. This seems like normal behavior. Joel On Thu, Oct 02, 2003 at 04:01:16AM +0200, Zenon Panoussis wrote: The obvious suspect is exit trapping between smbmount and smbmnt, but that's a suspicion that won't hold in court; it's sheer speculation. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbclient -L localhost fails
Just guessing. You are sure V-Net ok to use for you netbios name? Joel On Sat, Sep 27, 2003 at 02:25:18PM -0700, Vladimir Gower wrote: [rootOcheezetoast samba] smbclient -L localhost added interface ip=192.168.1.3 bcast=192.168.1.255 nmask=255.255.255.0 Password: Anonymous login successful Domain=[V-NET] OS=[UNIX] Server=[Samba 2.2.7a] tree connect failed: NT_STATUS_BAD_NETWORK_NAME All of the network configurations are correct. I've been searching the web and old mail lists for a week now and need help. I'm running RedHat 9.0 and started using a stripped down smb.conf file: [global] encrypt passwords = yes netbios name = linuxbox workgroup = V-NET browsable = yes [tmp] comment = temporary files path = /tmp read only = no all machines on the network can ping each other. (Win2k, 2 winXPs, a win98 and the RH9). Got this error going through the diagnostics.txt file. smbusers file: root = root administrator admin nobody = guest pcguest smbguest Any ideas? This ever come up before? (If so the searches didn't find an answer to it). Thank you everyone for reading this, need any other information? Vladimir -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Q: Share Definitions, how to make a 'truely public' area
I am a bit rusty on this sort of question, but: Maybe you have somethings in your global section screening out visitors? Maybe a firewall problem? How are the visiting laptops assigned ip's and names? Joel On Fri, Sep 19, 2003 at 05:21:14PM -0700, J. Nyhuis wrote: Greetings, I am trying to set up a Public share that visitors who do not have accounts in our system have ro access to, while staff members (who do have accounts) have rw access. Our department has visitors who plug laptops into our network who will only be there once, and want to copy some of our software. However, with the following share definition, staff have rw access, but visitors can't even browse. My share definition is as follows: [public] comment = Filespace Everyone can Access path = /shares/Public/ browseable = yes public = yes read only = yes write list = @staff # read only, except for people in the staff group What am I missing? Do I need a guest account at the unix level or something? (or would that be Guest). Thanks in advance for the advice. John H. Nyhuis systems administration Cell Systems Initiative -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Save read only using MS world
If you don't find an easy solution, you might try running a daemon on the samba server which scans the files in this directory and changes the files to read only. The find command sounds like just the thing for this job. Now, don't tell me you have tens of thousands of documents on this server and this will be too much overhead! Perhpas the create mode parameter might be of use here. Joel On Mon, Sep 08, 2003 at 08:35:10PM +0100, Simon Oexl wrote: Dear Sirs, I like to ask you for some help. I am fairly new to samba so I do not know if my intention will work. I like to set up a directory where I can save new documents only. Old documents should be read only. This will prevent from accidental deletion and overwriting. I configured set mask to 0555 as this will generate the read only attribute on Windows. This works fine when I create a text file with an editor. But when I try to save a word document it will not. Word creates some temporary file ~xxx.txt and when I try to save with the proper file name I get an error message. Disk Full. Could you please give me a clue what I could do to get this working with Word? Many thanks and kind regards, Simon Oexl -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbd won't run - Error message says port 139 in use
Or, inetd is starting samba for you. Joel rOn Sun, Aug 17, 2003 at 04:08:04PM -0600, John M. Purser wrote: Samba was working well but I changed the host allow section of smb.conf and it stopped. I changed it back and restarted and got this error message in log.smbd [2003/08/17 12:15:26, 0] lib/util_sock.c:open_socket_in(789) bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use I have a really simple smb.conf: # Samba config file created using SWAT # from localhost (127.0.0.1) # Date: 2003/08/17 11:50:06 # Global parameters [global] workgroup = JMPURSER.NET interfaces = eth0 192.168.1.40/24 encrypt passwords = Yes os level = 65 preferred master = True domain master = False hosts allow = 192.168.1.10 [test] comment = for testing only, please path = /home/samba/browse read only = No guest ok = Yes I'm running samba on Debian woody. Can anyone tell me what happened or give some trouble shooting tips on how to figure out what's going on? Thanks, John Purser -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Error mounting Win2K share on Debian box
You have gotten no replies, so I'll guess. Maybe the space and/or the apostrohe are confusing the system. Joel On Sat, Aug 16, 2003 at 12:38:31PM -0600, John M. Purser wrote: I'm working my through the The Unofficial Samba HOWTO but when I tried this command: mount -t smbfs -o username=fred,password=secret //192.168.1.1/Perrin's Documents /mnt/smbmnt I got this error: mount: wrong fs type, bad option, bad superblock on //192.168.1.10/Perrin's Documents, or too many mounted file systems Here are the smb related lines from my kernel (2.4.20) .config file: CONFIG_SMB_FS=y CONFIG_SMB_NLS_DEFAULT=y CONFIG_SMB_NLS_REMOTE=cp437 I don't even have the cdrom mounted so I'm discounting the possibility of too many mounte file systems. What incredibly simple thing am I overlooking this time? Thanks, John Purser -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Print Job Names Are Obscure
This works for me with lprng: [ps] comment = Filtered for Z53 path = /tmp read only = No create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Pps -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Pps lprm command = /usr/bin/lprm -Pps %j lppause command = /usr/sbin/lpc hold ps %j lpresume command = /usr/sbin/lpc release ps %j share modes = No use client driver = yes The truncation is to get rid of the boilerplate with which some programs prefix their print job names. Joel On Mon, Aug 11, 2003 at 11:34:20AM -0600, adam r. christopher wrote: Hello all, Is there any way to stuff a more descriptive tag into a print job name? The jobs we're printing now are of the type: smbprn.003447.sdfasa I seem to remember a way to put the sending machine's name into the job name. Any help would be greatly appreciated! -adam University of Denver -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing to FreeBSD server from XP using samba
I haved been using this parameter (rw) since I began using linux. I forget why I use it. This link is the lprng howto. http://www.lprng.com/LPRng-HOWTO/LPRng-HOWTO.html#AEN3105 If you seach for rw (don't use the quotes in your search string) you will see this is used only for serial printers. Although, I don't see why other printers wouldn't need to be rw. Oh well. It works. Good. Joel On Thu, Aug 14, 2003 at 08:29:50PM +1000, David Lodeiro wrote: On Wed, 13 Aug 2003 10:30 pm, you wrote: Firstly, I can not thankyou enough for your help as I have spent the last 6 or so days trying to figure this out. I'm using lprng. The thing I was missing was in my printcap file, and it wasnt till I read your email that I saw what was the problem. I had :sh: you had :sh:rw: And that was it. Im assuming thats read write? correct me if Im wrong. I didnt find that anywhere in any documentations, howtos, that I had read. Now it works perfectly. Thankyou again David I don't know anything about BSD and you don't say which printing system you use (cups, lprng, whatever), but: Printing with samba is simple. Your client transfers the job to the print server spool directory. Then, the print command on the sever is invoked to print that file. Then, the file is removed. SO: Have you verified that the print job has been transferred to your print server? I do this by changing my printing command in smb.conf to something like print command = echo %s was transferred /tmp/junk. That way the job is never printed and it just stays in your spool directory with that funny long smb name. (Using cups, you can't change the print commands in smb.conf, they tell me.) Then, if the job got transferred, try to print the job using the print command that your system is supposed to use for this file. This file will have been filtered by the XP client before being sent, so, you have to send it to a raw queue, likely. Or, maybe your client is sending postscript formatted jobs. You don't say in your post. If you can print a file like this, then you just have to set up a queue with the appropriate printing commands to get it done. I leave nothing to chance, and specify all the printing commands in my print queue, like so: [lp] comment = Raw Printer for Z53 # max print jobs = 1 path = /tmp create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng # print command = echo Tried to print %s /SPOOL/junk.%s # print command = echo %J %p %s /tmp/junkJ; /usr/bin/lpr -Plp -J'%J' %s; rm %s # print command = echo %J %p %s /tmp/junkJ; j=`echo %J | sed s/^.*-//`; /usr/bin/lpr -Plp -J'$j' %s; rm %s # print command = echo %J %p %s /tmp/junkJ; /usr/bin/lpr -Plp -J'%J' %s; rm %s print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Plp -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j printer name = lp # printer driver = Lexmark Z53 Series ColorFine # printer driver location = \\HAMMER2\AllFiles\usr\local\samba\printer share modes = No My printcap file for lp is as follows: lp|LP|z53-outfiles:\ :sd=/var/spool/lpd/lp:\ :mx#0:\ :lp=/dev/lp0:\ :sh:rw: There is also another complication. The testpage that is generated by the printer setup program may not be sent through the usual filtering mechanism as a regular print job. Thus, if you are sending postscript formatted files to your printserver with a printer that can handle postscript files, this same queue may not be able to handle the raw format in which the test page is sent. Note: All this information is what I have gleaned by much trial and error. I don't know how much will apply to your setup. One more thing, you have a [printers] share and then a share written for your particular printer. You might consider getting rid of the [printers] share. Then, add a few things to the [lp] share, like a path, printable, etc. Joel On Wed, Aug 13, 2003 at 08:34:05PM +1000, David Lodeiro wrote: A couple of days ago I set up my printer on my FreeBSD server and set it up so I could print from my FreeBSD client. This all works very well, printing from botht the server and the FBSD client. However, I also have samba set up for file serving with an XP box. I have been trying for quite some time now to set samba up to enable me to print from the XP client. My situation at the moment is that the XP client can detect the
Re: [Samba] Printing to FreeBSD server from XP using samba
I don't know anything about BSD and you don't say which printing system you use (cups, lprng, whatever), but: Printing with samba is simple. Your client transfers the job to the print server spool directory. Then, the print command on the sever is invoked to print that file. Then, the file is removed. SO: Have you verified that the print job has been transferred to your print server? I do this by changing my printing command in smb.conf to something like print command = echo %s was transferred /tmp/junk. That way the job is never printed and it just stays in your spool directory with that funny long smb name. (Using cups, you can't change the print commands in smb.conf, they tell me.) Then, if the job got transferred, try to print the job using the print command that your system is supposed to use for this file. This file will have been filtered by the XP client before being sent, so, you have to send it to a raw queue, likely. Or, maybe your client is sending postscript formatted jobs. You don't say in your post. If you can print a file like this, then you just have to set up a queue with the appropriate printing commands to get it done. I leave nothing to chance, and specify all the printing commands in my print queue, like so: [lp] comment = Raw Printer for Z53 # max print jobs = 1 path = /tmp create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng # print command = echo Tried to print %s /SPOOL/junk.%s # print command = echo %J %p %s /tmp/junkJ; /usr/bin/lpr -Plp -J'%J' %s; rm %s # print command = echo %J %p %s /tmp/junkJ; j=`echo %J | sed s/^.*-//`; /usr/bin/lpr -Plp -J'$j' %s; rm %s # print command = echo %J %p %s /tmp/junkJ; /usr/bin/lpr -Plp -J'%J' %s; rm %s print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Plp -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j printer name = lp # printer driver = Lexmark Z53 Series ColorFine # printer driver location = \\HAMMER2\AllFiles\usr\local\samba\printer share modes = No My printcap file for lp is as follows: lp|LP|z53-outfiles:\ :sd=/var/spool/lpd/lp:\ :mx#0:\ :lp=/dev/lp0:\ :sh:rw: There is also another complication. The testpage that is generated by the printer setup program may not be sent through the usual filtering mechanism as a regular print job. Thus, if you are sending postscript formatted files to your printserver with a printer that can handle postscript files, this same queue may not be able to handle the raw format in which the test page is sent. Note: All this information is what I have gleaned by much trial and error. I don't know how much will apply to your setup. One more thing, you have a [printers] share and then a share written for your particular printer. You might consider getting rid of the [printers] share. Then, add a few things to the [lp] share, like a path, printable, etc. Joel On Wed, Aug 13, 2003 at 08:34:05PM +1000, David Lodeiro wrote: A couple of days ago I set up my printer on my FreeBSD server and set it up so I could print from my FreeBSD client. This all works very well, printing from botht the server and the FBSD client. However, I also have samba set up for file serving with an XP box. I have been trying for quite some time now to set samba up to enable me to print from the XP client. My situation at the moment is that the XP client can detect the printer in explorer, I can set up a printer using a wizard to print to it without any errors, however when I go to print a test page, nothing happens. No errors, no printout, and the wierdest part is that nothing shows up in either the que on my xp box or on the lpq on the server. I started the smbd and nmbd demons with debugger set to 10 to see if I could find something out Firstly the relevant part of my printcap file Canoni850|bjc800:\ :lp=/dev/lpt0:\ :sd=/var/spool/lpd/Canoni850:\ :lf=/var/spool/lpd/Canoni850/log:\ :mx#0:\ :sh: To handle all the raw printing ( ie. from windows ) And the relevent art of my smb.con [printers] comment = Printers path = /var/spool/lpd browseable = no printable = yes public = yes # create mode = 4777 [Canoni850] comment = Canoni850 path = /var/spool/lpd/Canoni850 browseable = yes printable = yes # printer driver = Canon i850 [lp] comment = FreeBSD printer browseable = no printable = yes Here is what I got in log.smbd with log level at 10 [2003/08/12 23:40:55, 5]
Re: [Samba] Connection refused
Is samba running? Is samba being controlled by (x)inetd? Joel On Fri, Aug 01, 2003 at 02:19:56PM +0200, Galiba Piter wrote: I have newly configured our new HP Netserver LC 2000r with Samba 2.0.7. The Samba was compiled with SSL. I can connect to it from localhost, but from any other ip i got the error: connectionrefused c2-server:~# smbclient -L 192.168.0.100 added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0 error connecting to 192.168.0.100:139 (Connection refused) Connection to 192.168.0.100 failed c2-server:~# smbclient -L c2-server3 added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0 Connection to c2-server3 failed The name of the Server is C2-Server3, and it is on 192.168.0.100. The smb.conf file looks like this: [global] printing = bsd printcap name = /etc/printcap load printers = yes guest account = nobody security = user workgroup = C2 server string = %h server (Samba %v) syslog only = no syslog = 0; socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 encrypt passwords = yes wins support = no name resolve order = lmhosts host wins bcast dns proxy = no preserve case = yes short preserve case = yes unix password sync = false max log size = 1000 ssl CA certFile = /etc/share/certs/ca-certs.crt [homes] comment = Home Directories browseable = no read only = no create mask = 0700 directory mask = 0700 [printers] comment = All Printers browseable = no path = /tmp printable = yes public = no writable = no [munka-9] path = /mnt/data/munka-9 public = yes writable = yes comment = force group = c2-users force create mode = 777 force directory mode = 777 printable = no Can anybody tell me what went wrong? There is no error in the log files. They don't even tell that I wanted to connect, only if I connect from localhost. Thanks.. Poetro -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't access shares from Win98 machine
Just some thoughts: You should have a guest account defined in your global. Try: guest account = ftp or guest account = root or guest account = some_regular_user or guest account = special_samba_user_you_create depending on your security needs. You need to have ports 137 and 139 open on your Redhat server. Is samba running on your server? Odd that you can't connect from you local box. Is xinetd trying to control samba? That has all sorts of ways not to work. Best to have samba as a stand alone daemon. Joel yrOn Wed, Jul 30, 2003 at 05:43:57PM -0700, Dan Pixley wrote: Hello all. I have recently set up Samba on my Rehdat 9 machine. I have on my home network 2 computers, one running Redhat 9 (with Samba as mentioned), and the other running Windows 98 2nd ed. My RH machine can read and access shared directories on the Win98 machine just fine. My Windows machine can see my Redhat machine on the smb, but cannot access the shares. In other words, when I go to Network Neighborhoods - Mshome - The_Machine, I see my two shares (homes and test), but when I try clicking into them, I am unable to access them. I am running Samba 2.2.7. Here is my smb.conf: # Samba config file created using SWAT # from localhost.localdomain (127.0.0.1) # Date: 2003/07/29 22:12:24 # Global parameters [global] workgroup = MSHOME netbios name = THE_MACHINE server string = Samba Server security = SHARE encrypt passwords = Yes null passwords = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* unix password sync = Yes log level = 3 log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = Yes local master = No dns proxy = No kernel oplocks = No printing = cups [homes] comment = Home Directories path = /home/Dan1/Shared valid users = %S read only = No create mask = 0664 directory mask = 0775 guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [test] path = /home/Dan1/Shared read only = No guest ok = Yes Other things: ]# smbclient //localhost/The_Machine added interface ip=192.168.1.102 bcast=192.168.1.255 nmask=255.255.255.0 error connecting to 127.0.0.1:139 (Connection refused) Error connecting to 127.0.0.1 (Connection refused) Connection to localhost failed # nmap 127.0.0.1 Starting nmap V. 3.00 ( www.insecure.org/nmap/ ) Interesting ports on localhost.localdomain (127.0.0.1): (The 1595 ports scanned but not shown below are in state: closed) Port State Service 22/tcp openssh 25/tcp opensmtp 111/tcpopensunrpc 631/tcpopenipp 901/tcpopensamba-swat 6000/tcp openX11 Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds (I disabled my software firewall for the time being) My home network is strung together using a Linksys Router with NAT firewall. With my current router configuration, and if I boot the Redhat machine into Windows, I am able to access the Windows shares just fine. Any info would be greatly appreciated. Thanks in advance, Dan -- Dan Pixley [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] General Samba Printer Admin question
Depending on your printing system, ldp.perms might be a place to look. Joel On Thu, Jul 31, 2003 at 11:22:49AM -0400, Helen Nulty wrote: How do you handle general samba print job administration? Anyone have print command scripts to share? We would like our printer admins to be able to pause and resume printing. Now we get Error processing command when Pause Printing is attempted from an NT workstation. I presume this is because the admin lacks authority to execute the lppause/lpresume commands. Ours are: lp -d %p -%j -H hold lp -d %p -%j -H resume Any suggestions will be appreciated. Helen Other pertinent details: samba version 2.2.8a solaris 2.8 smb.conf: # Global parameters [global] workgroup = UNCSPH netbios name = BIANCA netbios aliases = SPH1 server string = Samba Server 2.2.8a interfaces = qfe* nnn.nnn.nnn.nnn/255.255.0.0 security = DOMAIN encrypt passwords = Yes min passwd length = 6 password server = CORDELIA CRESSIDA passwd program = /bin/passwd %u passwd chat = *Enter login(NIS+) password:* %o\n *New*password* %n\n *Re-enter*password:* %n\n *changed for* username map = /usr/local/samba/lib/users.map log level = 3 syslog only = Yes max log size = 50 printcap name = /etc/printers.conf os level = 0 wins proxy = Yes wins server = nnn.nnn.nnn.nnn host msdfs = Yes printer admin = administrator admin system root hnulty testsmb security mask = 0377 force security mode = 0377 directory security mask = 0377 force directory security mode = 0377 hosts allow = nnn.nnn.0.0/255.255.0.0 nnn.nnn.0.0/255.255.0.0 hosts deny = all printing = bsd print command = lp -c -d %p %s; rm %s lpq command = lpq -P %p lprm command = lprm -P %p -%j lppause command = lp -d %p -%j -H hold lpresume command = lp -d %p -%j -H resume [printers] path = /var/spool/samba guest account = printer admin = administrator admin root system hnulty testsmb guest ok = Yes printable = Yes browseable = No [print$] comment = Support uploading of printer driver files path = /usr/local/samba/printers write list = admin administrator system root force user = system force group = system -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] how to hide printers in windows?
What if you made the printers nonbrowseable? Joel On Mon, Jul 28, 2003 at 09:25:02PM -0700, Kalin Nikolov wrote: When I click on a Samba server (configured by me) from My Network Places in Windows, I can see all network shares + Printers. Is there an option in global part in smb.conf to hide Printers from showing in Windows? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba and Winxp ?
I have had no trouble with XP home or pro with samba. So, this is a local problem with your setup. Joel XOn Sun, Jul 27, 2003 at 03:28:13PM +0200, Thomas have wrote: Hello My problem is this.. I have just shared a printer with samba. With Win2k theres no problem at all finding the server/printer.. But when i try with WinXP i cant do nothing, the only thing i can is ping server Just have to say that im a newbie at samba sow i have not change that much in smb.conf System = Redhat 8.0 Hope there is somebody out there that have a solution to my problem Thangs _ OFiR Spil - Vind 1.000 vis af kroner! Besøg http://spil.ofir.dk OFiR Kontakt - Interesseret i en sommerdate? Besøg http://kontakt.ofir.dk -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: I've always HATED printing with Samba
On Sun, Jul 27, 2003 at 01:11:33PM -0700, Jim C wrote: The Lexmark software on the client side insists on communicating with the printer. Apparently, if it can't, it assumes there is no printer or no network etc. According to my research the way around this is to use the Lexmark Z52 driver, which is supposedly 100% compatible, OR to disable bidrectional printing features from the client OR to go with straight postscript. None of these has worked for me. There is something I am missing but I have no idea what it is. Probably something totally transparent to a guru and completely opaque to a newbie. I distinctly recall this problem with the z53 software on windows printing to a samba server. There is an option in the z53 windows software (windows 98, can't comment on XP. I always used the postscript trick for them.) to turn off two way communication with the printer. Have you found this option? Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
Is is established yet if your setup is using the lexmark supplied software or cups drivers? It may not really matter. If the printer is working fine locally, then it seems to be a problem with samba. What you have to do is figure out which queue is accepting jobs on your server, locally, then set up your samba share to direct jobs to that queue. You might look at /var/spool/lpd. The print queues usually hang out there. Look for a print queue which is controlling your printer, and use that in your samba share. Your system seems to be generating its printcap file dynamically. This sounds like something with which I contended when I used RH at one time. This is one of the many advances in linux which just makes it harder to fix problems. I didn't get any results with network printing until I disabled that automatic generation of the printcap. There is some sort of printing frontend which does this. I would get rid of it and set up a regular printcap file, or else try to edit the configuration file this printing frontend is using. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
A raw queue has no filter, it just sends the job straight to the printer. Since you are using cups and have this frontend for printing which recreates your /etc/printcap file on the fly, I am not sure how you would go about creating a raw queue. You might try fooling around with printer/settings and see if you can create a raw queue with it. It may already exist. If it does, just send your print jobs to it from your windows clients. If you want to not use the z53 client software on windows, you will need to set up a queue which uses the z53.sh as the filter on your linux server. Again, printer/settings or whatever might let you do this. I sent a copy of my printcap which does that. Joel On Fri, Jul 25, 2003 at 06:52:40PM -0700, Jim C wrote: There is a menu on the lexmarkz53 windows software which disables two way communication. If you use the lexmarkz53 windows client software, you need to send your jobs to a raw queue on the server. Joel 1. What does sending jobs to a raw queue entail? 2. Assumeing I want to go the other route (i.e. *not* using the Z53 client software), how would I go about this? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 2 issues using SAMBA as a print server
Any suggestions as how to give the Windows XP permissions to see and delete their own jobs? This may depend on which printing system you have on the linux box. A lot of people seem to be using cups, about which I know nothing. I use lprng. There is a file called lpd.perms, which hangs out in /etc on my system. This is the most convoluted, unix like configuration file I have ever seen. But, it is flexible. See man lpd.perms for info about it. If you don't like the man pager, then: man -t lpd.perms junk.ps ps2pdf junk.ps junk.pdf acroread junk.pdf To make everything work as expected, without any particular security or usage limitation, I just put: DEFAULT ACCEPT as the first and only line in my lpd.perms file. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Accessing Shares with WXP Pro
What are your security concerns? If you have none, try in global: guest account = ftp (assuming this user exists on your linux server) and in your share put: guest ok = yes If you really really have NO security concerns, guest account = root would be fine too. About the user name. I believe windows always uses the name you logged in with. Joel On Thu, Jul 24, 2003 at 09:29:55AM -0500, James Bear wrote: Let me rephrase my question: How do I access shares with WXP Pro. I don't want to be part of a domain. I just want to be able to search for the server from the computer, map a network drive to a share, and then life will be good. With that said, right now I can find the server. I can double-click it. But what comes up is a login box that only lets me put in a password. The username is already set to /servername/Guest Here is my samba.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2003/07/23 11:16:35 # Global parameters [global] netbios name = WALDO netbios aliases = waldo server string = where is security = SHARE passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* log file = /var/log/samba/%m.log socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes default service = homes printing = cups [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 [printers] comment = All Printers path = /var/spool/samba valid users = bear printable = Yes postscript = Yes browseable = No Can somebody help? -- James Bear www.montpelier.k12.nd.us God is good...all the time. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
This looks like you use cups, not lprng, so, I have no idea how much of what I said will apply. Maybe you haven't the software from lexmark. Here is a part of what I see with: locate z53 /mnt/hda4/usr/local/lexmark/z53 /mnt/hda4/usr/local/lexmark/z53/A4.xpm /mnt/hda4/usr/local/lexmark/z53/A5.xpm /mnt/hda4/usr/local/lexmark/z53/A6_Card.xpm /mnt/hda4/usr/local/lexmark/z53/align.xpm /mnt/hda4/usr/local/lexmark/z53/alignz53 /mnt/hda4/usr/local/lexmark/z53/B5.xpm /mnt/hda4/usr/local/lexmark/z53/Banner.xpm etc. etc. By point to I mean the if (input filter) paramter in /etc/printcap, which refers to the file z53.sh if you are using the lexmark supplied drivers. Joel On Thu, Jul 24, 2003 at 08:47:18PM -0700, Jim C wrote: OK. Here is what works for me. As usual, your mileage may vary. I assume you have installed the software for the lexmarkz53 on your linux server. I assume you can print a test page. If you can't, likely you are not printing the testpage to a raw queue. The testpage goes to a raw queue while the real print jobs go to a filtered queue, in my setup. I assume you know how to run the lexmark setup program which generates the configuration file. lexmark supplies print filters that work fine in linux to drive the z53. I wrote a tutorial on print filters some time ago. I used this filter as part of that writeup. Here is part of that tutorial. Start Tutorial= There is a shell script called z53.sh. This is what your printcap file should be pointing to. I'm not sure I know what you mean by points to. [EMAIL PROTECTED] z53]# man printcap No manual entry for printcap [EMAIL PROTECTED] z53]# man -k printcap printcap: nothing appropriate /etc/printcap says: # This file was automatically generated by cupsd(8) from the # /etc/cups/printers.conf file. All changes to this file # will be lost. LexmarkZ53|LexmarkZ53:rm=enigma.microverse.net:rp=LexmarkZ53: [EMAIL PROTECTED] z53]# locate LexmarkZ53 /etc/cups/ppd/LexmarkZ53.ppd /etc/foomatic/LexmarkZ53.ppd /var/cache/samba3.BAK/samba3/printing/LexmarkZ53.tdb /var/cache/samba3/printing/LexmarkZ53.tdb /home/jcolling/.openoffice/user/psprint/driver/LexmarkZ53.PPD -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing multiple copies
No! But if I print from Acrobat Reader is see a popup where the system say that the printing support only 1 print copy. Word or Excel doesn't show anythink This really sounds like something in the printer driver on your client. I don't see this problem with XP home or XP pro. I would try to use a different driver, say the HP laserjet III plus with postscript or some such, and run the same experiment as before. (No paper in the printer). Look at your /tmp/JunkJ file for how many jobs got sent. Look at the queue on the windows client. If there are multiple files being sent, then that would prove that the printer driver is the problem. BTW, that would also be a solution. Get a linux driver for your printer that accepts postscript (all of them do) and your printer problems are solved forever, at least with this printer. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 2 issues using SAMBA as a print server
Try adding : use client driver = yes to your printer share. Joel On Wed, Jul 23, 2003 at 11:24:17AM -0700, Rob Tanner wrote: 2. Even though I can print to the SAMBA shared printer without any problem, the box that gives printer status claims that it cannot connect to the printer. What setting in SAMBA will take care of that? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 2 issues using SAMBA as a print server
Don't you have to set up your clients to talk to each of the ten printers? Joel On Wed, Jul 23, 2003 at 11:24:17AM -0700, Rob Tanner wrote: I am using SAMBA/Lprng to do printer accounting for charge-back. There are two technical issues I have not been able to resolve. 1. When attempting to connect to the printer from a Windows box in the domain (the SAMBA server is simply a server that's a member of the domain, it is not the PDC) I get the message that the server does not have the appropriate driver and then it pops up a setup wizard. Since some several hundred machines may end up using any one of 10 different printers, what do I need to do in SAMBA to prevent this? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing multiple copies
Well, I just tried an experiment. With XP Home, printing to a postscript printer on my linux box, the job is sent as multiple, sequential postscript files, each file being just one copy. Ergo, samba thinks it has received multiple different print jobs, not one job consisting of multiple copies. This is different from what I found before, suggesting that new print drivers on the windows box (XP) handle multiple copies differently. I get multiple copies printed out with XP Home sent to my linux server. No problem. Do you see your windows client actually sending multiple copies when you print? What is the printing system you are using? If not cups, you might modify your printing command in smb.conf to gather some information. Here is what I have with my lprng print command. [ps] comment = Filtered for Z53 path = /tmp read only = No create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Pps -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Pps lprm command = /usr/bin/lprm -Pps %j lppause command = /usr/sbin/lpc hold ps %j lpresume command = /usr/sbin/lpc release ps %j share modes = No use client driver = yes That long print command captures the smb job name (%s) so I can see what really is going on (whether one or multiple jobs get sent). And, it captures the file name sent from windows (%J). The file name is truncated to remove a Microsoft prefix sent with each filename. If you have cups, I can't offer anymore advice. With cups you can't ( I think) change the print commands in smb.conf. Although, there must be a way to change the print commands in cups elsewhere. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing multiple copies
I don't know much about BSD printing. It looks like your client is only sending one copy, since the single copy and twelve copy print job are the same size. When I send multiple copies with my print job, a pop up box on the screen shows each job being sent. Do you see this? One trick you might try is to remove the paper from your printer and send a multiple copy print job. On my XP home box, the windows print queue shows each individual print job or copy. If you used my print command, you will see a nice file name, not the silly smbd name. So, if I print two copies, two print jobs appear in the queue. (This is not how it was in the old days when the postscript print file had the data to print multiple copies.) If you only see one print job, this would likely be a local configuration problem on your XP home box. Well, I have got to get to my day job. Good luck. I'll try to read my email again in about 10 hours. Joel On Tue, Jul 22, 2003 at 12:53:43PM +0200, Roberto Fichera wrote: At 06.05 22/07/2003 -0400, Joel Hammer wrote: Well, I just tried an experiment. With XP Home, printing to a postscript printer on my linux box, the job is sent as multiple, sequential postscript files, each file being just one copy. Ergo, samba thinks it has received multiple different print jobs, not one job consisting of multiple copies. This is different from what I found before, suggesting that new print drivers on the windows box (XP) handle multiple copies differently. I get multiple copies printed out with XP Home sent to my linux server. No problem. Do you see your windows client actually sending multiple copies when you print? What is the printing system you are using? Is the RH6.2 default printing=bsd If not cups, you might modify your printing command in smb.conf to gather some information. Here is what I have with my lprng print command. [ps] comment = Filtered for Z53 path = /tmp read only = No create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Pps -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Pps lprm command = /usr/bin/lprm -Pps %j lppause command = /usr/sbin/lpc hold ps %j lpresume command = /usr/sbin/lpc release ps %j share modes = No use client driver = yes That long print command captures the smb job name (%s) so I can see what really is going on (whether one or multiple jobs get sent). And, it captures the file name sent from windows (%J). The file name is truncated to remove a Microsoft prefix sent with each filename. Below you can see the log as you suggest. The two tmp.* spooling files are the same document, for the first I request 12 pages the second 1 page. [EMAIL PROTECTED] tmp]# ls -al totale 864 drwxrwxrwt4 root root 8192 lug 22 12:35 . drwxr-xr-x 20 root root 4096 lug 22 09:28 .. drwxrwxrwt2 xfs xfs 4096 lug 22 09:29 .font-unix -rw-rw-rw-1 roberto tekno 352 lug 22 12:35 junkJ drwx--2 root root 4096 feb 28 2002 orbit-root srwxrwxrwx1 postgres postgres0 lug 22 09:29 .s.PGSQL.5432 -rw---1 postgres postgres 24 lug 22 09:29 .s.PGSQL.5432.lock -rw---1 roberto tekno 420993 lug 22 12:34 tmp.smbprn.88.JDeufV -rw---1 roberto tekno 420993 lug 22 12:35 tmp.smbprn.89.uJ5DXA [EMAIL PROTECTED] tmp]# cat junkJ Microsoft Word - Test.doc ps smbprn.88.JDeufV This is truncated Microsoft Word - Test.doc ps smbprn.89.uJ5DXA This is truncated [EMAIL PROTECTED] tmp]# Joel Roberto Fichera. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
I seem to have lost most of this thread. But, if you are using a z53 lexmark, you should have no trouble. That's what I use and it works just dandy both as a local and as a network printer. Let me know and I can give you some tips on using this printer with linux. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
Before I get into this, I gotta know. Are you using a lexmark z53 hanging off a linux box? Joel On Tue, Jul 22, 2003 at 02:47:57PM -0700, Jim C wrote: Joel Hammer wrote: I seem to have lost most of this thread. But, if you are using a z53 lexmark, you should have no trouble. That's what I use and it works just dandy both as a local and as a network printer. Let me know and I can give you some tips on using this printer with linux. Well in regards to this, here are a few things that it would help to know. 1. When the cleint-side printer drivers are uploaded, where do they go? That way I can check perms and stuff. 2. What does the printer section of your smb.conf look like? I posted mine earlier but I will repost for you, K? :-) Note: Some comments were added to this but not to the actual smb.conf [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p %s -r # using cups own drivers (use generic PostScript on clients). #Tried this setting and also the one for client side drivers and one for server side drivers. lpq command = lpq -P %p lprm command = cancel %p-%j browseable = No #Why no? [print$] path = /var/lib/samba/printers write list = @adm root #Who exactly should be on this list? Just admin or users also? [pdf-generator] #I would especially love to get this working. comment = PDF Generator (only valid users) path = /var/tmp printable = Yes print command = /usr/share/samba/scripts/print-pdf %s ~%u %L%u %m %I -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I've always HATED printing with Samba
OK. Here is what works for me. As usual, your mileage may vary. I assume you have installed the software for the lexmarkz53 on your linux server. I assume you can print a test page. If you can't, likely you are not printing the testpage to a raw queue. The testpage goes to a raw queue while the real print jobs go to a filtered queue, in my setup. I assume you know how to run the lexmark setup program which generates the configuration file. lexmark supplies print filters that work fine in linux to drive the z53. I wrote a tutorial on print filters some time ago. I used this filter as part of that writeup. Here is part of that tutorial. Start Tutorial= There is a shell script called z53.sh. This is what your printcap file should be pointing to. /usr/local/lexmark/z53/z53.sh This print filter accepts either pdf files, text files, or postscript files. Then, using ghostscript, it converts them into a ppm format (whatever that is), then it pipes them to the real filter, which only can come from lexmark, z53, and then to your printer. Here is the z53.sh script: 2 #!/bin/bash 3 DEBUG=0 4 PDIR=/usr/local/lexmark/z53 5 TMPFILE=`mktemp /tmp/lexmark.XX` 6 7 # lxgps is a little utility used to setup the 8 # Ghostscript parameters. It sets two parameters 9 # in particular: resolution and paper size. It 10 # determines what to set these to by reading the 11 # configuration file that is passed in. 12 GSPARMS=`$PDIR/lxacgsparm z53.conf` 13 14 runz53 () 15 { 16 cat $TMPFILE 17 file -b $TMPFILE | grep -i postscript /dev/null 18 if [ $? -eq 0 ] 19 gs -q -dNOPAUSE $GSPARMS -sDEVICE=ppmraw -sOutputFile=- $TMPFILE | $PDIR/z53 --config z53.conf --dotcounts 20 else 21 file -b $TMPFILE | grep -i PDF /dev/null 22 if [ $? -eq 0 ] 23 gs -q -dNOPAUSE $GSPARMS -sDEVICE=ppmraw -sOutputFile=- $TMPFILE | $PDIR/z53 --config z53.conf --dotcounts 24else 25 enscript -B -o - $TMPFILE | gs -q -dNOPAUSE $GSPARMS -sDEVICE=ppmraw -sOutputF ile=- - | $PDIR/z53 --output blackonly --config z53.conf --dotcounts 26 fi 27 fi 28 /bin/rm -f $TMPFILE 29 } 30 31 32 runz53 2 /dev/null Some of the lines are just too long to fit so they wrap around. But this shouldn't cause us much confusion. Let's walk through this program. First, the defined constants at the top, lines 3,4,5. Line 3 DEBUG = 0, may have no use, since it is not referred to elsewhere in the script. Line 4 PDIR simply points to where the lexmark software is installed. Line 5 TMPFILE used by the mktemp command to generate a random name for a file to hold the print job before it is filtered. This file is needed only because this filter will handle pdf files, which need random access to be properly processed. Text and postscript files could just be piped. Line 12 GSPARMS holds the ghostscript parameters based on what data the user has given the lexmark setup program regarding paper size, resolution, color vs black and white. At my current setting, echo $GSPARMS returns -r600 -g5100x6600 Line 32 The script begins here. Why they used a subroutine isn't obvious to me, but maybe it helps to redirect errors to /dev/null. So, go to line 14. line 15: This simply puts the file sent to the print filter all in the $TMPFILE. Note that standard input is assumed but the file is redirected to $TMPFILE. Lines 17 to 24 are repetitive, just checking to see if the file is either PDF or Postscript. If neither is the case, then enscript is invoked to produce a postscript file. Now, I have never had a problem with a linux application sending a PDF file to my printer. Acrobat prints in postscript. And, since enscript -Z doesn't convert postscript files, these lines could all be just left out. The gs command just converts a postscript file to a ppmraw format, which is then piped to the lexmark supplied driver for this printer with the appropriate parameters. Let's rewrite this thing: #!/bin/bash PDIR=/usr/local/lexmark/z53 GSPARMS=`$PDIR/lxacgsparm z53.conf` enscript -ZB -o - | gs -q -dNOPAUSE $GSPARMS -sDEVICE=ppmraw \ -sOutputFile=- - | $PDIR/z53 --config z53.conf --dotcounts Believe it or not, this works fine, both with text files and postscript files, the only two types we expect to see coming to our printer. The only problem might be the --output blackonly parameter which I left off so I could get color printing. And, I am not sure where the errors are going to be sent, if any. The -q parameter suppresses messages from gs. End tutorial== OK.
Re: [Samba] Printing multiple copies
This question came up a while back. On my system, where I have a postscript printer attached to a linux boxr. I send all print jobs from windows clients formated for the HP laserjet III + or whatever. When you request 3 copies, the postscript code itself has the code for three copies in it. Printing three copies from a KDE app (I forget which one) also generated code for three copies. So, in my setup, samba has nothing to do with generating multiple copies. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem with basic file serving
Have you a guest account? Something like ftp would do. Then, have guest ok = yes in your shares. Something like this: [ global ] security = share guest account = ftp [ MyShare ] guest ok = yes read only = no Now, if you really mean unrestrictive: guest account = root (not recommended) Joel How can I make my Samba file server unrestrictive? I want to put it on my Microsoft domain network, giving everyone full access to the data. I have created the share and set the permissions to SHARE level and regardless of what I do it requires a password for each PC and USER. What can I do to correct this? I have no desire to make this server a member of the existing domain. Thanks so much, Lee -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] rh8.0 and xp home
I use XP home and it happily browses my workgroup, which is on two subnets. I think you mean that XP Home cannot joing a domain. Joel On Fri, Jul 18, 2003 at 03:59:21PM -0600, Dan Shadix wrote: The Samba How-To Collection very clearly points out that: Unlike, MS Windows 9x / Me, MS Windows XP Home Edition also completely lacks the ability to log onto a network. -- Original Message -- From: Dragos [EMAIL PROTECTED] Date: Fri, 18 Jul 2003 17:10:40 -0400 I have two networked pcs. pc 1- RH8.0 which came with Samba-backend 1.0.8 and Samba 2.2.5 pc 2- XP Home I am able to access the shared folders from pc2 on pc1. However from pc2 I can not even see the ressources of pc1. In My Network Places/Entire Network/Microsoft Windows Network/My Workgroup I can see pc1 but when I click on it I get an error message: \\pc1 is not accessible. You might not have permission to use this network resource. The network path was not found. I have not been able to find any doc about samba and xp home so any help is appreciated. Thank you Dragos -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] swat
Did you restart xinetd? Have you looked in the logs in /var/log for any clues? Joel On Sat, Jul 12, 2003 at 02:24:22AM -0500, Robert Jones wrote: I have RedHat 8.0 I have swat enabled in my xinetd.d config file like this service swat { port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/sbin/swat log_on_failure += USERID disable = no } I have a firewall/router ...not to sure about firewalls but don't think its the problem as it works for my windows boxes upstairs and I believe it accepts all local area traffic my hosts file is simple 127.0.0.1 localhost.localdomainlocalhost 192.168.1.1linux8.puterland.calinux8 tried changing the only_from line from localhost to 192.168.1.0/24 no work it says the connection was refused when attempting to contact 192.168.1.1:901 any ideas? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] swat
There might be a log called messages. This might be a firewall issue. What do you see with: iptables -L | less ? Try, as root, iptables -P INPUT ACCEPT This command is only safe if you have this machine behind a firewall or if it is not connected to the internet. Joel On Sat, Jul 12, 2003 at 11:57:55PM -0500, Robert Jones wrote: I Rebooted the pc i have now looked in the logsdunno what to look for though... no log named either samba or swat i did find tho that in /etc/samba that the file smbusers was now called smbusers.rpmsave i guess an upgrade did that?.. i renamed it to smbusers but still wont work On Sat, 2003-07-12 at 07:36, Joel Hammer wrote: Did you restart xinetd? Have you looked in the logs in /var/log for any clues? Joel On Sat, Jul 12, 2003 at 02:24:22AM -0500, Robert Jones wrote: I have RedHat 8.0 I have swat enabled in my xinetd.d config file like this service swat { port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/sbin/swat log_on_failure += USERID disable = no } I have a firewall/router ...not to sure about firewalls but don't think its the problem as it works for my windows boxes upstairs and I believe it accepts all local area traffic my hosts file is simple 127.0.0.1 localhost.localdomainlocalhost 192.168.1.1linux8.puterland.calinux8 tried changing the only_from line from localhost to 192.168.1.0/24 no work it says the connection was refused when attempting to contact 192.168.1.1:901 any ideas? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] swat
Flushing doesn't change policies. Maybe your INPUT policy is DROP. Joel On Sun, Jul 13, 2003 at 11:13:05AM -0500, Robert Jones wrote: Even if i flush all my iptables and set them to accept it still dont work On Sat, 2003-07-12 at 14:03, Joel Hammer wrote: There might be a log called messages. This might be a firewall issue. What do you see with: iptables -L | less ? Try, as root, iptables -P INPUT ACCEPT This command is only safe if you have this machine behind a firewall or if it is not connected to the internet. Joel On Sat, Jul 12, 2003 at 11:57:55PM -0500, Robert Jones wrote: I Rebooted the pc i have now looked in the logsdunno what to look for though... no log named either samba or swat i did find tho that in /etc/samba that the file smbusers was now called smbusers.rpmsave i guess an upgrade did that?.. i renamed it to smbusers but still wont work On Sat, 2003-07-12 at 07:36, Joel Hammer wrote: Did you restart xinetd? Have you looked in the logs in /var/log for any clues? Joel On Sat, Jul 12, 2003 at 02:24:22AM -0500, Robert Jones wrote: I have RedHat 8.0 I have swat enabled in my xinetd.d config file like this service swat { port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/sbin/swat log_on_failure += USERID disable = no } I have a firewall/router ...not to sure about firewalls but don't think its the problem as it works for my windows boxes upstairs and I believe it accepts all local area traffic my hosts file is simple 127.0.0.1 localhost.localdomainlocalhost 192.168.1.1linux8.puterland.calinux8 tried changing the only_from line from localhost to 192.168.1.0/24 no work it says the connection was refused when attempting to contact 192.168.1.1:901 any ideas? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] forcing log off
Can't you just kill the connection with kill -15 pid ? Joel On Thu, Jul 10, 2003 at 03:06:41PM -0400, Jack Mendez wrote: okay so i have the script provided by joel. i have changed them slitely so that each user gets his or her own file, because if two users try to log on at the same time, the script can't differentiate between atempts. so you get mixed lines. as in user1 starts with line1 but then user2 might have his first line right after. we wanted to be able to distinguish. now that we can see who is where, and what the process id is, what can we do with this.smbstatus was mentioned but i see nothing there that will let us kill the process. the other thing is that windows automatically logs on when samba kicks them off..how can we force this not to happen. .aditionally when a user logs on, they get an individual process id, my goal was to prevent the same user from logging more then once.. thanks for the help so far. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing Through Samba From Windows
The only problem with your approach is two way communication with the peripheral, which samba won't support, AFAIK. For printing, there may well be an option to turn off two way communication in the windows driver. Good luck with the scanner and fax modes. Joel On Tue, Jul 08, 2003 at 08:27:56AM -0400, Buck Turgidson wrote: I want to consolidate some NT/Linux machines into a single Linux machine running samba. I have a Brother Printer/Scanner/Fax combo that is not supported by Linux. If I set this printer up under samba and access it from a Windows client on the network, won't I be using the Windows driver? It seems to me it should work ok like this, since I believe that Windows will just see it as a network printer. I am not sure about the fax modem, though, although I don't see why that shouldn't work, either. Thanks for any opinions. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Max Print Jobs Problem
Just thinking out loud. Have you tried other values for max print jobs like 5 or 10 to see if that works. If 5 or 10 works, how about 1001? Are you sure it is samba which is doing this? Could the printing software of the underlying system be responsible. Have you messed arounded with the source and recompiled? For example, the printing.c file has variables which return the max print job number and the print queue size. Maybe try printing these out and seeing if the max # of print jobs is really what you specify. Maybe disable the subroutine which checks for max no of jobs. Joel Mon, Jul 07, 2003 at 07:49:29PM -0500, Chuck Stuettgen wrote: I have setup a dedicated print server running on RH 8 with Samba 2.2.5-10 and LPRng-3.8.9-6 to service a HP9000 printer. The print queue for this HP9000 gets it print jobs from a Windows server via a script and the queue is set to HOLDALL status. The HOLDALL status is necessary because the script runs overnight to produce the print jobs which can total anywhere from 500 to 12,000 individual print jobs. My problem is that samba defaults to accepting up to 1000 print jobs then starts discarding print jobs. I have edited smb.conf and added both Max Print Jobs = 2 Total Print Jobs = 21000 But it still doesn't work. Once the queue reaches 1000 print jobs it starts deleting print jobs to make room for the newer print jobs being created by the script. Can anyone give me some advice on what I'm missing.. -- Chuck Stuettgen [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] time control
Well, there is always the smbstatus command and a clever script or two. Joel On Thu, Jul 03, 2003 at 01:59:29PM -0300, Gustavo Schroeder wrote: Hi there, is it possible to control the time that the user stays logged in samba? i.e. i want to allow my laboratory users one hour using the computer, can i control it using a directive at the smb.conf? cheers Gustavo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] New in Samba
You can have a guest share on the samba machine, as follows: [global] guest account = ftp security = share [public] comment = Public Stuff path = /some/public/place guest ok = yes Just make sure you have a user ftp on the samba server. Joel On Thu, Jul 03, 2003 at 07:58:06PM -0300, Josi Francisco Ribeiro Neto wrote: Hi all, I'm a new user and I would like to know if I it's possible to connect to a share from a win98 machine without defining a user on that machine as described on the excelent book Using Samba. My win machines are shared among multiple users. If it's possible what are the steps ? Thanks in advance. Francisco -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pre/postexec
I don't have the energy to check this out myself, but: The path specified in your share doesn't exist until you run the preexec. Are you sure a user can log on under this circumstance? Have you checked your logs? Have you run testparm? As a test, mount some other directory with a preexec command and see if that works, and keep directory R always mounted. Joel On Thu, Jul 03, 2003 at 12:31:28PM +0200, rybaczuk wrote: Running system: SuSE 7.2 (kernel 2.2.4) samba-3.0.0beta1. There is coexisting Win(Millennium) system at the server (reason: many win partitions MUST be directly available at the central unit under windows after rebooting to windows). People connect their laptops (with small HD and Win2k SP2) to central unit and samba offers shares with Linux accounts. However, there are many win partitions (previously created for any user) at the same computer equipped with many HD (6 at present time). It is not possible to mount all win partitions - too many. Usual mounting scripts entails left mounted partitions after logout or closed connections (users behave in this way). In many cases the same (already mounted and left partition) is used by few users. PROBLEM: is it possible to create specific share, mounting some particular windows partition (from another HD at the same computer) in accordance with user during logon and UNMOUNT it during logout or closed connection? Does anybody has an idea or knows a method how to do this or he has met a similar problem? FIRST ATTEMPT: I tried to employ pre/postexec mounting partition specific for a given user. The exemplary generated share is as follows: [Win_mag] comment = Zbiory Win na Marku path = /windows/R valid users = magda read only = No browseable = Yes preexec = mount -t vfat /dev/hdf5 /windows/R postexec = umount /windows/R According to fstab everybody can mount this partition /dev/hdf5 /windows/R vfatnoauto,user 0 0 The share is visible as empty but the pre/postexec script hasn't been executed. Is something wrong with the above configuration? I am not very familiar with more advanced features of samba configuration (half-newbie). Everything else cups printers, other shares being detaily described in man/how-to files work excellent. Thank you in advance for any byte of information, Marek Rybaczuk ___ [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problems using samba as a print server
When a user logs on, the %u or the %U variable contains their logon name, not the guest name you assign. Maybe you can capture that in a script. Joel On Wed, Jul 02, 2003 at 11:15:09AM -0700, Rob Tanner wrote: Hi, I set up Samaba 2.2.7 on a RedHat 9 box to act as a print server. The Samba server is a member of the domain and will be sharing about a dozen printers. I am using lprng in conjunction with ifhp in order to do charge-back print accounting. But here's the glitch: the server is not hosting any file shares and basically has only a couple of local accounts. The result is that when domain users access the server they connect as nobody (the guest user) even though guest access is NOT enabled. This means that the user id in the printer logs is nobody. Without having to create and maintain some 3,000 local accounts on the box, how can I get around the problem (i.e., get the real user name attached to the connection rather than nobody)? Thanks. Rob Tanner UNIX Services Manager Linfield College, McMinnville OR -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] exec scripts question
exec works in global and share definitions. I haven't tried what you are doing, but simply thinking out loud: Could this be a permissions problem? Is %U defined when you try to call it? Can samba find the mkdir command? Is this a special problem for the [homes] share? Joel On Sat, Jun 28, 2003 at 11:59:26PM +1000, ipguy wrote: i'm having problems with preexec scripts... see example below [homes] preexec = mkdir /samba/users/%U do exec scripts only work in a Samba PDC setup or are we able to use exec scripts in any setup ? if you look at the preexec script above, all i'm trying to do is make a dir for the connecting user (i don't need to make an account as the samba server is seup as a domain member server to a NT4 PDC, i'm using winbind for accounts) why wouldn't the script work ? it's to simple for it not to -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] exec scripts question
Anything in the samba logs? Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Listing samba 2.2.8a (redhat 8) verables to a text file
Here is a response I just sent to somebody else who wanted to prevent a user from logging on twice at the same time. You may find it useful, if you use bash. It saves the data in a file /tmp/Hello Here is a possibly useful tool for figuring out what you want. This smb.conf share, with the script Hello, captures all the variables passed when a user logs on. This may help you writing your script. With the results of this script and the output of smbstatus, you could really fine tune what you do. With care, just cut and paste this into your smb.conf file. [public] comment = Root directory path = / read only = no create mask = 0777 exec = rm /tmp/Hello;echo \m %m \ \G %G \ \I %I \ \L %L \ \M %M \ \N %N \ \R %R \ \T %T \ \U %U \ \a %a \ \d %d \ \h %h \ \p %p \ \v %v \ \H %H \ \P %P \ \S %S \ \g %g \ \u %u \ | xargs -n1 /usr/local/samba/bin/Hello;\ echo This is my home %$(HOME) /tmp/Hello The script Hello is as follows: #!/bin/bash i=`echo $1 | tr -s ` index=`echo $i | cut -d -f1` value=`echo $i | sed 's/^. //'` case $index in m ) message=client machine NetBios name = $value;; M ) message=Internet DNS of client= $value;; I ) message=IP address of client = $value;; a ) message=Architecture of remote machine= $value;; U ) message=Session user name (one the client wanted)= $value;; L ) message=Netbios name of server = $value;; h ) message=Internet DNS hostname of server= $value;; R ) message=Protocal level = $value;; v ) message=Samba version= $value;; T ) message=Current time and date= $value;; G ) message=Primary goup name of U = $value;; N ) message=NIS home directory= $value;; d ) message=Process ID of current server= $value;; p ) message=Path of services home directory from NIS= $value;; H ) message=Home directory of user in u= $value;; P ) message=Root directory of current service = $value;; S ) message=Name of current service = $value;; g ) message=Primary group name of u in share = $value;; u ) message=User name of current service = $value;; esac echo $message \(\%$index\) /tmp/Hello The output should look like this: client machine NetBios name = hammer10 (%m) Primary goup name of U = ftp (%G) IP address of client = 192.168.1.10 (%I) Netbios name of server = jhammer6 (%L) Internet DNS of client= hammer10.jhammer.org (%M) NIS home directory= jhammer6 (%N) Protocal level = NT1 (%R) Current time and date= 2003/06/26 06:56:28 (%T) Session user name (one the client wanted)= anonymous (%U) Architecture of remote machine= Samba (%a) Process ID of current server= 13089 (%d) Internet DNS hostname of server= jhammer6 (%h) Path of services home directory from NIS= (%p) Samba version= 2.2.1a (%v) Home directory of user in u= /home/ftp (%H) Root directory of current service = / (%P) Name of current service = public (%S) Primary group name of u in share = ftp (%g) User name of current service = ftp (%u) This is my home /home/jlh The above is what I get when I log on as user jlh but ask for a guest access, with the guest account being ftp. Note, you have the process ID of the connection. That could be killed with kill -15 %d if you wanted to. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] forcing one logon per user
If you can run a preeexec script defined in your global section then you can use smbstatus to see who is on line. I have not tried this but it looks easy. Or you can put the preexec script into each service. This might cause problems for users already logged on. Joel On Fri, Jun 27, 2003 at 01:48:58PM -0500, Tru Pham wrote: Interesting question!! I would like to find out myself too. Anybody wanna take a shot at it? Thanks. Sorry I can't help! Quoting Jack Mendez [EMAIL PROTECTED]: i am having a real problem with users exchanging passwords on the network and then logging on as that user while the original user is on the network. in adition to making some changes to the password system i would like to force the system to disallow multiple logons..can't find it anywhere in the documentation, but i am almost sure that it must be possible. most of the clients are win98 se, but there are a few xp machines which i have questions about. ask later. thanks -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba - Need Web Email Account? Email [EMAIL PROTECTED] - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow printing problem
Is the same driver installed on all machines? This sort of slow down sounds like a driver problem. Have you looked at how much time is involved in merely tranferring the job to linux? If you are not using cups, you can just change the print command to something like printing command = echo printed %s at `date` /tmp/junk Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] forcing one logon per user
I just tried it. preexec commands work from the global section. I don't know how you handle user names and passwords, so I can't be very specific, but, it seems like a carefully crafted preexec should solve your problem. Joel On Fri, Jun 27, 2003 at 04:35:36PM -0400, Joel Hammer wrote: If you can run a preeexec script defined in your global section then you can use smbstatus to see who is on line. I have not tried this but it looks easy. Or you can put the preexec script into each service. This might cause problems for users already logged on. Joel On Fri, Jun 27, 2003 at 01:48:58PM -0500, Tru Pham wrote: Interesting question!! I would like to find out myself too. Anybody wanna take a shot at it? Thanks. Sorry I can't help! Quoting Jack Mendez [EMAIL PROTECTED]: i am having a real problem with users exchanging passwords on the network and then logging on as that user while the original user is on the network. in adition to making some changes to the password system i would like to force the system to disallow multiple logons..can't find it anywhere in the documentation, but i am almost sure that it must be possible. most of the clients are win98 se, but there are a few xp machines which i have questions about. ask later. thanks -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba - Need Web Email Account? Email [EMAIL PROTECTED] - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: preeexec and samba
Well, you can run smbstatus from the preexec script. You can grep out the name of the user connecting and compare it to the %U or %u variable sent during the login to $IPC. This could get complicated. For example, your script would depend, maybe, on whether you have security = share or security = user. Here is a possibly useful tool for figuring out what you want. This smb.conf share, with the script Hello, captures all the variables passed when a user logs on. This may help you writing your script. With the results of this script and the output of smbstatus, you could really fine tune what you allow. With care, just cut and paste this into your smb.conf file. Joel [public] comment = Root directory path = / read only = no create mask = 0777 exec = rm /tmp/Hello;echo \m %m \ \G %G \ \I %I \ \L %L \ \M %M \ \N %N \ \R %R \ \T %T \ \U %U \ \a %a \ \d %d \ \h %h \ \p %p \ \v %v \ \H %H \ \P %P \ \S %S \ \g %g \ \u %u \ | xargs -n1 /usr/local/samba/bin/Hello;\ echo This is my home %$(HOME) /tmp/Hello The script Hello is as follows: #!/bin/bash i=`echo $1 | tr -s ` index=`echo $i | cut -d -f1` value=`echo $i | sed 's/^. //'` case $index in m ) message=client machine NetBios name = $value;; M ) message=Internet DNS of client= $value;; I ) message=IP address of client = $value;; a ) message=Architecture of remote machine= $value;; U ) message=Session user name (one the client wanted)= $value;; L ) message=Netbios name of server = $value;; h ) message=Internet DNS hostname of server= $value;; R ) message=Protocal level = $value;; v ) message=Samba version= $value;; T ) message=Current time and date= $value;; G ) message=Primary goup name of U = $value;; N ) message=NIS home directory= $value;; d ) message=Process ID of current server= $value;; p ) message=Path of services home directory from NIS= $value;; H ) message=Home directory of user in u= $value;; P ) message=Root directory of current service = $value;; S ) message=Name of current service = $value;; g ) message=Primary group name of u in share = $value;; u ) message=User name of current service = $value;; esac echo $message \(\%$index\) /tmp/Hello The output should look like this: client machine NetBios name = hammer10 (%m) Primary goup name of U = ftp (%G) IP address of client = 192.168.1.10 (%I) Netbios name of server = jhammer6 (%L) Internet DNS of client= hammer10.jhammer.org (%M) NIS home directory= jhammer6 (%N) Protocal level = NT1 (%R) Current time and date= 2003/06/26 06:56:28 (%T) Session user name (one the client wanted)= anonymous (%U) Architecture of remote machine= Samba (%a) Process ID of current server= 13089 (%d) Internet DNS hostname of server= jhammer6 (%h) Path of services home directory from NIS= (%p) Samba version= 2.2.1a (%v) Home directory of user in u= /home/ftp (%H) Root directory of current service = / (%P) Name of current service = public (%S) Primary group name of u in share = ftp (%g) User name of current service = ftp (%u) This is my home /home/jlh This is what I get when I log on as user jlh but ask for a guest access, with the guest account being ftp. Note, you have the process ID of the connection. That could be killed with kill -15 %d if you wanted to. Joel i am the person who wrote to the list about preventing lots of users logging on. as themselves more then once. i can probably figure out how to work preexec but i am very confused about how to write the script so it checks for a user, and if that user exists in the smbstatus list, deny the second user from logging on. usernames are just added to the smbpassword file using the -a switch for each user, the passwords are of course encrypted. sorry for writing you privately but i really need this problem solved and i am not at that location where i subscribed but i am able to check mail. thanks a lot for trying the preexec command. i will read about it in docs. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Probs with smbfs
This message implies that your client machine is not properly configured. Was this very same machine with the very same kernel working last week? I don't know what the service smb is. If you mean smbd, it doesn't have much to do with mounting shares from other servers. Joel On Fri, Jun 27, 2003 at 02:11:45PM -0300, michelld wrote: Hi all I am having trouble with my SMBFS and it is the following Every time I try to connect to other machine in my network, throught the command MOUNT, the folowing ERROR appears. I've already tried to see the manpage but i had not success. [EMAIL PROTECTED] bin] mount -t smbfs //sarq/c /mnt/windows Password: ERROR: smbfs filesystem not supported by the kernel Please refer to the smbnt (8) manual page smbmnt failed: 255 I want to remember that service smb is running and last week, it was working properly. Please i need this help I get very please about your attention. Thanks a lot Michel Luiz Ola Jardel Tudo bem ? Como escrevi acima, estou tendo este problema ao tentar montar uma maquina da minha rede em minha estacao devido aparecer este erro acima. Só que a semana passada estava Ok. Ja consultei o man e nada Se vc souber, por favor me ajude. Desde ja agradeco. Att Michel Luiz -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] question
Please see my post for the share printer thread for some information on your printing question. Oh, and I have set up Samba to load automatically when Linux is started. The best way is to use the startup scripts provided for each daemon with adjusting the files in rc[0-6].d to properly start and stop these daemons as you change run levels (start and stop the machine, etc.) To start any daemon automatically with the startup scripts, you have to mess around either with some GUI configuration tool (settings), or the files in /etc/rc.d/rc[0-6].d. If all else fails, just put these commands in rc.local /usr/local/samba/bin/smbd -D /usr/local/samba/bin/nmbd -D To find the files, locate rc.local and which smbd and which nmbd might help. Note that the startup scripts have beome increasingly complex over the last few years. Even for someone who knows some bash they are very difficult to follow, since each vendor does things suprisingly different. This home brew script does a fine job for me: #!/bin/bash case $1 in start) killall smbd killall nmbd /usr/local/samba/bin/smbd -D /usr/local/samba/bin/nmbd -D ;; stop) killall smbd killall nmbd ;; reload) kill -SIGHUP `cat /usr/local/samba/var/locks/smbd.pid` kill -SIGHUP `cat /usr/local/samba/var/locks/nmbd.pid` ;; *) echo Usage: echo start stop reload ;; esac exit 0 Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How can I kill a smbfs mount
I don't know. I suspect there is a reluctance to kill a mount when the remote machine is not responding, which may just be a temporary problem with the network or remote machine. Joel On Wed, Jun 18, 2003 at 09:14:57PM -0700, Jake Johnson wrote: Thanks but isn't there a better way? Wouldn't it be a nice benefit if the mount points could be unmounted even if they were lost (especially since windows machines go down all the time)? Regards, Jake Johnson [EMAIL PROTECTED] -- Plutoid - http://www.plutoid.com Shop Plutoid for the best prices on Rims and Car Audio Products On Mon, 16 Jun 2003, Joel Hammer wrote: I have just used kill -15 pid of the smbmount process. You might need -9. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow windows - cups print (Facts discovered)
I am not really sure of your set up. I assume you have installed the drivers on the windows client. And, I assume you send the job to a raw queue on the linux box. If not, maybe your linux filter is removing colors. I would look at the driver configuration on the windows client and make sure you don't have some option checked for BW only. You might print the job to a file, send it over to the linux box, and open it with gv, and see if you have color. Sometimes, depending on your setup, the test page goes to a different queue than the real print jobs. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Access Denied
Why don't you post your smb.conf? I avoid all password hassles with the following global and share definitions: [global] encrypt passwords = yes security = SHARE guest account = ftp [AllFiles] comment = All Files path = / read only = no guest ok = yes For a walk on the wild side, try making: guest account = root Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Access Denied
This is hardly wide open. Try adding security = share to global. Security is by default user. You have no guest user allowed shares, either. Joel On Wed, Jun 18, 2003 at 10:46:16PM +, Jerry Moore wrote: Here is the smb.conf. # Samba config file created using SWAT # from mfg_jsuther_95.sat.faidor.com (172.16.15.242) # Date: 2003/06/18 14:45:09 # Global parameters [global] workgroup = MYGROUP server string = Samba Server null passwords = Yes unix password sync = Yes log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No [homes] comment = Home Directories valid users = %S read only = No browseable = No [moorej] comment = Home Directory path = /home/moorej valid users = moorej read only = No [tmp] comment = Temporary file space path = /tmp user = moorej --- Joel Hammer [EMAIL PROTECTED] wrote: Why don't you post your smb.conf? I avoid all password hassles with the following global and share definitions: [global] encrypt passwords = yes security = SHARE guest account = ftp [AllFiles] comment = All Files path = / read only = no guest ok = yes For a walk on the wild side, try making: guest account = root Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] IP address for workstation
Doesn't this get stored in %I ? Joel On Tue, Jun 17, 2003 at 11:25:49AM -0300, rafael wrote: How get IP address the remote workstation in logon process (logon process in Samba Server)? -- Rafael, Claudio == Tribunal de Justiça - MG/Brazil Sefor - Secretaria de Informática Sites de projetos mantidos: - Pessoal: http://www.geocities.com/rafael_mcp - Monesa GNU Linux: http://www.monesa-br.cjb.net - Oportunidades(INFO): http://www.oportunidadesinformatica.hpg.com.br -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How can I kill a smbfs mount
I have just used kill -15 pid of the smbmount process. You might need -9. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LAN Browsing shows IP Addresses instead of Computer Names.
I am no expert and am certainly rusty on this sort of question. Just some ideas. I do not know if the suggestions below are really what you need. However, how do you think that samba is supposed to do reverse lookups to find the name corresponding to an ip number? 1. Have you walked through DIAGNOSIS.txt? 2. What is this router you have that keeps changing ip addresses? Very inconvenient. It is not hard to set up a dhcp server on a linux box. The nice part is that you can ensure that the same ip number is given every time to the same computer, using the identifying number on the network card. 3. If you do #2, then you can use [lm]hosts files on both the linux and windows boxes to associate names and ip addresses. 4. The easiest thing might be to install a wins server. This just involves adding a few lines to smb.conf on one linux box. Here is what I have in mine: name resolve order = lmhosts wins bcast host netbios name = JHAMMER6 os level = 100 preferred master = True domain master = True wins support = Yes This makes this machine the wins server. Point your other machines, to this one. This requires a wins server = parameter in the linux boxes and you can muck around with the menus in windows to point to the wins server. 5. Maybe you have a bad name resolve order parameter? The meaning of the options above is: lmhosts = /etc/hosts file wins= wins server bcast = broadcast host= DNS lookup Do you have the bcast option in your smb.conf file? 6. If you want to spend many happy hours, you might consider setting up a DNS server, provided you have set up a DHCP server to ensure the same ip's are given each time to the same computers. 7. Can you tell your router to always give the same number to each of your computers? Joel On Sat, Jun 14, 2003 at 11:35:42PM -0700, Mega Spaz wrote: I'm trying to figure out how I can have my lan browser display computer names instead of IP Addresses. I think the ip addresses are generated by my router since if I add a new computer, the ip addresses will be different for each computer. anyway let me give you the specs first. Running Samba 2.2.8a-1 on Red Hat 7.3. I have not set up WINS or DNS at all. I have set up lisarc to use nmblookup. I'm assuming that my network is using broadcasting to get computers in my LAN since i have not set up any computer names in hosts or lmhosts. The current set up works right now in that computers come up and can be browsed independant of the ip addresses assigned to the computers. ie. if computer Tron is up on the network, and then I boot up Sark, Sark will show up at the first next broadcast. but the computers show up in konqueror as ip addresses, not as Tron and Sark. My very old first setup attempt had me manually adding ip addresses and names manually in the /etc/hosts file. but that would mess up the lan browsing if another new computer was added to the network. So if Sark is 192.168.0.2 and Tron is 192.168.0.3 and let's say my brother brings his laptop and i put his laptop on the network, the ip addresses on the network will change to something like Sark = 192.168.0.3, Tron = 192.168.0.2 and my brother's laptop maybe something like Bros_comp = 192.168.0.4. but the /etc/hosts file will have the old assignments which really messes up the browsing part. Anyway right now i think i have it set up almost right since i can browse the network and the computers on the network will be found no matter the time they are actually booted up, but ip addresses in the lan browsing isn't very useful and I would like to see the computer names displayed in the lan browsing in konqueror. thank you for your patience, time, and any help you can provide. Sincerely, Vince =) _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] restarting
Yes. kill -1 pid of original samba process. Maybe service smb reload might do what you want. Joel nOn Thu, Jun 12, 2003 at 01:02:05PM -0700, D. Rick Anderson wrote: Is there a way to have samba re-read its configuration files without restarting it and bumping everyone? As it is now, if somebody is transfering a file and I issue: #service smb restart it drops the file transfer. How do I get around that? TIA Rick -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] forcibly disconnect a user
smbstatus gives you all the shares, their owners, machines, and time established. Couldn't you just run a script to use this data to disconnect a user? Joel On Wed, Jun 11, 2003 at 09:44:58AM +0200, Carlo Busetto wrote: Hi, i want forcibly disconnect a user in a windows xp client after 1 hour that he logs on a samba domain. How can i do? There is also a way to display the time remain of session? Thanks a lot -- Sig Carlo Busetto Dipartimento di Scienze Economiche Università Ca' Foscari Cannaregio n° 873 30121 Venezia Tel 041-2349137 Fax 041-2349176-77 - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] protocol negotiation failed
I don't suppose the - is a problem. Maybe you should increase the debugging level and try again, for example: smbclient -L server -d6 logfile I note that there is a share on the linux server whose name is the same as the window's server name. (kroh/peter) Just free associating here. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] how run samba in background?
Doesn't just adding -D to the command make it run in the background? For example: /usr/local/samba/bin/smbd -D Joel On Sat, Jun 07, 2003 at 11:46:01AM +0200, Arnold wrote: hi, I'm trying to run samba from console with an Startup Script in background. (i can start this script manuel with /etc/init.d/./samba.init but after reboot samba daemons are stoped) the Startup Script is in /etc/init.d/samba.init. I run this Script with chkconfig in runlevel 35 : #chkconfig samba.init 35 I get no Errors, but samba is runing too. ??? Thank you, henry -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] No password for specific IP address?
This seems easy enough. In your global section, you could have something like this: include = /usr/local/samba/lib/smb.conf.%I Create a file: /usr/local/samba/lib/smb.conf.IPofSlowBox In this smb.conf you can put specific parameters to allow this box a passwordless login. The exact method you use will depend on what you are trying to do. I am too rusty on this stuff to offer any more specific advice a this point. You might be able to do the same thing with the config parameter. config file = /usr/local/samba/lib/smb.conf.%I Read all about it in man smb.conf Joel On Sat, Jun 07, 2003 at 12:43:29PM -0400, Subba Rao wrote: Hi, I have a slow Windows NT system. Eachtime I reboot, it connects to the Samba file shares and prompts me for password. Since this is a slower computer, it takes forever before I see the login window. (This system has only 32MB RAM). Is it possible to configure Samba to allow password-less login from a specific IP address? I do access multiple shares on this server. Thank you in advance to any information. -- Subba Rao [EMAIL PROTECTED] -- Old American Wild West saying: God created men but Colt made them equal. Today: Linus created Linux and Linux made IT companies equal. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba newbie having trouble configuring samba on RH7.3...
To enable swat, you have to edit inetd.conf or its equivalent in xinetd. I don't use Redhat so I cannot be much more specific. Joel On Sat, Jun 07, 2003 at 10:06:54AM -0400, marvc wrote: Tori Thanks for the mini tutorial on getting started with samba, it helped a great deal as I was able to compile and install after locating ./configure in the source directory. Not to sound like a lazy ungrateful peasant but I'm unable to log in to swat by typing http://localhost:901. Am I missing something here? I'm currently trying to locate an updated doc for 2.2.8a that covers setting up the swat tool and creating the shares. This is for my home network so I'm not tryiing to do anything fancy; just create a few folders for some files I'll be adding to my linux web server. Thanks again -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tori Williamson Sent: Friday, June 06, 2003 1:54 AM To: [EMAIL PROTECTED] Subject: Re: [Samba] samba newbie having trouble configuring samba on RH7.3... Marv, You do need to run configure for a source tarball... you just haven't found the config script yet. :-) In the samba-2.2.8a directory, go into the directory labeled source. You'll find the configure script there. My advice is, if this is the first time installing Samba, run your install thusly: #samba-2.2.8a ./configure --prefix=/usr/local/samba #samba-2.2.8a make #samba-2.2.8a make install The reason I suggest setting the prefix as /usr/local/samba and no other config options, is that this will put samba in a singular space and allow you time to monkey with it in a closed directory. Then when your comfortable with samba and it's files and configurations, you can wipe the /usr/local/samba dir (thus trashing ALL of the files) and run the configure with WHATEVER path your heart desires. My advice is something like this install: #samba-2.2.8a ./configure --prefix=/usr --configdir=/etc/samba --what-ever-other-config-op tions-you-want #samba-2.2.8a make #samba-2.2.8a find /* samba1 #samba-2.2.8a make install #samba-2.2.8a find /* samba2 #samba-2.2.8a diff samba1 samba2 samba-installed Why the two find and diff statements? Well, you'll see that I offer /usr as the prefix dir, you'r files will be scattered. Doing a find before AND after the install and diffing the two find files will create a file (called samba-installed) with the locations of all the samba files. quite handy. If you don't feel comfortable with that, and want an easier way to manage the install (and if necessary the UNinstall) of Samba, you can download the latest samba SRPM file from Samba.org here: http://us2.samba.org/samba/ftp/Binary_Packages/RedHat/SRPMS/samba-2.2.8a -1.s rc.rpm Just install rpm-build from the 7.3 RPMS, and after downloading the src.rpm, run: #dir rpm -ivh samba-2.2.8a-1.src.rpm then change to /usr/src/redhat/SPECS and edit the samba.spec file to make the config changes you want. Then: #SPECS rpm -bb samba.spec This will place the samba-common, samba-client, samba-server samba-swat RPMS in /usr/src/redhat/RPMS/i386 and you can install the latest samba version from samba.org via RPM. Lastly, I offer up the suggestion of obtaining Using Samba from O'Reilly Assc. A VERY handy book for samba admins of any level. And the latest edition covers Samba 3. You can also do a google search for samba redhat HOWTO Good luck! Tori - Original Message - From: marvc [EMAIL PROTECTED] To: 'Joel Hammer' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 9:48 PM Subject: RE: [Samba] samba newbie having trouble configuring samba on RH7.3... I downloaded the samba-latest.tar from the downloads page and you're right it doesn't look as though I have to configure it. I'm just unsure of what it is I need to do to next. -Original Message- From: Joel Hammer [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 9:38 PM To: marvc; [EMAIL PROTECTED] Subject: Re: [Samba] samba newbie having trouble configuring samba on RH7.3... What type of file did you download? Maybe its all set to run? Maybe you don't have to configure it? Joel On Thu, Jun 05, 2003 at 08:52:31PM -0400, marvc wrote: I just downloaded Samba ver2.2.8a onto my RH server and I'm unsure on how to properly configure samba. I've seen documentation online for the older versions which contain instructions for running ./configure, make, and make install. I don't see ./configure in my samba-2.2.8a directory so I'm clueless on what to do next. Can anyone assist with this? TIA -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Access is Denied
In TEST 7, you haven't supplied a password, which is required of your tmp share. Other ideas: You have guest account = nobody in globals and guess only = yes in the share dennis. According to man smb.conf, no matter who you say you are, you will be logged in as nobody on that share. I am not sure if this is good or bad. I have success with guest account = ftp and security = user in global and guest ok = yes in the share. I would leave off guest only = yes, for now. You have to make sure that the permissions on the the directory allow your guest user access to the share.. Joel n Sat, Jun 07, 2003 at 01:53:14PM -0700, Dennis Krinke wrote: I have a debian linux computer called 'dads' and a win98 conputer called 'moms' I want to be able to transfer files from 'moms' to 'dads' using samba. 'dads' has these debian packages: ii samba 2.2.3a-12.3A LanManager like file and printer server fo ii samba-common 2.2.3a-12.3Samba common files used by both the server a ii samba-doc 2.2.3a-12.3Samba documentation. Some features of samba seem to be working, I can see 'dads' in network neighborhood from 'moms', but when I try to copy files to 'dad', win98 tells me: Cannot copy filexxx Access is denied Make sure the disk is not full or write protested and that the file is not currently in use. and no files are transferred. I have attached testparm.txt and /etc/samba/smb.conf What do I need to fix? TIA, Dennis Krinke per DIAGNOSIS.txt: TEST 1: testparm smb.conf testparm.txt (see testparm.txt) TEST2: ping dads PING dads (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.3 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.1 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.1 ms TEST 3: smbclient -L dads added interface ip=192.168.19.28 bcast=192.168.19.255 nmask=255.255.255.0 Password: Anonymous login successful Domain=[FAMILY] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] Sharename Type Comment - --- tmpDisk temporary files IPC$ IPC IPC Service (dads server (Samba 2.2.3a-12.3 for Debian)) ADMIN$ Disk IPC Service (dads server (Samba 2.2.3a-12.3 for Debian)) BJ-200ex Printer lp Server Comment ---- DADS dads server (Samba 2.2.3a-12.3 for Debian) MOMS P166 WorkgroupMaster ---- FAMILY MOMS TEST 4: nmblookup -B dads __SAMBA__ querying __SAMBA__ on 127.0.0.1 192.168.19.28 __SAMBA__00 TEST 5: nmblookup -B moms '*' querying * on 192.168.19.24 192.168.19.24 *00 TEST 6: nmblookup -d 2 '*' added interface ip=192.168.19.28 bcast=192.168.19.255 nmask=255.255.255.0 querying * on 192.168.19.255 Got a positive name query response from 192.168.19.28 ( 192.168.19.28 ) Got a positive name query response from 192.168.19.24 ( 192.168.19.24 ) 192.168.19.28 *00 192.168.19.24 *00 TEST 7: smbclient //dads/tmp -Udennis added interface ip=192.168.19.28 bcast=192.168.19.255 nmask=255.255.255.0 Password: Domain=[FAMILY] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] tree connect failed: NT_STATUS_WRONG_PASSWORD Load smb config files from smb.conf Processing section [homes] Processing section [dennis] Processing section [tmp] Processing section [printers] Loaded services file OK. Press enter to see a dump of your service definitions # Global parameters [global] coding system = client code page = 850 code page directory = /usr/share/samba/codepages workgroup = FAMILY netbios name = netbios aliases = netbios scope = server string = %h server (Samba %v) interfaces = bind interfaces only = No security = SHARE encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = Yes password server = smb passwd file = /etc/samba/smbpasswd root directory = pam password change = No passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . 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 log level = 2 syslog = 0 syslog only = No log file = /var/log/samba/log.%m max log size = 1000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1
Re: [Samba] Printing isses with LPRng
I meant to say, do oplocks have any good purpose on a print share? Joel On Thu, Jun 05, 2003 at 03:31:29PM +, [EMAIL PROTECTED] wrote: On Thu, Jun 05, 2003 at 06:28:17AM -0400, Joel Hammer wrote: Do oplocks serve any purpose? Yes, they are one of the major features of this protocol. Why not disable them. That is a useful idea. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Spam to the list, plus the Nigerian Scam
I did once reply to a Nigerian spammer. Hundreds of times. The neat thing was I can change my address since I run sendmail, so he couldn't just screen me out. He wrote me and asked me to stop. Which, BTW, is how we could easily stop all spamming. If we all respond to the spammers, that would but them out of business in one day. So, all of us on this list should agree to respond to the spammer hitting us, telling him we are interested. That would make these guys stop spamming this list. BTW, if you respond, you get lots more mail. Joel n Thu, Jun 05, 2003 at 02:58:43PM -0400, Jim Wharton wrote: Unfortuneately, with the way that the samba list is set up, our email addresses show up on google. So... we have all been harvested and sold. I, for one, like to hit reply and get the list address instead of just the person who I am helping. I have to retrain myself to hit reply to all (do you hear a violin?) Jim Wharton Network Administrator Alachua County Property Appraiser [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Erik Soderquist Sent: Thursday, June 05, 2003 2:39 PM To: Samba List (E-mail) Subject: RE: [Samba] Spam to the list, plus the Nigerian Scam i just tested, yes, an email address that has not subscribed can post to the list. -Original Message- From: Jerry Sloan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 14:28 To: Samba List Subject: [Samba] Spam to the list, plus the Nigerian Scam I have been getting spam through the samba list. Is anyone able to post to the list without subscribing? -- Jerry Sloan [EMAIL PROTECTED] fP Technologies, Inc -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba OutBound Mail Scanned by Mcafee Web Appliance. OutBound Mail Scanned by Mcafee Web Appliance. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba newbie having trouble configuring samba on RH7.3...
What type of file did you download? Maybe its all set to run? Maybe you don't have to configure it? Joel On Thu, Jun 05, 2003 at 08:52:31PM -0400, marvc wrote: I just downloaded Samba ver2.2.8a onto my RH server and I'm unsure on how to properly configure samba. I've seen documentation online for the older versions which contain instructions for running ./configure, make, and make install. I don't see ./configure in my samba-2.2.8a directory so I'm clueless on what to do next. Can anyone assist with this? TIA -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] stability
I think you might be helped by looking at the startup scripts and see just what is hapening. You don't need fancy scripts to start and stop samba. For example, here is all I have in mind: #!/bin/bash case $1 in start) killall smbd killall nmbd /usr/local/samba/bin/smbd -D /usr/local/samba/bin/nmbd -D ;; stop) killall smbd killall nmbd ;; reload) kill -SIGHUP `cat /usr/local/samba/var/locks/smbd.pid` kill -SIGHUP `cat /usr/local/samba/var/locks/nmbd.pid` ;; *) echo Usage: echo start stop reload ;; esac exit 0 To find where your binaries are, just run: which smbd which nmbd To find where your logs and such are, this MIGHT help: strings `which smbd` | grep samba You can modify this to take into account your own configuration. You can also run nmbd from the command line and increase debugging to see what is happening in case nmbd is crashing. You can also look in your nmbd log. Joel On Fri, Jun 06, 2003 at 10:58:33AM -0700, D. Rick Anderson wrote: I'm having problems when I restart the smb server with it not coming back up. As near as I can tell it's actually NMBD that's having the issue. I'm running RedHat 9.0 on a Compaq ML-370 with Dual 1.2GHz P3s and I just upgraded Samba to 2.2.8a-1 after having this same problem with 2.2.7a When I issue: #service smb restart It says that it shut down and restarted ok, but then nobody can logon to the domain, so I issue it again and it tells me that it couldn't kill nmbd, but then it starts it OK, and I can get everyone on. There's also been a few times where it just stopped accepting logons, after accepting them for most of the day, so I restart it, and it tells me then that it couldn't kill nmbd either. testparm doesn't find anything wrong with my config. Does anybody know of a way to stabalize this? Thanks, Rick -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba I'm having problems when I restart the smb server with it not coming back up. As near as I can tell it's actually NMBD that's having the issue. I'm running RedHat 9.0 on a Compaq ML-370 with Dual 1.2GHz P3s and I just upgraded Samba to 2.2.8a-1 after having this same problem with 2.2.7a When I issue: #service smb restart It says that it shut down and restarted ok, but then nobody can logon to the domain, so I issue it again and it tells me that it couldn't kill nmbd, but then it starts it OK, and I can get everyone on. There's also been a few times where it just stopped accepting logons, after accepting them for most of the day, so I restart it, and it tells me then that it couldn't kill nmbd either. testparm doesn't find anything wrong with my config. Does anybody know of a way to stabalize this? Thanks, Rick -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Limiting Users
Well, all I can really tell you is that the best thing I ever did was to learn the bash shell and bash shell scripting. It takes a while, but since my computer (linux) uses the bash shell, it is well worth the effort. You could use any scripting language your computer supports. Once you get the feel for scripting, then it wouldn't be too hard to use samba's resources, like the variables passed when a user logs on and smbstatus. And, learn about the preexec parameter. Joel I know very little about shell scripting. Any information I should be looking for in particular? Thanks Gareth Norman. - Original Message - From: Joel Hammer [EMAIL PROTECTED] To: Gareth Norman [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:47 PM Subject: Re: [Samba] Limiting Users You could always used some scripts to control logons. Joel On Wed, Jun 04, 2003 at 01:20:22PM +0100, Gareth Norman wrote: When using windows NT and Netware there are ways of limiting the logins of users such as only allowing them on between 9am - 5pm and limiting maximum concurrent connection to one. Is there a way of enforcing these restrictions through samba or similar? Many thanks Gareth Norman -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing isses with LPRng
Do oplocks serve any purpose? Why not disable them. Joel -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Limiting Users
You could always used some scripts to control logons. Joel On Wed, Jun 04, 2003 at 01:20:22PM +0100, Gareth Norman wrote: When using windows NT and Netware there are ways of limiting the logins of users such as only allowing them on between 9am - 5pm and limiting maximum concurrent connection to one. Is there a way of enforcing these restrictions through samba or similar? Many thanks Gareth Norman -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] name_query failed to find name when using broadcastaddress
I would walk through the DIAGNOSIS.txt trouble shooting guide. Try locate DIAGNOSIS.txt to find it. Joel Wed, Jun 04, 2003 at 02:38:16PM -0400, patti c. wrote: Hi everyone, I'm trying to set up a Windows XP Pro client to connect to a Samba server (version 2.2.8) on a Redhat 8.0 linux box, but have been having trouble for the past 3 days. I have gone through Troubleshooting Samba at [http://us1.samba.org/samba/ftp/docs/Samba24Hc13.pdf] but I can't figure out how to fix the problem. I suspect that the broadcast address may not be the same on both boxes, but how do I set that in Windows XP? The problem may be something else, so I'll try to be as specific as possible: The server ip is 10.0.1.201, named fizzlebox The windows ip is 10.0.1.2, named studio My smb.conf: * [global] log file = /var/log/samba/log.%m socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 preserve case = no domain master = yes hosts allow = 127.0.0.1 10.0.1. studio encrypt passwords = yes wins support = true netbios name = FIZZLEBOX server string = Samba PDC running %v workgroup = FIZZLE os level = 75 security = user max log size = 50 domain logons = yes log level = 3 logon script = netlogon.bat [homes] comment = Fizzle Samba Home Directories read only = no browseable = no [netlogon] path = /home/netlogon read only = yes write list = patti [public] path = /home/fizzle valid users = patti user root read only = no browseable = yes *** - Both XP and Linux are able to ping each other by ip and hostname - ifconfig on Linux shows 10.0.1.255 as the broadcast address, mask as 255.255.255.0 - ipconfig on XP shows NodeType = broadcast, subnet mask as 255.255.255.0 - smbclient -L fizzle is able to list shares, as well as connect to a share while on the Linux server - nmblookup -U 127.0.0.1 __SAMBA__ works fine, as does the same command with FIZZLEBOX - nbtstat -n on XP lists both STUDIO and FIZZLE - This is where it goes wrong: nmblookup -B 10.0.1.255 fizzlebox returns name_query failed to find name fizzlebox; same happens when querying with studio - nbtstat -A 10.0.1.201 on XP returns Host not found Also on the Linux box: - All users and machines have been added, passworded, and smbpassworded - Read, write, execute permissions have been set on all relevant folders On the Windows box: - When trying to connect through My Computer - Properties - Computer Name - change Domain to FIZZLE , I get A domain controller for the domain FIZZLE could not be contacted - Internet Connection Firewall is disabled - Applied WinXP_SignOrSeal.reg from samba.org - Local Security Settings: most Domain member settings are disabled - NetBIOS over TCP/IP is enabled - lmhosts file: *** 10.0.0.201fizzlebox #PRE #DOM:DOMAIN-NAME 10.0.0.201FIZZLE \0x1b #PRE *** Can anyone help? Thanks in advance! Patti -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba is installed or not ??
Try which smbd. or smbd -V Joel On Wed, May 07, 2003 at 07:30:56PM -0700, Jair Santos wrote: Hi all, I am having a weird situation . I downloaded the latest samba version and followed the installation instructions. ./configure make etc... Then I tried to run samba but if use /etc/init.d/smb restart I get bash: /etc/init.d/smb: No such file or directory because there is no such file at all. If I try the following: [EMAIL PROTECTED] RPMS]# ls sam* samba-client-2.0.7-36.i386.rpm samba-common-2.0.7-36.i386.rpm [EMAIL PROTECTED] RPMS]# rpm -ivh samba* Preparing...### [100%] package samba-client-2.0.7-36 is already installed package samba-common-2.0.7-36 is already installed and then , if I try [EMAIL PROTECTED] RPMS]# rpm -e samba error: package samba is not installed [EMAIL PROTECTED] RPMS]# So, at this point I dont know if samba is installed or not Any help will be appreciated. thanks Jair -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] verify version
smbd -V Joel On Thu, May 29, 2003 at 10:02:43AM -0300, Luis Gustavo wrote: i downloaded samba version 2.2.8a, and installed on my machine, but how to verify if installed correctly and version installed too... Luis Gustavo Messenger: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] Tel.: (21) 98913560 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing. The REAL jobname. :)
The windows file name is passed in the %J variable to the samba server. I believe %J is the banner page contents. So, the share below does for me what you seem to want to do. It also makes the windows file name appear in the queue. The stuff with a=`echo etc. ` is to truncate the file name, since some windows apps send a long prefix before the file name. Now, if you are using CUPS, I just don't know. You can't specify printing commands for CUPS in the share, they say. Joel # Global parameters [global] [ps] comment = Filtered for Z53 path = /tmp read only = No create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/bin/lpr -Pps -J$a %s;\ rm %s lpq command = /usr/bin/lpq -Pps lprm command = /usr/bin/lprm -Pps %j lppause command = /usr/sbin/lpc hold ps %j lpresume command = /usr/sbin/lpc release ps %j share modes = No use client driver = yes On Thu, May 22, 2003 at 12:16:19PM +0930, [EMAIL PROTECTED] wrote: Hi All, I've got a very nicely working samba server with cups as the backend. i also have a colour printer on which I must do billing every month. i've done a test page or two and the username comes though to the colour printer which is good. problem i had is the jobname in the logs is smbprn__xx (numbers) which is the samba job name. if joe bloggs complains and says he didn't print that many jobs, we've no way of saying here's what you printed with samba because it's not recognizable to them. sad. Does anybody know anything about how the jobname gets crunched etc and can it be logged to the samba log file somehow in the worst case. this would work if there is no way samba/cups can pass though the original name of the printjob. On a side note, i've got a pdf printer setup with samba/cups and have modified the pdf script that writes the pdf to dig out the %%Title from the postscript file and make that the ending .pdf file. but obviously i can't do that with the lpd because it's not a text script. Anyone got some brilliant ideas? thanks Matthew -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Weird permissions on samba shared printers
No real idea but: This manage printers and manage documents stuff. Is this anything that is reported by unix or lprng? What does manage documents mean? The ability to run lprm and the like. What does manage printers mean? The ability to run queueresume or queuepause? I don't know how samba and lprng could report this information. Maybe cups allows this sort of thing to be reported, but I know nothing about cups. Joel On Thu, May 29, 2003 at 03:01:57PM -0400, Strange, John wrote: Well, I'm having some odd permissions created when I install a shared printer from a samba server. No matter what the remote host is I'll always end up with the following permissions on printers when installed on a client. http://www.strangeness.org/security.jpg I've got the drivers to update perfectly and now this is my last hurdle in setting up the print server. It seems to work okay but I still don't like the way it creates the permissions. I've tried searching google and finding somewhat related issues but they never seem to get anywhere so I'm hoping someone can help me find the answer. Here's some related information about the server and config: samba 2.2.7 #=== Global Settings = [global] workgroup = x netbios name = server string = Samba Server %v printcap name = /etc/printcap load printers = yes printing = lprng guest account = nobody log file = /var/log/samba/%m.log max log size = 0 security = domain password server = xx encrypt passwords = yes update encrypted = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 remote browse sync = xxx.xxx.xxx.xxx local master = yes os level = 66 preferred master = yes wins server = xxx.xxx.xxx.xxx dns proxy = no show add printer wizard = yes printer admin = [print$] path = /var/spool/samba/printers guest ok = yes browseable = yes read only = yes ; since this share is configured as read only, then we need ; a 'write list'. Check the file system permissions to make ; sure this account can copy files to the share. If this ; is setup to a non-root account, then it should also exist ; as a 'printer admin' write list = jstrange [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writeable = no printable = yes -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Users losing connection at random
What happens if you just restart the service with kill -1 PIDofFirstSmbd. This should not bother the existing connections. Joel this. So far my only resolution has been to restart the smb service. Once I do that, my two users can immediately log in. This as you can guess creates issues for those who were logged in. Also, at some point -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Ports for printing
The output of: cat /etc/services | grep -i bios netbios-ns 137/tcp # NETBIOS Name Service netbios-ns 137/udp netbios-dgm 138/tcp # NETBIOS Datagram Service netbios-dgm 138/udp netbios-ssn 139/tcp # NETBIOS session service netbios-ssn 139/udp You don't need all of these, some are essentially non-functional and present no security hazard. To see which ports your server is listening on: netstat -apn | grep -i smbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2250/smbd If smbd is started by xinitd or initd, you won't see the output above. Then, xinitd will be watching that port. nmbd listens on ports 137 and 138, udp. I do not know what a Datagram service is, BTW. Joel On Tue, May 27, 2003 at 10:21:31AM +0200, Jan Madsen wrote: Hallo I'm using samba 2.2.8a rpm packet on a redhat 9.0 On the same machine I use iptables with standard policies with DROP With ports do I need to open for printing on from my windows pc to work Best Regards Jan madsen -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cross Subnet WINS?
Have you walked through the DIAGNOSIS.txt troubleshooting guide? This is test 8, I believe. Joel On Tue, May 27, 2003 at 06:58:04PM -0500, ganapathy murali krishnan wrote: I have a question about WINS across subnets. I am *not* interested in cross subnet browsing. SAMBASERVER is my PDC as well as WINS. I run net view \\CLIENT on a windows machine A which is on the same subnet as my SAMBASERVER and everything works fine. If I run the same command on a windows machine B on another subnet it does not work. The network interface on B has been configured to use SAMBASERVER (rather its IP address) as the WINS server. I dont know if this is important. But A is on a wired network, and B is on a wireless network. - Murali -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] /var/spool/samba full of print jobs
I can't really help with cups specifically, but, you may need to have a command in your smb.conf to remove print jobs from the samba queue. For example, here is a typical print command with lprng: print command = /usr/bin/lpr -Plp -J'%J' %s; rm %s If you can't do this, you could run a cron job which cleans up the the spool directory from time to time. Joel On Wed, Apr 02, 2003 at 11:47:54AM +0100, Bill Dossett wrote: Hi, madly looking for an answer to this but haven't found it in the smb.conf man pages yet... I'm using samba for my print server. I use printing = cups with samba. Currently it looks like all print jobs are being retained in /var/spool/samba and it has just filled my var fs :-( and no one can print. I can't seem to find any parameters associated with pruning the jobs, or how long they should be retained if at all?? Am I looking for the wrong keywords retain /var/spool/samba? Sorry, I've got users yelling at me cos they can't print and it makes searching very difficult, can anyone help me out here urgently? Thanks Bill -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WINS
The biggest advantage I found was that it enabled cross network browsing on my small home system. Joel On Wed, Apr 02, 2003 at 09:18:37AM -0500, Kevin Smith wrote: With all this talk about a WINS server, I was wondering what the advantages/disadvantages are of them. My System consists is a RH7.3 server as a PDC with Samba 2.2.7a and 3 Win98se clients, the newest CUPS for an eventual printer server. Thanks. Kev -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] nmblookup comand
There are differences in how nmbd and smbclient look up other computers. For example, look in your smb.conf. Here is what I have in mind: [global] name resolve order = wins bcast hosts lmhosts hosts is the DNS server and lmhosts is the lmhost file on your linux box. So, smbclient will try all of these before it gives up. I am very vague on the details, but perhaps nmbd is failing because there is no nmbd daemon running on the target machine? nmbd does not consult all these other resources for finding a host, methinks. Your nmbd fails after making one query. smbclient will try all the above resources before giving up. It might be nice to compare a debug output with smbclient, and see how smbclient finds the other host. querying pc8686 on 134.247.255.255 Sending a packet of len 50 to (134.247.255.255) on port 137 Sending a packet of len 50 to (134.247.255.255) on port 137 Sending a packet of len 50 to (134.247.255.255) on port 137 name_query failed to find name pc8686 Joel On Tue, Apr 01, 2003 at 05:38:48PM +0200, Setzensack Stefan wrote: Dear Ladies and Gentlemens, i have a problem, the nmblookup command have an error, but the smbclient command have no error. See example. Can you please help me. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cant set up a no password login
You might make this work with just: guest account = nobody in [global] You could use other users like root (not very secure but it all depends on your needs) or any regular user you have defined on this server. Joel On Sun, Mar 30, 2003 at 10:59:05AM +0200, julius wrote: hi have problems to get an samba server up that offers shares for all without a password heres my smb.conf file located under /usr/local/samba/lib/smb.conf [global] netbios name = DEATHB server string = Samba pv on (pL) workgroup = LANSTRIKE encrypt passwords = yes security = share [homes] browseable = no [mp3] comment = lmh path = /var/glftpd/site/mp3/lame.r3mix/ browseable = yes read only = yes guest ok = yes has anybody an idea ? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba