lpd+samba question
is there any simple way to get data about workstation that prints using lpd from samba? what i need is to get IP/name of workstation that queued a print job to lpd subsystem through samba. or is the only way to change everything to print to lpd directly using lpd protocol? quite a bit of work but possible. I want to do accounting, not just how many pages are printed on each printer (done), but WHO printed it. No problem for local user, but not with samba. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lpd+samba question
I didn't try by myself, but what about something like print command = /usr/bin/lpr -P%p -J%J -U%I -r %f in smb.conf? I'm sorry to say that you additionally probably have to change /usr/src/usr.sbin/lpr/common_source/ctlinfo.c near line 87 to #define OTHER_USERID_CHARS -_. /* special chars valid in a userid */ and to recompile lpd: cd /usr/src/usr.sbin/lpr make clean make install At less I've to do so to make the dot . a valid character within a user name. Hope this helps and best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheu...@gwdg.de On Thu, 19 Jul 2012, Wojciech Puchar wrote: is there any simple way to get data about workstation that prints using lpd from samba? what i need is to get IP/name of workstation that queued a print job to lpd subsystem through samba. or is the only way to change everything to print to lpd directly using lpd protocol? quite a bit of work but possible. I want to do accounting, not just how many pages are printed on each printer (done), but WHO printed it. No problem for local user, but not with samba. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lpd+samba question
I didn't try by myself, but what about something like print command = /usr/bin/lpr -P%p -J%J -U%I -r %f in smb.conf? I'm sorry to say that you additionally probably have to change /usr/src/usr.sbin/lpr/common_source/ctlinfo.c near line 87 to #define OTHER_USERID_CHARS -_. /* special chars valid in a userid */ and to recompile lpd: cd /usr/src/usr.sbin/lpr make clean make install This is exactly what i asked for. Thank you very much for help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Samba question
Hi All I am sure there is a simple answer to this but I google has not overly helped. I am trying to mount a samba share that is on a FreeBSD 8.2 server to another FreeBSD 8.2 server, Mount_smbfs -I IP //user@host/share /mountpoint It then asks for a password, I enter the users password and then get mount_smbfs: unable to open connection: syserr = Authentication error Dmesg is showing smb_co_lock: recursive lock for object 1 I have samba integrated with Active Directory, so I then thought ah maybe adding the user to AD would help, so I have done so using the same password etc still no joy, I have make sure the user has access rights on the samba share, restarted samba and the same error persists, any ideas ? Regards Graeme ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Samba question
On Sat, 10 Sep 2011 11:53:48 +0100, Graeme Dargie wrote: I am trying to mount a samba share that is on a FreeBSD 8.2 server to another FreeBSD 8.2 server, Mount_smbfs -I IP //user@host/share /mountpoint It then asks for a password, I enter the users password and then get mount_smbfs: unable to open connection: syserr = Authentication error Dmesg is showing smb_co_lock: recursive lock for object 1 I have samba integrated with Active Directory, so I then thought ah maybe adding the user to AD would help, so I have done so using the same password etc still no joy, I have make sure the user has access rights on the samba share, restarted samba and the same error persists, any ideas ? Sorry, my indivudal knowledge on Windows related things is very limited, but maybe you need to add some information into /etc/nsmb.conf? Maybe like this: [default] workgroup=YOUR_WORKGROUP_NAME [SERVERNAME] addr=192.168.2.2 [SERVERNAME:USERNAME] password=TOPSECRET where SERVERNAME and USERNAME correspond to the server's name and the username you use to access the share (with the proper password). See man nsmb.conf for details. Parts of those information should then be reflected in /etc/fstab, maybe like this: //user@SERVERNAME/share /smb/share smbfs rw,noauto 0 0 This should allow you to use # mount /smb/share a bit easier (and automatically, if desired). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Samba question
Polytropon wrote: On Sat, 10 Sep 2011 11:53:48 +0100, Graeme Dargie wrote: I am trying to mount a samba share that is on a FreeBSD 8.2 server to another FreeBSD 8.2 server, Mount_smbfs -I IP //user@host/share /mountpoint It then asks for a password, I enter the users password and then get mount_smbfs: unable to open connection: syserr = Authentication error Dmesg is showing smb_co_lock: recursive lock for object 1 I have samba integrated with Active Directory, so I then thought ah maybe adding the user to AD would help, so I have done so using the same password etc still no joy, I have make sure the user has access rights on the samba share, restarted samba and the same error persists, any ideas ? Sorry, my indivudal knowledge on Windows related things is very limited, but maybe you need to add some information into /etc/nsmb.conf? Maybe like this: [default] workgroup=YOUR_WORKGROUP_NAME [SERVERNAME] addr=192.168.2.2 [SERVERNAME:USERNAME] password=TOPSECRET where SERVERNAME and USERNAME correspond to the server's name and the username you use to access the share (with the proper password). See man nsmb.conf for details. Parts of those information should then be reflected in /etc/fstab, maybe like this: //user@SERVERNAME/share /smb/share smbfs rw,noauto 0 0 This should allow you to use # mount /smb/share a bit easier (and automatically, if desired). Although it has been ages since I played with this, one thing I do recall: It matters that where indicated above the characters _must_ be in upper case. When I used to use such a setup I found it wouldn't work without it. Never knew exactly quite why. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: samba question
spen wrote: smbd Abort trap nmbd The story is that the first time I installed samba I enabled it in my /etc/rc.conf writting echo smbd /usr/local/sbin/smbd -D echo nmbd /usr/local/sbin/nmbd -D This is incorrect way to start daemons. You need read manual page for rc.conf. What is last mail with abort trap you got? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba question
I have already changed the way to enable samba on the machine. I do not use this in rc.conf echo smbd /usr/local/sbin/smbd -D echo nmbd /usr/local/sbin/nmbd -D but simply: #enable samba samba_enable=YES the last message was the one I posted. Fortunatelly I haven't got any mail since then, so I guess things are OK. Do you think the whole problem was on those two lines above that I used to have in my rc.conf? i'll include the last mail I got for abort trap: Message 1: From [EMAIL PROTECTED] Fri Oct 21 13:22:01 2005 Date: Fri, 21 Oct 2005 13:22:00 +0300 (EEST) From: [EMAIL PROTECTED] (Cron Daemon) To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy X-Cron-Env: SHELL=/bin/sh X-Cron-Env: PATH=.:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin X-Cron-Env: HOME=/ X-Cron-Env: LOGNAME=operator X-Cron-Env: USER=operator smbd Abort trap nmbd Could you also enlight me in what Abort trap means? thank you Spen __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba question
If I remember correctly, you have to start inetd to run smbd and nmbd. Check FreeBSD handbook for further details about configuring samba. Regards, OJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba question
At 02:36 AM 10/24/2005, Owen Jeremiah wrote: If I remember correctly, you have to start inetd to run smbd and nmbd. Check FreeBSD handbook for further details about configuring samba. Samba doesn't care about inetd. Adding samba_enable=YES to rc.conf is sufficient. (assuming you built samba from ports) -Glenn Regards, OJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba question
Owen Jeremiah wrote: If I remember correctly, you have to start inetd to run smbd and nmbd. Check FreeBSD handbook for further details about configuring samba. You _dont need_ inetd for Samba, moreover, inetd will degrade Samba performance, and AFAIK is not recommeded by Samba team . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba question
My mistake. I was referring to SWAT instead of smbd and nmbd. Regards, OJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
samba question
Hello to all. I have a FreeBSD 5.4 Stable machine on my network. I have recently installed smb,for the 2nd time from /usr/ports/net/samba3. I have setted up a basic configuration which will follow. My config is located in /usr/local/etc/smb.conf -- #=== Global Settings = [global] workgroup = local server string = Samba Server security = share hosts allow = 10.1.10.1/255.255.255.0 load printers = no user = nobody log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY dns proxy = no force directory mode = 777 null passwords = yes encrypt passwords = yes public = no security = share # Share Definitions == [homes] comment = Home Directories browseable = no writable = no [public] comment = %h Shared Public Directory path = /public public = yes writable = yes write list = nobody,@nobody force group = nobody force user = nobody read only = no browsable = yes user = nobody,@nobody socket options = TCP_NODELAY - I have access to my freeBSD machine via windows. BUT I keep getting this weird mail from cron: Message 1: From [EMAIL PROTECTED] Fri Oct 21 13:22:01 2005 Date: Fri, 21 Oct 2005 13:22:00 +0300 (EEST) From: [EMAIL PROTECTED] (Cron Daemon) To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy X-Cron-Env: SHELL=/bin/sh X-Cron-Env: PATH=.:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin X-Cron-Env: HOME=/ X-Cron-Env: LOGNAME=operator X-Cron-Env: USER=operator smbd Abort trap nmbd The story is that the first time I installed samba I enabled it in my /etc/rc.conf writting echo smbd /usr/local/sbin/smbd -D echo nmbd /usr/local/sbin/nmbd -D I don't know if this has sth to do with the fact I was getting the mail I included previously, all the time. Also, when I dmesg, I was gotting this : pid 70515 (smbd), uid 1003: exited on signal 6 pid 70524 (smbd), uid 1003: exited on signal 6 pid 70535 (smbd), uid 1003: exited on signal 6 So I deinstalled samba. But I still gotted the mails (the same as the one above). I think that might be because of the rc.conf. So now that I 've istalled it again I edited rc.conf and have only this line concerning samba: #enable samba samba_enable=YES I do not get this often mails, but still I do. Does anybody have a clue about this? regards, Spen __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba Question
Darryl Hoar wrote: I have Samba installed on a Freebsd 5.1 server. I am trying to map a share from a windows machine so that I can copy the data. I can not change the windows share name. It has a space in it. How do I specify the share name in fstab. share name: PSR COMPLETE //[EMAIL PROTECTED]/PSR COMPLETE /psrcomplete smbfs ro,noauto 0 0 doesn't work. Can't use quote marks Hi, I once had the same problem, and I came up with the following patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/55539 (I have attached version of the patch that applies to FreeBSD 5.2.1, otherwise please use the very last version of it (at the bottom of the problem report page). The following instructions assume that you have the system sources in /usr/src # cd /usr/src # patch /path/to/fstab-vis.patch Now either do a full buildworld cycle, or use the following commands (untested): # cd /usr/src/lib/libc # make depend make make install clean # cd /usr/src/share/man/man5 # make depend make make install clean Now you can encode the spaces with the vis(1) utility: vis -w your mount point goes hereENTER See also the updated fstab(5) man page. If you try this patch, please tell me, whether it works for you, perhaps someday I can get it committed. Regards, Simon --- lib/libc/gen/fstab.c.orig Mon Apr 7 14:55:00 2003 +++ lib/libc/gen/fstab.cSun Apr 4 21:45:30 2004 @@ -49,6 +49,7 @@ #include stdlib.h #include string.h #include unistd.h +#include vis.h #include un-namespace.h static FILE *_fs_fp; @@ -110,6 +111,41 @@ _fs_fstab.fs_spec = buf; } +/* + * Converts a string *str, that possibly contains vis(1|3) encoded + * characters (visual representation) into the original form. + * See also: unvis(1|3) + * + * Return values: 0 on success, 1 otherwise + */ +int unescape (char *str) { + int state = 0; + char out, *s = str, *t = str; + + if (str == NULL) + return 1; + + while (*s != '\0') { + again: + switch(unvis(out, *s, state, 0)) { + case 0: + case UNVIS_NOCHAR: + break; + case UNVIS_VALID: + *t++ = out; + break; + case UNVIS_VALIDPUSH: + *t++ = out; + goto again; + case UNVIS_SYNBAD: + return 1; + } + ++s; + } + *t = '\0'; + return 0; +} + static int fstabscan() { @@ -128,9 +164,19 @@ if (*line == '#' || *line == '\n') continue; if (!strpbrk(p, \t)) { - _fs_fstab.fs_spec = strsep(p, :\n); - _fs_fstab.fs_file = strsep(p, :\n); + cp = strsep(p, :\n); + if (!unescape (cp)) + _fs_fstab.fs_spec = cp; + else + goto bad; + + cp = strsep(p, :\n); + if (!unescape (cp)) + _fs_fstab.fs_file = cp; + else + goto bad; fixfsfile(); + _fs_fstab.fs_type = strsep(p, :\n); if (_fs_fstab.fs_type) { if (!strcmp(_fs_fstab.fs_type, FSTAB_XX)) @@ -152,13 +198,21 @@ /* OLD_STYLE_FSTAB */ while ((cp = strsep(p, \t\n)) != NULL *cp == '\0') ; - _fs_fstab.fs_spec = cp; + if (!unescape (cp)) + _fs_fstab.fs_spec = cp; + else + goto bad; if (!_fs_fstab.fs_spec || *_fs_fstab.fs_spec == '#') continue; + while ((cp = strsep(p, \t\n)) != NULL *cp == '\0') ; - _fs_fstab.fs_file = cp; + if (!unescape (cp)) + _fs_fstab.fs_file = cp; + else + goto bad; fixfsfile(); + while ((cp = strsep(p, \t\n)) != NULL *cp == '\0') ; _fs_fstab.fs_vfstype = cp; --- share/man/man5/fstab.5.orig Thu Dec 12 18:25:57 2002 +++ share/man/man5/fstab.5 Sun Apr 4 21:46:35 2004 @@ -10,7 +10,7 @@ .\notice, this list of conditions and the following disclaimer in the .\documentation and/or other materials provided with the distribution. .\ 3. All advertising materials mentioning features or use of this software -.\must display the following acknowledgement: +.\must display the following acknowledgment: .\This product includes software developed by the University of .\California, Berkeley and its contributors. .\
Samba Question
Greetings, I have Samba installed on a Freebsd 5.1 server. I am trying to map a share from a windows machine so that I can copy the data. I can not change the windows share name. It has a space in it. How do I specify the share name in fstab. share name: PSR COMPLETE //[EMAIL PROTECTED]/PSR COMPLETE /psrcomplete smbfs ro,noauto 0 0 doesn't work. Can't use quote marks. ideas ? No I can't change the share name. No, I can't totally elimnate windows (altough I'd like to). thanks, Darryl ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
On Sun, Nov 16, 2003 at 09:08:12PM -0500, Marty Landman wrote: No. Now I did rebooted. Same symptom, i.e. windoz explorer tells me \\Swamisalami is not accessible. ... The account is not authorized to log in from this station. Martin, following line in your smb.conf should solve this problem: encrypt passwords = yes This is because newer Windows releases refuse to send unencrypted passwords by default. You could tweak Windows to enable unencrypted passwords, but I prefer enabling encrypted passwords in samba instead. Have a look at /usr/local/share/doc/samba/htmldocs/ENCRYPTION.html for more details. Hope this helps. Kind regards, Ilya Varlashkin ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
At 08:47 AM 11/22/2003, Ilya Varlashkin wrote: Martin, following line in your smb.conf should solve this problem: encrypt passwords = yes Ilya, I almost forgot to reply... sorry. I may not have mentioned on earlier postings that smbd was not running as I eventually discovered - only nmbd. I think my installation became a mess and since I'm able to do what I need for now using ssh and ftp from my workstation am content to leave it at that for the time being. Thanks. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
+++ Marty Landman [15-11-03 23:12 -0500]: | At 09:46 PM 11/15/2003, Robin Schoonover wrote: | | Hmm. Ignoring everything else you gave us, I'd say it sounds like there is | a firewall in the way. I've had the exact same problem before. | | I believe I have ipfw disabled.. | | # ps -ax|grep ipfw | # what's the o/p of # ipfw s ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
At 02:00 PM 11/16/2003, Shantanoo Mahajan wrote: what's the o/p of # ipfw s ipfw: getsockopt(IP_FW_GET): Protocol not available Like I said though, I think this config is a total mess now. At some point I'll work out how to undo what I've (wrongly) done and then start over. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
On Sat, 15 Nov 2003, Marty Landman wrote: Ok, I think this is a mess now. First I tried the toot in the FBSD Diary, and now the chapter 2 toot from O'Reilly. My Samba install is likely way out of rhythm! Still it's so close - I can see the share on windoz explorer but can't access it that maybe others here can help. Here's most of what's in my /usr/local/etc/smb.conf (the test path, i.e. my share is chmod 777) You don't say what the error is, but does the parent directory of the share have browseable rights (+x) for the Samba user? -Warren Block * Rapid City, South Dakota USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Samba question
Ok, I think this is a mess now. First I tried the toot in the FBSD Diary, and now the chapter 2 toot from O'Reilly. My Samba install is likely way out of rhythm! Still it's so close - I can see the share on windoz explorer but can't access it that maybe others here can help. Here's most of what's in my /usr/local/etc/smb.conf (the test path, i.e. my share is chmod 777) [global] workgroup = Face2Interface server string = Samba Server hosts allow = 192.168.0. 127. [test] comment = For testing only, please path = /usr/local/www/data read only = yes guest ok = yes CUPS is mentioned in the logs, and you don't seem to know what it is, so do you have a line similar to: printing = cups in smb.conf? If you don't need cups, don't list it in smb.conf. I have seen cases where a cups/smb mismatch killed samba. If you do need cups, make sure it accepts connections from localhost (should be default case). Also, did you define guest in smb.conf and did you create the acct with smbpasswd -a ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Samba question
At 02:23 PM 11/16/2003, Derrick Ryalls wrote: CUPS is mentioned in the logs, and you don't seem to know what it is, so do you have a line similar to: printing = cups No, good point. I have ;printing = bsd so that was commented out. Also, did you define guest in smb.conf and did you create the acct with smbpasswd -a No. Now I did rebooted. Same symptom, i.e. windoz explorer tells me \\Swamisalami is not accessible. ... The account is not authorized to log in from this station. One thing I notice is that nmbd is running but smbd isn't (ps -ax|grep mbd). Is this normal behavior? more /var/log/dmesg.today|grep mbd yields nothing; looking at /var/log/log.nmbd the line Packet send failed to 192.168.0.255(137) ERRNO=No route to host sticks out like a sore thumb. I gather that lil' devil tried probing port 137 on lan ip 192.168.0.255. That node doesn't exist; my dns comes from a win xp box called delliver with ip 192.168.0.1 and dial up using win ics. Yet for some reason samba looked at a non-existent ip on the lan; also it reported no route to host. Finally when I do a find computer on win xp for swamisalami it find two. One's just that, the other is that parenthetically labelled Samba Server. Neither is accessible. Finally when I look for my fbsd box by ip adr on win find computer it now finds it - also not accessible. Looks like I did something right and something wrong. (stating the painfully obvious). Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
On Sun, 16 Nov 2003 21:08:12 -0500 Marty Landman [EMAIL PROTECTED] granted us these pearls of wisdom: At 02:23 PM 11/16/2003, Derrick Ryalls wrote: CUPS is mentioned in the logs, and you don't seem to know what it is, so do you have a line similar to: printing = cups No, good point. I have ;printing = bsd so that was commented out. Also, did you define guest in smb.conf and did you create the acct with smbpasswd -a No. Now I did rebooted. Same symptom, i.e. windoz explorer tells me \\Swamisalami is not accessible. ... The account is not authorized to log in from this station. One thing I notice is that nmbd is running but smbd isn't (ps -ax|grep mbd). Is this normal behavior? more /var/log/dmesg.today|grep mbd yields nothing; looking at /var/log/log.nmbd the line Packet send failed to 192.168.0.255(137) ERRNO=No route to host sticks out like a sore thumb. I gather that lil' devil tried probing port 137 on lan ip 192.168.0.255. That node doesn't exist; my dns comes from a win xp box called delliver with ip 192.168.0.1 and dial up using win ics. Yet for some reason samba looked at a non-existent ip on the lan; also it reported no route to host. Finally when I do a find computer on win xp for swamisalami it find two. One's just that, the other is that parenthetically labelled Samba Server. Neither is accessible. Finally when I look for my fbsd box by ip adr on win find computer it now finds it - also not accessible. Looks like I did something right and something wrong. (stating the painfully obvious). Let me ask a couple of really silly questions. Did you actually set up a user account ? Is there a line in your smb.conf that refers to listening interfaces and are they the correct interfaces/addresses ? One thing I notice is that nmbd is running but smbd isn't (ps -ax|grep mbd). Is this normal behavior? more /var/log/dmesg.today|grep mbd yields nothing; looking at /var/log/log.nmbd the line most definately not normal behaviour. smbd should be spawing a process as root ie the master process and then one process per user so if you cannot see smbd running then I cannot see how you can hope to connect sucessfully. nmbd is the netbios name daemon so if that is running you should be able to see the computer but without smbd you cannot connect. HTH LukeK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
On Sat, 15 Nov 2003 21:37:32 -0500, Marty Landman [EMAIL PROTECTED] wrote: Ok, I think this is a mess now. First I tried the toot in the FBSD Diary, and now the chapter 2 toot from O'Reilly. My Samba install is likely way out of rhythm! Still it's so close - I can see the share on windoz explorer but can't access it that maybe others here can help. Hmm. Ignoring everything else you gave us, I'd say it sounds like there is a firewall in the way. I've had the exact same problem before. BTW dudes, what's a CUPS server? 8^} CUPS is the Common UNIX Printing System. -- Robin Schoonover (aka End) # # We're not surrounded, we're in a target-rich environment! # ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Samba question
At 09:46 PM 11/15/2003, Robin Schoonover wrote: Hmm. Ignoring everything else you gave us, I'd say it sounds like there is a firewall in the way. I've had the exact same problem before. I believe I have ipfw disabled.. # ps -ax|grep ipfw # I start it up by doing # /usr/local/sbin/smbd -D ; /usr/local/sbin/nmbd -D and then only find nmbd running.. is that normal behavior? Also even after killing nmbd it comes back seemingly on its own. Sorry if I'm rambling on but I seem to be lost. Maybe I should instead try to copy the cups and samba execs in rc.d from their defaults and do a shutdown. Anyway... Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Simple Samba Question(?)
[I am not currently subscribed to this mailing list, so please 'cc:' me in any replies. Thank you.] I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. I'm using Samba 3.0a19. I had this working before I moved and now I cannot remember how I got it to work (I just remember it was a pain). I've also searched high and low all over the net and come up with nothing. Any help you all may be able to offer would be greatly appreciated. -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
# [EMAIL PROTECTED] / 2002-09-25 00:04:08 -0700: I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. adjust permissions of the directory /u1 so that the user can write to it. -- begin 666 nonexistent.vbs FreeBSD 4.7-RC 11:54AM up 7 days, 19:09, 27 users, load averages: 0.00, 0.01, 0.00 end To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
Sorry for intervening into this thread, but I have some problems with permissions to subdirectories myself. A windows machine should be able to read and write its profiles to a directory called /usr/local/samba/profiles . This works ok for a user with root access to my samba server, but it ends up in access denied for any other user (they belong to a group called samba). How do I have to set up the permissions? And to Scott's problem: please see to remarks at the end of this mail! On Wed, 25 Sep 2002, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2002-09-25 00:04:08 -0700: I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. adjust permissions of the directory /u1 so that the user can write to it. - Did you disable windows' password encryption? - Did you set up a samba user account with smbpasswd ? Uli. -- begin 666 nonexistent.vbs FreeBSD 4.7-RC 11:54AM up 7 days, 19:09, 27 users, load averages: 0.00, 0.01, 0.00 end To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message *---* *Peter Ulrich Kruppa* * - Wuppertal - * * Germany * *---* To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
# [EMAIL PROTECTED] / 2002-09-25 21:32:31 +: A windows machine should be able to read and write its profiles to a directory called /usr/local/samba/profiles . This works ok for a user with root access to my samba server, but it ends up in access denied for any other user (they belong to a group called samba). How do I have to set up the permissions? I don't use this feature, and have no idea what could be causing the problem, sorry. On Wed, 25 Sep 2002, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2002-09-25 00:04:08 -0700: I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. adjust permissions of the directory /u1 so that the user can write to it. - Did you disable windows' password encryption? i have samba serving files and a printer to several XP, one NT4 (or is it 5?), and one w98 box. samba is configured to require encrypted passwords, all the boxes work fine in this respect (you have to patch the registry for various reasons in various versions of windows, but this is not a problem) -- begin 666 nonexistent.vbs FreeBSD 4.7-RC 8:35PM up 8 days, 3:49, 20 users, load averages: 0.04, 0.03, 0.00 end To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
Roman Neuhauser wrote: i have samba serving files and a printer to several XP, one NT4 (or is it 5?), and one w98 box. samba is configured to require encrypted passwords, all the boxes work fine in this respect (you have to patch the registry for various reasons in various versions of windows, but this is not a problem) I seem to recall that I did have to patch the registry the first time I got this to work, however, I can't seem to find any documentation that tells me how this is done. WinNT.txt file that came with Samba doesn't seem to apply to XP. -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
from years ago when I was setting this up and before samba supported encrypted auth, the registry change on the windows machines was to let the windows redirector send passwords *in* clear text as anything after win95b would only send encrypted auth info. If you setup the samba server to deal w/ encrypted passwords, you shouldn't need to change anything on the windows machines.. I do see one snippet about an XP machine in a domain: REGEDIT4 ; ; This registry key (gathered from the Samba-tng lists) is needed ; for a Windows XP client to join and logon to a Samba domain HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters RequireSignOrSeal=dword: hth, Dave On Wed, 25 Sep 2002 12:09:40 -0700 Scott R. [EMAIL PROTECTED] wrote: Roman Neuhauser wrote: i have samba serving files and a printer to several XP, one NT4 (or is it 5?), and one w98 box. samba is configured to require encrypted passwords, all the boxes work fine in this respect (you have to patch the registry for various reasons in various versions of windows, but this is not a problem) I seem to recall that I did have to patch the registry the first time I got this to work, however, I can't seem to find any documentation that tells me how this is done. WinNT.txt file that came with Samba doesn't seem to apply to XP. -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
Scott R. wrote: [I am not currently subscribed to this mailing list, so please 'cc:' me in any replies. Thank you.] I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. I'm using Samba 3.0a19. I had this working before I moved and now I cannot remember how I got it to work (I just remember it was a pain). I've also searched high and low all over the net and come up with nothing. Any help you all may be able to offer would be greatly appreciated. -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message Hi Scott, You could try to put: writable = yes in the [Shared] section. Also, does the user you are connecting with have the correct permissions to write to /u1? I have XP connecting to a samba server on FreeBSD 4.6.2, I can both read and write from my home directory. Hope you figure it out, Thanatos To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
Thanatos wrote: I have XP connecting to a samba server on FreeBSD 4.6.2, I can both read and write from my home directory. I do have it working now. As per someone's suggestion earlier, I applied the reg patch from /usr/local/share/doc/samba/Registry and ran the 'smbpasswd' command to re-assign the password for the user and it suddenly worked! Thanks, everyone for your help! -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Simple Samba Question(?)
Scott, 1) Do you use encrypted passwords or plain password in your Samba Server configuratioin? If you use plain password in samba server configuration, you may need to modify your registry in WindowXP? 2) Do you create the smb users and connect use the smbuser while not the system user. Regards, Fred Zhang - Original Message - From: Thanatos [EMAIL PROTECTED] To: Scott R. [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 25, 2002 8:34 PM Subject: Re: Simple Samba Question(?) Scott R. wrote: [I am not currently subscribed to this mailing list, so please 'cc:' me in any replies. Thank you.] I have a simple home network with one Windows XP machine and one FreeBSD 4.6.2-RELEASE machine. I am trying to set up a Samba share on the FreeBSD machine that the WinXP box can read/write to. I can get it to read the share, but I cannot seem to write to it. My config file is really simple: [global] workgroup = MYWORKGROUP netbios name = DRAGULA security = SHARE [Shared] path = /u1 read only = No guest ok = Yes Every time I try to write to the share, I get an Access Denied error. I'm using Samba 3.0a19. I had this working before I moved and now I cannot remember how I got it to work (I just remember it was a pain). I've also searched high and low all over the net and come up with nothing. Any help you all may be able to offer would be greatly appreciated. -Scott To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message Hi Scott, You could try to put: writable = yes in the [Shared] section. Also, does the user you are connecting with have the correct permissions to write to /u1? I have XP connecting to a samba server on FreeBSD 4.6.2, I can both read and write from my home directory. Hope you figure it out, Thanatos To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message