Re: [Samba] Connection to a Remote XP Box
Joseph A Nagy Jr wrote: Win98 SE (F) Disk mount -t smbfs -o username=somename,password=somepass //s.o.m.e.i.p/F /chris/ 21287: session request to s.o.m.e.i.p. failed (Called name not present) 21287: session request to s failed (Called name not present) 21287: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) SMB connection failed I think this is a fairly easy problem. The name of the share is not 'F' but 'Win98 SE (F)' if I'm not mistaken. That is why you are getting the error about no such share. -- "Um, can you repeat the part of the stuff where you said all about the things?" - Homer Simpson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Need a cron script written
On Thu, 28 Nov 2002, Kevin Brown wrote: > I do this manually: > smbmount //Beverley/C /home/data > pwd: "insert pwd" > cp -ruv /home/samba/public /home/data > smbumount /home/data > > This lets me do the following: > make a copy of all my samba shares on the server to a client named Beverley C > drive. > ruv does the following > recursive (all subdirectories and subfolders) > unchanged (only write over when newer) > verbose > > pwd: "insert pwd" would be my password for that share (secret!!) If you change this to: smbmount //Beverley/C /home/data -o,username=KevinBrown,password=SECRET You shouldn't get prompted for a password. > the only problem is I can not get cp to do this "quietly or without input, even >dropping > the "v" makes me confirm each write. try /bin/cp -a /home/samba/public /home/data > I need to unmount the share at end of backup. > Any ideas of doing it another way much appreciated. > I currently run a cron job, tar -cvfpP /dev/st0 /home/samba/public weekly to save >all > my samba server shares to tape. Yours Tony Jan 22-25 2003 Linux.Conf.AUhttp://linux.conf.au/ The Australian Linux Technical Conference! -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba server for windows (I know it defeats theobject...)
On Thu, 2002-11-28 at 21:17, [EMAIL PROTECTED] wrote: > Hi, > > is there a samba server for windows that UNIX samba clients can access. > > I know this wouldn't make sense and windows mounting a unix SMB exported > directory would make so much more sense but a colleague swears that a > windows samba server exists and it is proving hard to demonstrate its > absence! I'm sure he is really talking about an NFS server for windows... Samba would run under windows, except that we do not currently support the locking primitives that windows uses. (This would naturally imply using cygwin). In fact, there is rumour that an old version of Samba had been ported there at one point - it's certainly possible, given the existence of the OS/2 port. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
Re: [Samba] Build problem - 2.2.7 (latest)
On Fri, 2002-11-29 at 16:47, Lightfoot.Michael wrote: > I'm trying to build samba 2.2.7 (latest tarball) downloaded about 2 > hours ago. > > System is SunFire 3800, Solaris 8 (Generic_108528-16) and gcc 3.2 > (downloaded from Sunfreeware). Gcc -v output is: > Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs > Configured with: ../configure --with-as=/usr/ccs/bin/as > --with-ld=/usr/ccs/bin/ld --disable-nls > Thread model: posix > gcc version 3.2 > > Here is the last few output lines from configure: > > checking whether or not getgroups returns EGID too many times... no > checking whether struct passwd has pw_comment... yes > checking whether struct passwd has pw_age... yes > checking for poptGetContext in -lpopt... yes > checking whether to use included popt... no > checking configure summary... configure: error: summary failure. > Aborting config > > > Any ideas? I've never had a configure problem before. It usually means that the 'summary' is unable to link. Yes, it really should be made clearer... Dive into the configure logs, and try to see what the link line becomes. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
[Samba] need smbmount cron script
I do this manually: smbmount //Beverley/C /home/data pwd: "insert pwd" cp -ruv /home/samba/public /home/data smbumount /home/data This lets me do the following: make a copy of all my samba shares on the server to a client named Beverley C drive. ruv does the following recursive (all subdirectories and subfolders) unchanged (only write over when newer) verbose pwd: "insert pwd" would be my password for that share (secret!!) the only problem is I can not get cp to do this "quietly or without input, even dropping the "v" makes me confirm each write. I need to unmount the share at end of backup. Any ideas of doing it another way much appreciated. I currently run a cron job, tar -cvfpP /dev/st0 /home/samba/public weekly to save all my samba server shares to tape. best, kevin brown -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Build problem - 2.2.7 (latest) - further info
Should have included the relevant config.log output with my last message: configure:14155: checking configure summary configure:14164: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -lsec -lgen -lsocket -lnsl -ldl -lpopt 1>&5 configure: failed program was: #line 14160 "configure" #include "confdefs.h" #include "./tests/summary.c" The relevant lines from the configure script are: # final configure stuff echo $ac_n "checking configure summary""... $ac_c" 1>&6 echo "configure:14155: checking configure summary" >&5 if test "$cross_compiling" = yes; then echo "configure: warning: cannot run when cross-compiling" 1>&2 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac _exeext} && (./conftest; exit) 2>/dev/null then echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1; fi rm -fr conftest* fi Michael Lightfoot Unix Consultant ISG Host Systems Comcare +61 2 62750680 NOTICE: This e-mail message and attachments may contain confidential information. If you are not the intended recipient you should not use or disclose any information in the message or attachments. If received in error, please notify the sender by return email immediately. Comcare does not waive any confidentiality or privilege. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
Check you UTP cable and driver for nic. UTP must have pairs 12 36 connected not 12 34 (if this then only one way work 100Mb) - Original Message - From: "Justin Richards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 9:24 PM Subject: Re: [SAMBA] config/performance problem on solaris 8 > I have tried your advice, infact I removed everything but the necessary > server information and still no difference. read speed still very good, > write speed still way below par. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Justin Richards" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, November 28, 2002 1:33 PM > Subject: Re: [SAMBA] config/performance problem on solaris 8 > > > > You know the default tuning parameters we ship should just > > work, especially in 2.2.7. > > > > Try removing the following paramters and seeing if it helps. > > > > Jeremy. > > > > On Thu, Nov 28, 2002 at 10:41:25AM -0600, Justin Richards wrote: > > > [global] > > > read size = 65535 > > > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 > SO_RCVBUF=16384 > > > max connections = 150 > > > write cache size = 65535 > > > read prediction = yes > > > max xmit = 65535 > > -- > > 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] Build problem - 2.2.7 (latest)
I'm trying to build samba 2.2.7 (latest tarball) downloaded about 2 hours ago. System is SunFire 3800, Solaris 8 (Generic_108528-16) and gcc 3.2 (downloaded from Sunfreeware). Gcc -v output is: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.2 Here is the last few output lines from configure: checking whether or not getgroups returns EGID too many times... no checking whether struct passwd has pw_comment... yes checking whether struct passwd has pw_age... yes checking for poptGetContext in -lpopt... yes checking whether to use included popt... no checking configure summary... configure: error: summary failure. Aborting config Any ideas? I've never had a configure problem before. Michael Lightfoot Unix Consultant ISG Host Systems Comcare +61 2 62750680 NOTICE: This e-mail message and attachments may contain confidential information. If you are not the intended recipient you should not use or disclose any information in the message or attachments. If received in error, please notify the sender by return email immediately. Comcare does not waive any confidentiality or privilege. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Need a cron script written
I do this manually: smbmount //Beverley/C /home/data pwd: "insert pwd" cp -ruv /home/samba/public /home/data smbumount /home/data This lets me do the following: make a copy of all my samba shares on the server to a client named Beverley C drive. ruv does the following recursive (all subdirectories and subfolders) unchanged (only write over when newer) verbose pwd: "insert pwd" would be my password for that share (secret!!) the only problem is I can not get cp to do this "quietly or without input, even dropping the "v" makes me confirm each write. I need to unmount the share at end of backup. Any ideas of doing it another way much appreciated. I currently run a cron job, tar -cvfpP /dev/st0 /home/samba/public weekly to save all my samba server shares to tape. best, kevin brown -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
On Thursday, November 28, 2002, at 09:05 PM, Justin Richards wrote: at any rate, thank you both for helping me look at this problem! this kind of performance will keep me happy for a while! I'm glad to hear I steered you in the right direction! Just remember to use FTP in the future any time you want to check network performance. Any idea why tcp:tcp_conn_hash_size=32768 would have such negative affect? We have tweaked this setting on some of our larger servers at work (E4500's, E6500's and Sunfire 4800's) and it never had bad results.. Not having touched Solaris or a Sparc based system in almost 5 years, I cannot really comment on these settings in your /etc/system file. What I see on the Sun web site indicates this sets the size (in entries) of the TCP connection hash table, with the default value being 512. One would think this would affect TCP connections for both reading and writing equally. But then again. I don't really know! The Sun docs do say only to change it from the default if you expect to consistently have more than a few thousand concurrent TCP connections. Anyway, I'm glad to have been of service -- Jim Morris ([EMAIL PROTECTED]) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Access Linux PC from other windows machines in the WorkGroup
It looks like you probably need to read some beginner's introduction to Samba. To answer your question, we'd need a copy of your smb.conf file, at least. You also might add information such as: 1. Unix version used as Samba host. 2. Version of Samba in use. 3. Is your Windows network a workgroup or domain? 4. Version of Windows the client is running. My guess is that you didn't set up your accounts on the Samba server using smbpasswd. Try: # smbpasswd -a (run as root user), where username is the name of an account on the Samba host (Unix system), and is used by the Windows user to log on. - Jay Ts - On Thu, Nov 28, 2002 at 08:41:27PM -0800, Rakesh Rajan wrote: > Dear Sir, > I want to access my Linux shared folder from other > windows PC's in the same work group. I have installed > TurboLinux7.0 in my PC. It has got samba server > shipped with it. I made settings in the /etc/smb.conf > file. > Now we can see my machine from the network > neighbourhood of other machines in the workgroup. But > when we try to access the linux PC from other windows > machine, it gives the following error message > "The account is not authorised to login from this > machine" > Please give me more information on this. > Thanks & BestRegards, > Raks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] system error 64, win xp and samba
On Thu, Nov 28, 2002 at 04:59:42PM +, John H Terpstra wrote: > On Thu, 28 Nov 2002, mlh wrote: > > > > > Just so that it gets into the archives for > > future googlers: > > > > If you get 'system error 64' on a windows xp > > machine trying to connect to samba, then > > make sure you have nothing running on port 445. > > > > I had an apache ssl instance running on that port. > > Really? The well known port for that is 443. Yeah, I know. I have a whole bunch of apache servers, of potentially different versions, hence different ports. (rather than use virtual servers) The first uses 80+443, the second 81+444, the third ... well you can guess :-) > > Doh! Had to scratch my head a bit over it. > > > > XP doesn't actually need anything to be on 445, > > it just gets confused and gives up if there is. > > Port 445 is the port Win2K and WinXP use for netbiosless SMB. > It is the correct well known TCP port that Microsoft have registered for > the purpose. Does any present or future Samba plan to use it too? (I presume the answer is yes for future, but I think no for the present.?) Matt PS. I may go to virtual ips for my multiple apaches but that's enough on apache for this list. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Access Linux PC from other windows machines in the WorkGroup
Dear Sir, I want to access my Linux shared folder from other windows PC's in the same work group. I have installed TurboLinux7.0 in my PC. It has got samba server shipped with it. I made settings in the /etc/smb.conf file. Now we can see my machine from the network neighbourhood of other machines in the workgroup. But when we try to access the linux PC from other windows machine, it gives the following error message "The account is not authorised to login from this machine" Please give me more information on this. Thanks & BestRegards, Raks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Another Samba+ACLs thread
>> $ setfacl -m DOMAIN+andrewfu:rwx myfile >> setfacl: Option -m: Invalid argument near character 1 > I had a similar issue on my Debian box. It seemed that setfacl didn't care for special characters. I changed the separator character to - (dash) instead of + or \ and it worked fine. It looks like that error (invalid argument) is coming up any time the username is not found on the system. This of course includes anything added onto it - like DOMAIN+name, DOMAIN-name, etc. Also, the only mention of a separator that I see in smb.conf is in relation to winbind, which I'm not using at present (need real users due to ownership of files; I'm using add user script instead). Should I in fact be using winbind? If so, how does it fit into the picture? -- ANDREW FUREY <[EMAIL PROTECTED]> - Sysadmin/developer for Terminus. Providing online networks of Australian lawyers (http://www.ilaw.com.au) and Linux experts (http://www.linuxconsultants.com.au) for instant help! Disclaimer: http://www.terminus.net.au/disclaimer.html. GCS L+++ P++ t++ -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Connection failed with smbclient
nmblookup likely uses bcasting or a wins server to find a host, whereas smbclient may use lmhost and host (/etc/host and DNS) as well, or none of these, depending on smb.conf. What if you mess with name resolve order in your global section of smb.conf? Joel On Thu, Nov 28, 2002 at 09:30:30AM -0500, David A. Bandel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Folks, > > I looked through the archives, but didn't see anything like this. > > I have a network with a mix of Win95, Win98, and WinME clients (and one > Linux system w/ Samba server version 2.2.2). > > All systems belong to a workgroup called "Oteima". > > All Win95 and Win98 clients see all other systems (including the Linux > box) in one list. > > However, a couple of systems (notably the WinME systems) see _two_ Oteima > workgroups. > > Problem is, the Samba server, using nmblookup can find _all_ systems, but > using smbclient can only connect to the Windoze systems listed in one > Oteima workgroup, but get a connection failed when trying to connect to > systems in the other Oteima workgroup. > > I very methodically checked using nmblookup and sbmclient whether I could > see/connect to every system. > > [root@appgen root]# nmblookup caja > querying caja on 192.168.5.255 > 192.168.5.42 caja<00> > [root@appgen root]# smbclient //caja/c > added interface ip=192.168.5.50 bcast=192.168.5.255 nmask=255.255.255.0 > Connection to caja failed > > if I could resolve _why_ some Win systems have _two_ Oteima workgoups (one > to which I can connect to _all_ listed systems and one to which I cannot > connect to any) I could resolve this dilemna. > > I've tried: changing workgroup name (all lowercase, all uppercase, mixed > upper/lower case); encrypt passwds yes/no. Changing protocol mins and > maxs (from CORE to NT1). I'm running out of ideas. > > Any and all suggestions welcome. > > David A. Bandel > - -- > Focus on the dream, not the competition. > -- Nemesis Racing Team motto > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE95iiG3uVcotqGMQcRAsIbAKCvG630vfFHmod71Hyh+IpkUGfVQwCgwuog > nbjz45yzhN5ygZ3HDFPMmJA= > =xJ+8 > -END PGP SIGNATURE- > -- > 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] Connection to a Remote XP Box
As I recall your error was called name not present, yes? I am not sure what is doing this. To troubleshoot this, I would make sure that your host resolution is working right. The parameter: [global] name resolve order = lmhosts wins bcast hosts determines how things are looked up. lmhosts = lmhosts file on your linux box wins = use wins server bcast = broadcast hosts = use host lookup. Will check /etc/hosts, then your DNS. The default order, as listed in loadparam.c, seems to be: string_set(&Globals.szNameResolveOrder, "lmhosts host wins bcast"); (Yes, host and hosts both seem to work, dunno.) Edit smb.conf, and use just one method at a time, eg: name resolve order = wins smbclient will only try the wins server with this options specified. You might be able to track down where the error is coming from. You don't have to restart smbd after you make these changes. My suspicion is that one of the methods of lookup is returning wrong data. Joel On Thu, Nov 28, 2002 at 06:53:28PM -0600, Joseph A Nagy Jr wrote: > The one thing I missed...I'M behind a router (Linksys DSL/Cable 4-Port router). > > > -- > Joseph A Nagy Jr Purgatory is where Windows users go when they > Founder and CEO die so they can figure out Linux and ascend into > Joseph A Nagy Jr Enterprises whatever higher plane one belives in. > http://jan-jr-ent.homelinux.org Linux - The Choice of Every Generation > > C.S.S.: Construct Skilled in Sabotage > H.T.M.L.: Hazardous Troubleshooting and Mathematics Lifeform > http://www.brunching.com/cgi/cyborger.cgi?acronym=Linux > > -- > 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] config/performance problem on solaris 8
Jim, Good call! ftp suffered same performance. i never noticed a NFS problem to my other Sparc's because most of the time I was reading data off of the server. Now to determine where the problem is.. the only settings I have changed in /etc/system is adding: set tcp:tcp_conn_hash_size=32768 set hme:hme_adv_autoneg_cap = 0 set hme:hme_adv_100fdx_cap = 1 no other changes (such as ndd commands). I took the 3 above settings out of /etc/system, rebooted and ftp performance was over 10 meg/sec both directions, samba is now doing 7.5 m/s read from server and 8 m/s write to server. It seems strange that I can write to the samba shares faster than I can read?? both nic's come up as 100meg full duplex, so it must have been the tcp:tcp_conn_hash_size setting. at any rate, thank you both for helping me look at this problem! this kind of performance will keep me happy for a while! Any idea why tcp:tcp_conn_hash_size=32768 would have such negative affect? We have tweaked this setting on some of our larger servers at work (E4500's, E6500's and Sunfire 4800's) and it never had bad results.. - Original Message - From: "Jim Morris" <[EMAIL PROTECTED]> To: "Justin Richards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 7:39 PM Subject: Re: [SAMBA] config/performance problem on solaris 8 > Justin, > > What type of performance do you get when putting a file to the server > using FTP? Or NFS for that matter? If there is a networking issue > other than Samba, you should see slow write performance using those > protocols as well Samba will probably be close to NFS in speed, > with both being somewhat slower than FTP, which has less protocol > overhead (no filesystem involved). > > -- > Jim Morris ([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
[Samba] Current master browser = UKNOWN
Title: Current master browser = UKNOWN samba 2.2.5 We use an NT PDC for password authentication and an NT WINS server. Both of those systems are on a different subnet. I have setup remote announce = remote browse sync = Do I have to setup the SAMBA server as a master browser? I don't want to mess things up with the WINS servers. Thanks Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd "Making the Workplace Work Better" 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia +61 3 9243 2382 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 7:29 AM To: Justin Richards Cc: [EMAIL PROTECTED] Subject: Re: [SAMBA] config/performance problem on solaris 8 On Thu, Nov 28, 2002 at 02:24:16PM -0600, Justin Richards wrote: > I have tried your advice, infact I removed everything but the necessary > server information and still no difference. read speed still very good, > write speed still way below par. Ok, now you have to do some work to profile the system and see where the bottleneck may be. What is the maximum write speed onto the disk from a local process (ufs on Solaris is notoriously slow) ? Start there to find what your maximum should be and work back into Samba to find the bottleneck. System profile tools (top, vmstat, iostat) are useful here. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Changing samba account password from Windows XP
Hi all, I understand that the changing of samba account password can be achieved through the Windows 2000 client by means of CTRL-ALT-DEL and selecting "Change Password". How do we achieve such equivalent in Windows XP clients? Michael
Re: [SAMBA] config/performance problem on solaris 8
Justin, What type of performance do you get when putting a file to the server using FTP? Or NFS for that matter? If there is a networking issue other than Samba, you should see slow write performance using those protocols as well Samba will probably be close to NFS in speed, with both being somewhat slower than FTP, which has less protocol overhead (no filesystem involved). -- Jim Morris ([EMAIL PROTECTED]) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba3.0Alpha21- error on logging in to KDC
Hi, I have found the solution: Because any account that is present before an "DC promotion" requires that the password be changed such that the DES keys can be generated. As the "administraotr account" is created prior to DC promotion, I need to change the administrator password at least once after DC promotion. After changing the password, the problem solved. Thanks & Regards, Mandy -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 28 Nov 2002 [EMAIL PROTECTED] wrote: > Hi all, > > I have just downloaded and tested with the Samba3.0 Alpha21 Release. I want > to try to create the server account in the active directory, however, > when I logged in to the KDC by "/usr/kerberos/bin/kinit > [EMAIL PROTECTED]", but error returned as > > "KDC has no support for encryptions type while getting the initial > credentials" , then I can't go on for creating the acount. Make sure that default_tkt_enctypes = des-cbc-md5 des-cbc-crc is set in /etc/krb5.conf cheers, jerry -- Hewlett-Packard- http://www.hp.com SAMBA Team -- http://www.samba.org GnuPG Key http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE95gSQIR7qMdg1EfYRAu9oAJ4zXBuHiT7+yTpKavfgbf9hTCXD5ACcCTh9 boGFXzwXAalRqQuui9hLsuk= =ypQB -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Connection to a Remote XP Box
The one thing I missed...I'M behind a router (Linksys DSL/Cable 4-Port router). -- Joseph A Nagy Jr Purgatory is where Windows users go when they Founder and CEO die so they can figure out Linux and ascend into Joseph A Nagy Jr Enterprises whatever higher plane one belives in. http://jan-jr-ent.homelinux.org Linux - The Choice of Every Generation C.S.S.: Construct Skilled in Sabotage H.T.M.L.: Hazardous Troubleshooting and Mathematics Lifeform http://www.brunching.com/cgi/cyborger.cgi?acronym=Linux -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Connection to a Remote XP Box
What I've done so far: Studied man samba Connected to my parents XP box on my LAN (two different connections, even). root@omega-fleet root]# smbclient -L 64.131.112.121 added interface ip=192.168.1.11 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=192.168.1.10 bcast=192.168.1.255 nmask=255.255.255.0 session request to some.ip failed (Called name not present) session request to some failed (Called name not present) Password: Domain=[HOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment - --- IPC$ IPC Remote IPC D$ Disk Default share ADMIN$ Disk Remote Admin C$ Disk Default share Win98 SE (F) Disk Server Comment ---- CHRIS WorkgroupMaster ---- HOME CHRIS ping -c 10 some.ip PING some.ip (some.ip) from 192.168.1.11 : 56(84) bytes of data. 64 bytes from some.ip: icmp_seq=0 ttl=116 time=337.167 msec 64 bytes from some.ip: icmp_seq=1 ttl=116 time=279.711 msec 64 bytes from some.ip: icmp_seq=2 ttl=116 time=279.710 msec 64 bytes from some.ip: icmp_seq=3 ttl=116 time=259.711 msec 64 bytes from some.ip: icmp_seq=4 ttl=116 time=279.709 msec 64 bytes from some.ip: icmp_seq=5 ttl=116 time=279.691 msec 64 bytes from some.ip: icmp_seq=6 ttl=116 time=269.588 msec 64 bytes from some.ip: icmp_seq=7 ttl=116 time=259.712 msec 64 bytes from some.ip: icmp_seq=8 ttl=116 time=269.710 msec 64 bytes from some.op: icmp_seq=9 ttl=116 time=269.784 msec --- 64.131.112.121 ping statistics --- 10 packets transmitted, 10 packets received, 0% packet loss round-trip min/avg/max/mdev = 259.711/278.449/337.167/20.947 ms He's connected directly to the gateway. No firewall. mount -t smbfs -o username=somename,password=somepass //s.o.m.e.i.p/F /chris/ 21287: session request to s.o.m.e.i.p. failed (Called name not present) 21287: session request to s failed (Called name not present) 21287: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) SMB connection failed But the command works when I use: mount -t smbfs -o username=username,password=somepass //hal9001/C /linux/ ((box on lan)) What am I missing/doing wrong? -- Joseph A Nagy Jr Purgatory is where Windows users go when they Founder and CEO die so they can figure out Linux and ascend into Joseph A Nagy Jr Enterprises whatever higher plane one belives in. http://jan-jr-ent.homelinux.org Linux - The Choice of Every Generation C.S.S.: Construct Skilled in Sabotage H.T.M.L.: Hazardous Troubleshooting and Mathematics Lifeform http://www.brunching.com/cgi/cyborger.cgi?acronym=Linux -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
same issue with 2.2.7.. I didn't have this issue on my Sparc 20 that I replaced a few days ago with the U2. on the Sparc20, I would get about the same local read/write performance, but with samba, I would get about 3 meg read and 3 meg write. does samba have any known issues running on a 64bit version of solaris? that is the only other major change other than the faster hardware.. - Original Message - From: <[EMAIL PROTECTED]> To: "Justin Richards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 3:18 PM Subject: Re: [SAMBA] config/performance problem on solaris 8 > On Thu, Nov 28, 2002 at 02:39:14PM -0600, Justin Richards wrote: > > using iostat and doing some basic file testing such as: > > time dd if=/dev/zero of=./tst bs=8192 count=8192 > > time dd if=./tst of=/dev/null bs=8192 count=8192 > > > > my write speed was about 13.5 meg a sec, and read was 13 meg a sec. > > > > I didn't explain my disk set up before, let me do that briefly. > > > > I have a SUN 1010 fiber disk array, with 16 18gig drives and 10 9gig drives. > > The file systems I am doing my tests on are a stripe of 4 18gig drives. I > > also did some tests with a SUN 711 attached to the same system which has a > > 36 gig drive in it, with that I get right under 20 meg/sec read and right > > (711 is attached with fast-wide scsi) > > > > I'm going to recompile 2.2.7 and see if I get any different results.. > > Yes, you might find 2.2.7 is better - it does a much better > job of pretending to be a W2K server. > > The clients don't always write in nice 8k chuncks, which is why > it isn't as good as the raw numbers would seem. > > Jeremy. > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
On Thu, Nov 28, 2002 at 02:39:14PM -0600, Justin Richards wrote: > using iostat and doing some basic file testing such as: > time dd if=/dev/zero of=./tst bs=8192 count=8192 > time dd if=./tst of=/dev/null bs=8192 count=8192 > > my write speed was about 13.5 meg a sec, and read was 13 meg a sec. > > I didn't explain my disk set up before, let me do that briefly. > > I have a SUN 1010 fiber disk array, with 16 18gig drives and 10 9gig drives. > The file systems I am doing my tests on are a stripe of 4 18gig drives. I > also did some tests with a SUN 711 attached to the same system which has a > 36 gig drive in it, with that I get right under 20 meg/sec read and right > (711 is attached with fast-wide scsi) > > I'm going to recompile 2.2.7 and see if I get any different results.. Yes, you might find 2.2.7 is better - it does a much better job of pretending to be a W2K server. The clients don't always write in nice 8k chuncks, which is why it isn't as good as the raw numbers would seem. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0a21 adding machines to the domain
On Thu, 2002-11-28 at 09:41, Samba Guy wrote: > I got the login to work now, but I think I may have founda bug. When the > script added the machine account it gave it an RID of 3002, but when samba > goes looking for it it searches for RID 501. I modified the RID to 501 in > ldap and the logins work. Can someone explain this behavior to me? This is not a bug. We may need to review this before 3.0, but you must have a guest with RID 501 in some passdb backend. Do NOT set the machine account to that RID. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
Re: [Samba] Trusted domains with Samba 3.0alpha21?
On Fri, 2002-11-29 at 03:29, Nir Soffer wrote: > > Hi there! > > I appear to be having problems with trusted domains using 3.0a21. > > Using Samba as a member server, as user "nirs" on domain "Exanet-il" I > am unable to log on to a member server ("snow") who is a member of the > "Exanet-qa" domain. The "exanet-qa" is supposed to trust "exanet-il", > and it all worked with 2.2 . This is the relevant log snippet I can > find: > > [2002/11/28 18:26:05, 0] auth/auth_domain.c:domain_client_validate(425) > domain_client_validate: unable to validate password for user nirs in > domain EX > ANET-QA to Domain controller \\KENGURO. Error was > NT_STATUS_NO_SUCH_USER. > [2002/11/28 18:26:05, 2] auth/auth.c:check_ntlm_password(271) > check_password: Authentication for user [nirs] -> [nirs] FAILED with > error NT > _STATUS_NO_SUCH_USER > [2002/11/28 18:26:05, 3] smbd/sesssetup.c:do_map_to_guest(38) > No such user nirs [EXANET-IL] - using guest account > [2002/11/28 18:26:05, 3] smbd/sec_ctx.c:push_sec_ctx(255) > > > Anyone have any idea? Is this supposed to work in 3.0 now? That error is returned by the remote server. The event log on both DCs might be useful. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
Re: [Samba] samba 3.0a21+pdc+ldap+pam_ldap - add machines [Cananyone help?]
On Thu, 2002-11-28 at 08:20, Samba Guy wrote: > Well I installed a21 and I was able to add a machine account. The first > time it comes back bad password, then the second attempt it works. But > now when i restart and try to login it says it cant find the computer > account. Am I missing something(yes i have signorseal)? Here is the log > from the login attempt: You must either set 'passdb backend = ldapsam unixsam' or add the guest account to LDAP. The guest account must have a RID of 501. (unixsam does a similar thing, based on the 'guest user' in smb.conf and standard getpw*() calls). Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
Re: [Samba] How to disable anonymous account on SAMBA
On Thu, 2002-11-28 at 08:10, Tran Andy Contr 61 CS/SCBN wrote: > Hi all, > > I have tried to disable anonymous in smb.conf, by include the global: > > restrict anonymous = true > password server = * > encrypt passwords = yes > null passwords = no > > Buy when I ran the : ./smbclient -L myserver -N > I have this message: > > added interface ip=111.xx.xx.xx bcast=111.xx.xx.255 nmask=255.255.252.0 > Got a positive name query response from 111.xx.xx.xx( 111.xx.xxx.xx) > Anonymous login successful > > So how can I disable/block the anonymous account??? In Samba 3.0, 'restrict anonymous' has this behavior - set 'restrict anonymous = 2' for what you want. However, in Samba 2.2, this parameter has the behavior described in smb.conf. (i.e. not what you would expect - and not a security advantage). Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net signature.asc Description: This is a digitally signed message part
Re: [SAMBA] config/performance problem on solaris 8
using iostat and doing some basic file testing such as: time dd if=/dev/zero of=./tst bs=8192 count=8192 time dd if=./tst of=/dev/null bs=8192 count=8192 my write speed was about 13.5 meg a sec, and read was 13 meg a sec. I didn't explain my disk set up before, let me do that briefly. I have a SUN 1010 fiber disk array, with 16 18gig drives and 10 9gig drives. The file systems I am doing my tests on are a stripe of 4 18gig drives. I also did some tests with a SUN 711 attached to the same system which has a 36 gig drive in it, with that I get right under 20 meg/sec read and right (711 is attached with fast-wide scsi) I'm going to recompile 2.2.7 and see if I get any different results.. - Original Message - From: <[EMAIL PROTECTED]> To: "Justin Richards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 2:29 PM Subject: Re: [SAMBA] config/performance problem on solaris 8 > On Thu, Nov 28, 2002 at 02:24:16PM -0600, Justin Richards wrote: > > I have tried your advice, infact I removed everything but the necessary > > server information and still no difference. read speed still very good, > > write speed still way below par. > > Ok, now you have to do some work to profile the system and see > where the bottleneck may be. What is the maximum write speed > onto the disk from a local process (ufs on Solaris is notoriously > slow) ? Start there to find what your maximum should be and work > back into Samba to find the bottleneck. System profile tools > (top, vmstat, iostat) are useful here. > > Jeremy. > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
On Thu, Nov 28, 2002 at 02:24:16PM -0600, Justin Richards wrote: > I have tried your advice, infact I removed everything but the necessary > server information and still no difference. read speed still very good, > write speed still way below par. Ok, now you have to do some work to profile the system and see where the bottleneck may be. What is the maximum write speed onto the disk from a local process (ufs on Solaris is notoriously slow) ? Start there to find what your maximum should be and work back into Samba to find the bottleneck. System profile tools (top, vmstat, iostat) are useful here. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: samba digest, Vol 1 #1924 - 22 msgs
I had a similar issue on my Debian box. It seemed that setfacl didn't care for special characters. I changed the separator character to - (dash) instead of + or \ and it worked fine. Good luck! Tom Hallewell Radio Free Asia Washington DC USA > > (offlist replies discontinued due to increasing large number of people > involved) > > Gareth Davies wrote: > > Shouldn't you be setting setfacl -m DOMAIN+andrewfu:rwx myfile ? > > I tried that, but it didn't work: > > setfacl: Option -m: Invalid argument near character 1 > > I also tried escaping/quoting the + in various ways, replacing with \ or > /, etc. No joy. > > Tom Hallewell wrote: > > You should be able to find the server in W2K's server manager and > > confirm that it is a trusted member of the Domain. It sounds like > > smbd isn't linking to the acl libs-have you run ldd to see if > > you are linking to libacl.so.1? My recent problem was similar and I > > found that I wasn't compiling against the acl libs. > [snip various deb-src specific instructions] > > a) I presume I should be looking in Active Directory Users & Computers > -> domain -> Computers -> smbserver name ? > If so, it's listed as a WinNT 4 "workstation or server", as a member of > Domain Computers (we're in a mixed domain, not native, so that makes > sense to me). > > b) (grepped for brevity) > $ ldd /usr/local/samba/bin/smbd | grep -i acl > libacl.so.1 => /lib/libacl.so.1 (0x40015000) > > $ nm /usr/local/samba/bin/smbd | grep -i acl | wc > 88 244 2655 > > c) The Debian compilation instructions aren't used, since 2.2.7 isn't > available yet so I'm compiling from the tarball. However I used the > following configure line: > > configure --disable-nls --with-acl-support=yes > --with-configdir=/etc/samba --with-logfilebase=/var/log/samba > > That way I can have the Debian 2.2.3a-12 (or whatever it is) and the > 2.2.7 compiled ones use the same logfiles and config files. > > David Pullman wrote: > > A thought that occurs to me when looking at the two ways of > > displaying the name above is that I've heard that a W2K domain will > > record machine name more like a dns domain (with its emphasis on ddns > > and all that). So it makes me wonder if you have a W2K PDC. > > > > We're using an NT PDC still with a mix of W2K and NT 40 clients (we > > have a half dozen BDCs and about 500 windows clients, and a couple of > > hundred mixed UNIX platform clients). All of our file servers are > > samba on solaris. So we only see something like andrewfu > > (SMBSERVERNAME\andrewfu) on a NT security dialog acl. On a setfacl > > on the UNIX side it is stictly username, the UNIX systems have no > > idea about the NT domain. This is of course excepting the samba > > server itself, which has security = domain. This lets a user map a > > drive using their NT passwd, which might be different than their NIS > > passwd. > > The test machine here is a fairly standard / minimal install of W2k > server, which seems to be workign as expected otherwise (although I > haven't had much experience with W2k, and I don't have any other W2k > machines around to test. > > Your thoughts about the usernames seems to make sense, except, does that > mean that the Windows ACL dialog will _always_ show the UNIX username? I > would have thought that the username mapping would apply to that part > also. Although admittedly, if one UNIX name maps to more than one > Windows name, there would be problems... although it won't, in my case. > > Hopefully the mapping can be worked out in some way... the system will > have ~500 users, and given that 50% - 75% of them are > username-map-required style names, it would get mighty annoying mighty > fast, trying to map them in your head... > > (phew!) > > -- > ANDREW FUREY <[EMAIL PROTECTED]> - Sysadmin/developer for Terminus. > Providing online networks of Australian lawyers (http://www.ilaw.com.au) > and Linux experts (http://www.linuxconsultants.com.au) for instant help! > Disclaimer: http://www.terminus.net.au/disclaimer.html. GCS L+++ P++ t++ -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [SAMBA] config/performance problem on solaris 8
I have tried your advice, infact I removed everything but the necessary server information and still no difference. read speed still very good, write speed still way below par. - Original Message - From: <[EMAIL PROTECTED]> To: "Justin Richards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 1:33 PM Subject: Re: [SAMBA] config/performance problem on solaris 8 > You know the default tuning parameters we ship should just > work, especially in 2.2.7. > > Try removing the following paramters and seeing if it helps. > > Jeremy. > > On Thu, Nov 28, 2002 at 10:41:25AM -0600, Justin Richards wrote: > > [global] > > read size = 65535 > > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384 > > max connections = 150 > > write cache size = 65535 > > read prediction = yes > > max xmit = 65535 > -- > 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] config/performance problem on solaris 8
You know the default tuning parameters we ship should just work, especially in 2.2.7. Try removing the following paramters and seeing if it helps. Jeremy. On Thu, Nov 28, 2002 at 10:41:25AM -0600, Justin Richards wrote: > [global] > read size = 65535 > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384 > max connections = 150 > write cache size = 65535 > read prediction = yes > max xmit = 65535 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] no logon servers available
Hi, I am running samba 2.2.7 as a PDC with a couple of Win2k workstations participating in the domain. Once in a while of the workstations, I can't access shares on the other, getting a message "no logon servers available". Once I restart smbd and nmbd via /etc/init.d/smb stop start, the problem goes away immediately. I tried to search in samba logs, but there were no error messages. What might be the problem? Thanks, -- Nicholas Sushkin -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba & nfs...
On Thu, Nov 28, 2002 at 05:02:24PM +0100, Stefan Nordlander wrote: > Hi, I'm having problems with M$ Office files on an samba mounted fs. > Here's the deal. > > Server A is an NFS server holding the homes. (Irix 6.5.14) > Server B is the Samba server (Samba 2.2.2, kernel oplocks = no, Irix > 6.5.14) > > The homes are nfs-mounted on the Samba server (autofs), and all is well > until someone tries to open or create an Microsoft Office Document. > I suppose it has something to do with the (bloody) ~$blahblah.doc files > that are created by Office.. > The log.smbd gives: > > [2002/11/28 14:05:54, 0] locking/posix.c:(667) > posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1 > returned > [2002/11/28 14:05:54, 0] locking/posix.c:(669) > an No locks available error. This can happen when using 64 bit lock > offsets > [2002/11/28 14:05:54, 0] locking/posix.c:(670) > on 32 bit NFS mounted file systems. Errr - I'd guess what's happening is what the error says :-). And when I added that message I thought it'd be very clear :-(. The kernel Samba is running on supports 64 bit fcntl locks, however the underlying (NFS) filesystem that the files are being shared from only supports 32 bit locks. Thus the lock request is being denied. If these files are only being accessed by Windows users (the usual case for MS-Office files, unless you have OpenOffice on IRIX) then you can turn off the mapping down to POSIX locking by setting the parameter "posix locking = False". No harm done. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] DOMAIN SID in samba ldap
Hi ! Where the DOMAIN SID is stored when the LDAP backend is used ? I got a lot of errors (C19b) when trying to log to samba domain from NT WRK. I have found in FAQs and archives that this problem appear when domain sid will change after registering nt wrk in the domain. greetz gnu_is_not_unix --- Hackman i De Vito pokażą Ci, co znaczy prawdziwa miłość... do pieniędzy! SKOK w kinach - od 29 listopada < http://film.wp.pl/p/film.html?id=1782 > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] delay while browsing printer list
Hello, while using samba 2.2.7 with cups as print server for windows clients, every user gets a 15-20 seconds freeze of the complete desktop (mouse movement still works) when opening the printer list the first time after login. (If all printers are closed the can be reproduced). Has anyone else noticed this ? The workaround is to use a local printer instead and point its port from lpt1: to /servername/printershare. While this stops the delay it prevents the users from seeing print jobs of others, not quite what a print queue is good for. Known solutions available? Holger [printers] path = /samba/dtemp create mask = 0744 printable = yes browsable = no guest ok = yes use client driver = yes -- 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 WindowsXP
#1 I would print a job to a file on the client, transfer it manually to your server and view it with gv, vi, or whatever, to make sure it is a proper postscript file. Then, try to print it on the server to your printer. If all goes well, then you have to simply change the print command in your samba share to the print command you used to successfully print the file manually. Also, note there are different versions of postscript. Maybe your printer doesn't understand the version being sent to it. Joel On Thu, Nov 28, 2002 at 01:03:34PM -0500, VB wrote: > Hello all. I'm writing to inquire about two particular problems with Samba > and Windows XP that have me perplexed. > > Problem #1: > > I have a Solaris9 Samba 2.2.5 server, which acts as a print server to all > the other UNIX nodes on the network. This works fine, however, when I print > from WindowsXP, instead of getting the actual printout, I get the PostScript > source code, pages and pages of it. The printer is an HP LaserJet4ML/PS, so > it's PS capable. Under UNIX, it's set up as a PS printer on the print > server. I've already read the documentation under docs/Registry and applied > the WinXP_SignOrSeal.reg. > UNIX clients (IRIX, RedHat, HP-UX) print to it without any problems. > > Problem #2: > > I can not map a network drive on an IRIX 6.5.17f box, even though I can see > the share. I log in under XP with the identical login as I would under > IRIX. When I try to map the drive, I even pick "Connect using a different > user name" and type in my UNIX login and passwd, but it won't map the > network drive. I've applied the Win2000_PlainPassword.reg, with no results, > of course. The only thing that works right now is reading and writing to a > share that has "guest ok = yes" configured. > > Another two crucial pieces of information are that the PC bucket which runs > XP is part of a work group, as are the Samba servers. The reason being, I > use NIS and for a Samba server to be a domain controller, I would have to > maintain three separate passwd files. One for local system accounts, one > for NIS users, and one for Samba, which obviously defeats the whole purpose > having NIS. Does Samba not work with authenticating against NIS? I thought > this is handled at the OS level, and not by Samba. > > > Can anyone help with suggestions or experiences? > -- > 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] Netware copy fails
Affected: Various 2.x.x releases of samba on Solaris 2.6/8 and Netware 5.1 SP5. Problem: Unable to copy files from a mapped Netware drive to a mapped samba share on a PC desktop (W2K). Error: Several, but commonly "Cannot copy MYFILE. Access is denied. The source file may be in use" or "An unexpected network error has occurred". Has anyone seen similar? It appears that some sort of corruption happens to a file once it goes to a Netware server. This does not corrupt the data in the file, but prevents the file being able to be transferred to the samba share. For example, I have a W2K desktop with: S: mapped to a samba share. N: mapped to a Netware drive. I create a new file on my PC, call it 'MYFILE'. I can drop this file onto S:(samba) OK. Now, I can also drop this file onto N:(Netware) OK. I get the error if I try copying from N: to S: Now, if I then copy the file back from N: to my desktop, the file is broken! I can no longer copy the file from my PC hard drive to the S: drive. If, however, I do a "Save As" from within Word, I can ALWAYS save the file to S:. This happens with both IP and IPX connections to N:. If I ftp the broken file from my PC to the Solaris server, and then copy it back to my PC, it is "fixed". I can once again drag and drop it to the samba share. ftp both the "good" file and the "bad" file to Solaris. Run bdiff, and the files are identical. So, is it something in the inode information (or whatever there is in Netware) that is causing the problem? It would be good to hear from someone who has seen similar so I know I'm not imagining this! David David Stone Systems and Database Administrator The Macaulay Institute Craigiebuckler Aberdeen AB15 8QH Scotland, UK Tel: +(44) (0) 1224 498200 Ext 2131 Fax: +(44) (0) 1224 311556 e-mail: [EMAIL PROTECTED] http://www.macaulay.ac.uk/ -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba share is not writeable
Steve, thanks. Your tip makes mounting the share easier. I found what I believe was the problem, so I'll share it in case someone else has the same troubles, and browses upon this thread... I read somewhere that you can only set permissions on Win XP machines that are formatted to use the NTFS file system. Mine was FAT 32. So I changed my file system type to NTFS without data loss by executing: "convert c: FS:NTFS /V" And viola, whatever I say dmask is, it is! Regards, --James On Wed, 2002-11-27 at 21:18, James wrote: > Thanks for the speedy reply. Sorry if the word 'permissions' is > incorrect. > I did as you suggested below, making the appropriate changes for my > network. Then I executed > mount /home/samba > and it mounted the share without error, but it was still not writeable. > The directory changed from drwx-- (unmounted) to dr-xr-xr-x > (mounted). I added dmask=0700 th the line that I added in /etc/fstab > between "gid=500" and "credentials..." Then the mounted directory was > dr-x--. > > On Wed, 2002-11-27 at 20:45, Simeonidis, Steve wrote: > > I haven't played with permissions much but I've got the following > > line in my /etc/fstab file and it works fine. > > > > > > //abinidi/common/abinidi/common smbfs > > uid=500,gid=500,credentials=/etc/smbmount_passwd,workgroup=SGL-AUS,rw 0 0 > > > > The content of the smbmount_passwd is > > username = xxx > > password = xx > > > > owned by root. > > > > > > > > I hope that helps. > > > > Thanks > > > > Steve Simeonidis > > Network Engineer, Spherion Education > > Spherion Group Ltd > > > > 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia > > Phone: +61 3 9243 2382Fax:+61 3 9820 2010 > > Email: [EMAIL PROTECTED] > > > > The information contained in this email and any attachments to it: > > (a) may be confidential and if you are not the intended recipient, any > > interference with, use, disclosure or copying of this material is > > unauthorised and prohibited; and > > (b) may contain personal information of the recipient and/or the sender as > > defined under the Privacy Act 1988 (Cth). Consent is hereby given by the > > recipient(s) to collect, hold and use such information and any personal > > information contained in a response to this email, for any reasonable > > purpose > > in the ordinary course of Spherion's business, including forwarding this > > email internally or disclosing it to a third party. All personal > > information > > collected by Spherion will be handled in accordance with Spherion's Privacy > > Policy. > > If you have received this email in error, please notify the sender and > > delete > > it. > > > > > > > > -Original Message- > > From: James [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 28, 2002 12:30 PM > > To: [EMAIL PROTECTED] > > Subject: [Samba] Samba share is not writeable > > > > > > I am having difficulty with Windows shares mounted with smb on my linux > > machine. The mount directory will not have write permissions for anyone, > > no matter what. The mount directory that I use is /home/samba. It has > > 0700, or drwx-- permissions when it is not connected to Samba. It is > > owned by the user jhall, and the group root. When I mount it, if I use > > dmask 0777, I get dr-xr-xr-x. If I use dmask 0700, I get dr-x--, and > > so on. The subdirectories have the proper dmask, and thus are writeable. > > > > The shared directory on my Win XP Pro box is SharedDocs, and jhall has > > full permissions in this directory. > > > > Below is an example of my shell commands and subsequent output: > > > > [root@laptop jhall]# ls -l /home > > ##See that the dir samba is writable by jhall > > drwx-- 37 jhallusers4096 Nov 27 19:42 jhall > > drwx--2 jhallusers4096 Nov 27 11:09 samba > > drwx-- 21 stephie stephie 4096 Nov 27 14:58 stephie > > > > ##This is how I mount the share > > [root@laptop jhall]# mount -t smbfs -o > > user=jhall,uid=jhall,gid=root,dmask=0700,fmask=0777 //desktop/SharedDocs > > /home/samba > > Password: > > > > [root@laptop jhall]# ls -l /home > > ##Now it is mounted, and I can read and execute everything that > > ##is on my shared windows directory, but can only write things that > > ##are in a subdirectory, because they have the proper dmask of 0700 > > ##I am logged in as jhall when I try to write to the directory. > > drwx-- 37 jhallusers4096 Nov 27 19:42 jhall > > dr-x--1 jhallroot 4096 Nov 24 11:54 samba > > drwx-- 21 stephie stephie 4096 Nov 27 14:58 stephie > > > > [root@laptop jhall]# smbumount /home/samba > > ##I unmount the directory > > > > [root@laptop jhall]# ls -l /home > > ##And again have write permission > > drwx-- 37 jhallusers4096 Nov 27 19:42 jhall > > drwx--2 jhallusers4096 Nov 27 11:09 samba > > drwx-- 21 stephie stephie 4096 Nov 27 14:58 steph
[Samba] Samba and WindowsXP
Hello all. I'm writing to inquire about two particular problems with Samba and Windows XP that have me perplexed. Problem #1: I have a Solaris9 Samba 2.2.5 server, which acts as a print server to all the other UNIX nodes on the network. This works fine, however, when I print from WindowsXP, instead of getting the actual printout, I get the PostScript source code, pages and pages of it. The printer is an HP LaserJet4ML/PS, so it's PS capable. Under UNIX, it's set up as a PS printer on the print server. I've already read the documentation under docs/Registry and applied the WinXP_SignOrSeal.reg. UNIX clients (IRIX, RedHat, HP-UX) print to it without any problems. Problem #2: I can not map a network drive on an IRIX 6.5.17f box, even though I can see the share. I log in under XP with the identical login as I would under IRIX. When I try to map the drive, I even pick "Connect using a different user name" and type in my UNIX login and passwd, but it won't map the network drive. I've applied the Win2000_PlainPassword.reg, with no results, of course. The only thing that works right now is reading and writing to a share that has "guest ok = yes" configured. Another two crucial pieces of information are that the PC bucket which runs XP is part of a work group, as are the Samba servers. The reason being, I use NIS and for a Samba server to be a domain controller, I would have to maintain three separate passwd files. One for local system accounts, one for NIS users, and one for Samba, which obviously defeats the whole purpose having NIS. Does Samba not work with authenticating against NIS? I thought this is handled at the OS level, and not by Samba. Can anyone help with suggestions or experiences? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba-2.2.7-1.7.3 & Win XP home vs Pro?
Many thanks all for the help with the printer hookup problem. I can now print and use drives/shares on my samba server from my XP-home edition just fine. My problem now I think is a windows problem, but some of you have probably seen this or know how to avoid it in any case. My XP-Professional boxes seem unable to "find" my samba server for either network drives or printer. I note the following, hoping it might help you to help me. Hosts- OS - david- RedHat Linux 7.3 (samba server) dfr - XP - Home Edition fu - XP - Home Edition armando - XP - Professional Edition aichingf - XP - Professional Edition [root@david root]# nmblookup david querying david on 192.168.131.255 192.168.131.124 david<00> [root@david root]# nmblookup dfr querying dfr on 192.168.131.255 192.168.131.121 dfr<00> [root@david root]# nmblookup fu querying fu on 192.168.131.255 192.168.131.125 fu<00> [root@david root]# nmblookup armando querying armando on 192.168.131.255 querying armando on 192.168.130.255 name_query failed to find name armando [root@david root]# nmblookup aichingf querying aichingf on 192.168.131.255 querying aichingf on 192.168.130.255 name_query failed to find name aichingf Many thanks for your help. -- Dave -- David F. Reed -> email: [EMAIL PROTECTED] (for pgp key: [EMAIL PROTECTED] http://keys.pgp.com/ ) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cups
On Thu, 28 Nov 2002, Simon Chappell wrote: > Can anyone advise how to get Cups to survive a reboot with samba. > After Reboot both samba and cups are running but there are no samba preinters > unless I restart Samba. I have set links to rc3.d so that cups starts before > samba but still doesnt work. > > Any help would be greatly appreceiated You must start samba after cups is running. Your boot order is the problem. In the rc3.d directory your will find a script called Sxxname for each service. The xx for cupsd needs to be earlier than the one for smb (or samba). - John T. -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] system error 64, win xp and samba
On Thu, 28 Nov 2002, mlh wrote: > > Just so that it gets into the archives for > future googlers: > > If you get 'system error 64' on a windows xp > machine trying to connect to samba, then > make sure you have nothing running on port 445. > > I had an apache ssl instance running on that port. Really? The well known port for that is 443. > > Doh! Had to scratch my head a bit over it. > > XP doesn't actually need anything to be on 445, > it just gets confused and gives up if there is. Port 445 is the port Win2K and WinXP use for netbiosless SMB. It is the correct well known TCP port that Microsoft have registered for the purpose. - John T. -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] I want no browsing
On Thu, 28 Nov 2002, BEOI 7308 wrote: > Ok > But will the ntlm authentication still work ? smbd handles ALL authentication requests, not nmbd. - John T. > > Thanks > > John H Terpstra a écrit : > > > On Wed, 27 Nov 2002, Dan Am wrote: > > > > > AFAIR the parameter is called > > > BROWSABLE = no > > > > No. That just hides as share, but the samba server will still announce > > itself. > > > > If you want to NOT announce at all, then simply do NOT run nmbd. > > > > - John T. > -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
re: [Samba] Problems with Passwordchange from NT4 to samba 2.2.7
Just to mention the correct samba-version :-). Sorry. Kind regards, Andreas Hartmann -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[SAMBA] config/performance problem on solaris 8
Please help! I am getting awesome read performance from my samba server, but writing to it is terrible. My server configuration is SUN Ultra 2 dual 400 mhz CPUs (Solaris 8 64bit mode) 1 gig of ram and dual 100 meg network cards running samba 2.2.6 windows box is XP home, 1 gig AMD with 384 megs ram and 100 meg network card I can pull 6.5 meg/sec copying an ISO from the samba server to the windows box, but only about 500K sec writing back to the samba server from the same machine. for writes I am using a 400 meg avi file. Please look at my config and let me know where i screwed up! Thanks!! # Global parameters[global] workgroup = WRKGRP netbios name = SERVER server string = SAMBA File Server security = usr encrypt passwords = Yes restrict anonymous = Yes log level = 1 log file = /var/adm/samba/log.%m max log size = 256000 large readwrite = Yes deadtime = 15 max open files = 2000 read size = 65535 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384 lock dir = /var/tmp/samba_locks remote announce = yes remote browse sync = yes socket address = 192.168.0.1 hosts allow = 192.168.0. max connections = 150 write cache size = 65535 strict locking = no strict sync = no sync always = no read prediction = yes max xmit = 65535 read raw = yes write raw = yes oplocks = on
[Samba] Trusted domains with Samba 3.0alpha21?
Hi there! I appear to be having problems with trusted domains using 3.0a21. Using Samba as a member server, as user "nirs" on domain "Exanet-il" I am unable to log on to a member server ("snow") who is a member of the "Exanet-qa" domain. The "exanet-qa" is supposed to trust "exanet-il", and it all worked with 2.2 . This is the relevant log snippet I can find: [2002/11/28 18:26:05, 0] auth/auth_domain.c:domain_client_validate(425) domain_client_validate: unable to validate password for user nirs in domain EX ANET-QA to Domain controller \\KENGURO. Error was NT_STATUS_NO_SUCH_USER. [2002/11/28 18:26:05, 2] auth/auth.c:check_ntlm_password(271) check_password: Authentication for user [nirs] -> [nirs] FAILED with error NT _STATUS_NO_SUCH_USER [2002/11/28 18:26:05, 3] smbd/sesssetup.c:do_map_to_guest(38) No such user nirs [EXANET-IL] - using guest account [2002/11/28 18:26:05, 3] smbd/sec_ctx.c:push_sec_ctx(255) Anyone have any idea? Is this supposed to work in 3.0 now? thanks, Nir. -- Nir Soffer -=- Software Engineer, Exanet Inc. -=- "The poor little kittens; They lost their mittens; And now you all must die. Mew, Mew, Mew, Mew, And now you all must die." www.sluggy.com, 24/10/02 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] CUPS installation with SAMBA
I installed samba via rpm and I want to install cups using the source code, anyone knows what are the procedure to that ? ps- CUPS will works with samba.. RedHat 7.2 Samba 2.2.5 __ Venha para a VilaBOL! O melhor lugar para você construir seu site. Fácil e grátis! http://vila.bol.com.br -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Problems with Passwordchange from NT4 to samba 2.7.7
Hello all, I've got a little problem to change the user-password from NT4 on a samba-server (RedHat 8.0) - but I can get without any problem shares on that server with that user and password. Why does samba say, I would supply a wrong password to my userid? What am I doing wrong? Thank you for your tips, kind regards, Andreas Hartmann smb.conf # Global parameters [global] workgroup = FAGCID3 server string = Samba Server fagcid3 encrypt passwords = Yes min passwd length = 8 obey pam restrictions = Yes pam password change = no passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* username map = /etc/samba/smbusers password level = 16 username level = 16 unix password sync = No log level = 2 log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 character set = ISO8859-15 domain admin group = root,user2 logon script = %U.cmd logon path = \\%L\Profiles\%U logon drive = h: domain logons = Yes os level = 64 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes create mask = 0777 directory mask = 0777 inherit acls = Yes printing = cups map system = Yes map hidden = Yes csc policy = disable [wintransl] comment = Testshare path = /home/samba/wintrans valid users = @wintrans force group = wintrans read only = No Log: [2002/11/28 16:27:34, 2] smbd/password.c:pass_check_smb(575) pass_check_smb failed - invalid password for user [daahb] ^ [2002/11/28 16:27:34, 1] rpc_server/srv_pipe.c:api_pipe_ntlmssp_verify(366) api_pipe_ntlmssp_verify: User D055812\daahb from machine D055812 failed authentication on named pipe samr. [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid [2002/11/28 16:27:34, 2] smbd/password.c:pass_check_smb(575) pass_check_smb failed - invalid password for user [daahb] [2002/11/28 16:27:34, 1] rpc_server/srv_pipe.c:api_pipe_ntlmssp_verify(366) api_pipe_ntlmssp_verify: User D055812\daahb from machine D055812 failed authentication on named pipe samr. [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid [2002/11/28 16:27:34, 0] lib/util_sec.c:assert_gid(114) Failed to set gid privileges to (0,99) now set to (0,-1) uid=(0,99) [2002/11/28 16:27:34, 0] lib/util.c:smb_panic(1094) PANIC: failed to set gid -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba & nfs...
Hi, I'm having problems with M$ Office files on an samba mounted fs. Here's the deal. Server A is an NFS server holding the homes. (Irix 6.5.14) Server B is the Samba server (Samba 2.2.2, kernel oplocks = no, Irix 6.5.14) The homes are nfs-mounted on the Samba server (autofs), and all is well until someone tries to open or create an Microsoft Office Document. I suppose it has something to do with the (bloody) ~$blahblah.doc files that are created by Office.. The log.smbd gives: [2002/11/28 14:05:54, 0] locking/posix.c:(667) posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1 returned [2002/11/28 14:05:54, 0] locking/posix.c:(669) an No locks available error. This can happen when using 64 bit lock offsets [2002/11/28 14:05:54, 0] locking/posix.c:(670) on 32 bit NFS mounted file systems. [2002/11/28 14:06:06, 0] locking/posix.c:(667) posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1 returned [2002/11/28 14:06:06, 0] locking/posix.c:(669) an No locks available error. This can happen when using 64 bit lock offsets [2002/11/28 14:06:06, 0] locking/posix.c:(670) on 32 bit NFS mounted file systems. [2002/11/28 14:06:32, 0] locking/posix.c:(667) posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1 returned [2002/11/28 14:06:32, 0] locking/posix.c:(669) an No locks available error. This can happen when using 64 bit lock offsets [2002/11/28 14:06:32, 0] locking/posix.c:(670) on 32 bit NFS mounted file systems. Does anyone have any idea what the h£$% is going on? Thanks! :wq //shoe - UNIX _IS_ user friendly, its just picky about who its friends are... -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] RPMs of alpha21 for Mandrake 9.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have built RPMs for Mandrake 9.0 that will parallel install with an existing samba-2.2.x installation (you should be running 2.2.7-2.1mdk if your machine is up-to-date). RPMS here: http://ranger.dnsalias.com/mandrake/mandrake9.0/samba-3.0alpha21/ The srpm should build cleanly on anything from Mandrake 7.2 and up, but I don't have time at the moment to build for other releases. No testing besides "it installs and runs" Regards, Buchan - -- |--Another happy Mandrake Club member--| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE95jhOrJK6UGDSBKcRAlG8AKCjIb/Tu0+iYYaXjRAg4FtGhrHf9gCfdWVs eAxYNQOD1gUMFnyW5l7Gd+g= =Pv9c -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Installing
Hi I have downloaded samba latest version and am trying to install on our Alpha running Tru64 Unix version 5a. When I run the configure script in the source directory I get the message Configure: error: summary failure. aborting configure On reading the config.log file It tells me It can't file the include files. but these are in the /usr/include/sys directory. I have also used the ./confilgure --includedir=/usr/include/sys but still get the same message. Any ideas Mank thanks Willie O'Brien ** Important Notice The information in this e-mail and any files transmitted with it are confidential and may also be legally privileged intended solely for the individual or entity to whom they are addressed and are not intended to be relied upon by any person without subsequent written confirmation of its contents. The content of this e-mail is the personal view of the sender and does not represent the advice, views or opinion of the Office of Public Works. Accordingly, the Office of Public Works disclaims all responsibility and accepts no liability (including in negligence) for the consequences of any person acting, or refraining from acting, on such information prior to the receipt by those persons of subsequent written confirmation. In particular (but not by way of limitation) the Office of Public Works disclaims all responsibility and accepts no liability for any e-mails or their attachments which are defamatory, offensive, racist or which in any other way are in breach of an individuals rights, including breach of confidence, privacy or other rights. If you have received this e-mail message in error, inform us immediately at [EMAIL PROTECTED] and delete it and all copies from your system. This footnote also confirms that this e-mail message has been checked for the presence of computer viruses. ** -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing problem
My comments may relate only to my printing software, lprng. That printing share looks mighty suspect. [printers] is a special share name. I forget what it does exactly, but it lets you load all your printers in /etc/printcap with just one share definition, or some such (better read about THAT.) You need to have a share just for your printer just for windows clients. Here is what one of mine looks like: [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;\ 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 share modes = No I don't load the drivers from my server. This printer (lp) definition will not be the same as the one used for local printing because this printer queue (lp, as invoked with the lpr command) has no print filter referenced in /etc/printcap, since windows filters its own jobs. Printing with samba is simple if you keep just two things in mind. 1. The windows clients transfers the job to the spool directory specified in the share. 2. samba invokes the print command to print that job. Some other points to keep in mind: %p and %s refer to the printer name and the job name, respectively. %J refers to the banner page name, which defaults to the file name from the windows client. This is very handy. You display the banner page name in the printer queue with the -J parameter with the lpr command. The other thing to know about is /etc/lpd.perms. If you suspect that is your problem, and who wouldn't after trying to read the documentation for that thing (if you ever want to write a GUI for a configuration file, consider that one) just put one line into it: DEFAULT ACCEPT This will let any client manipulate the printing queue, which may be good, bad, or indifferent, depending on your network setup. One more trick. If you can't get the printer drivers for your printer working right in windows, and this can be a problem, set up your printer share to point to a printer queue which can handle postscript files, which should be most printer queues in linux. Then, on the windows client side, set up the printer with a generic postscript printer, HP laserjet III plus or some such seems to work fine. This approach has solved all my printing problems with windows clients. Joel On Thu, Nov 28, 2002 at 11:50:36AM +0700, Jean-Francois Pelletier wrote: > Hi, > > First of all, thanks for all the replies that I got a couple of weeks > ago about another question; it really helped me understanding the issue. > > Now I'm installing a printer on my Linux server (RH 7.3 with Samba > 2.2.6); I can print from my Linux computer, and even see the printer > from my XP computer, but I can't print from XP. > > Here's my smb.conf: > > [global] > netbios name = Maggie > security = share > printing = bsd > printcap name = /etc/printcap > load printers = yes > [public] > path = /usr/public > browseable = yes > guest ok = yes > read only = no > [printers] > comment = Brother HL-1650 > security = share > path = /var/spool/lpd/Brother_HL-1650 > browseable = no > public = yes > guest ok = yes > writable = no > printable = yes > use client driver = yes > > > Like I said, from the Linux server, everything is OK and I can print. > When I go to my XP computer, and I click "Add a printer", XP can find my > printer by browsing the network, and the installation is without any > glitches. I can see the printer properties but when I try to print the > test page, I got an error message: "Test page failed to print.". If I > try to print from WordPad, it says that it's printing for a fraction of > a second, but then says also "Unable to print". > > Thanks in advance! > > Jean-Francois Pelletier > > > -- > 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] Connection failed with smbclient
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks, I looked through the archives, but didn't see anything like this. I have a network with a mix of Win95, Win98, and WinME clients (and one Linux system w/ Samba server version 2.2.2). All systems belong to a workgroup called "Oteima". All Win95 and Win98 clients see all other systems (including the Linux box) in one list. However, a couple of systems (notably the WinME systems) see _two_ Oteima workgroups. Problem is, the Samba server, using nmblookup can find _all_ systems, but using smbclient can only connect to the Windoze systems listed in one Oteima workgroup, but get a connection failed when trying to connect to systems in the other Oteima workgroup. I very methodically checked using nmblookup and sbmclient whether I could see/connect to every system. [root@appgen root]# nmblookup caja querying caja on 192.168.5.255 192.168.5.42 caja<00> [root@appgen root]# smbclient //caja/c added interface ip=192.168.5.50 bcast=192.168.5.255 nmask=255.255.255.0 Connection to caja failed if I could resolve _why_ some Win systems have _two_ Oteima workgoups (one to which I can connect to _all_ listed systems and one to which I cannot connect to any) I could resolve this dilemna. I've tried: changing workgroup name (all lowercase, all uppercase, mixed upper/lower case); encrypt passwds yes/no. Changing protocol mins and maxs (from CORE to NT1). I'm running out of ideas. Any and all suggestions welcome. David A. Bandel - -- Focus on the dream, not the competition. -- Nemesis Racing Team motto -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE95iiG3uVcotqGMQcRAsIbAKCvG630vfFHmod71Hyh+IpkUGfVQwCgwuog nbjz45yzhN5ygZ3HDFPMmJA= =xJ+8 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] problem with smbc_init in libsmbclient
Hi, I have attached a very simple c program, that first does a smbc_init and then a smbc_opendir. The problem: smbc_init return an error (No such file or directory) and then i get a segmentation fault. I don't know what possibly could be the problem. Maybe some of you guys have an idea. I think i have libsmbclient from samba 2.2.7(compiled on my own system) and the rest of the samba stuff is the one that comes with mandrake 8.2. Thanks, Razvan Rotaru /* Unix SMB/Netbios implementation. Version 2.0 SMB client library test program Copyright (C) Andrew Tridgell 1998 Copyright (C) Richard Sharpe 2000 Copyright (C) John Terpsra 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #include void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen, char *username, int unmaxlen, char *password, int pwmaxlen) { char temp[128]; fprintf(stdout, "Need password for //%s/%s\n", server, share); fprintf(stdout, "Enter workgroup: [%s] ", workgroup); fgets(temp, sizeof(temp), stdin); if (temp[strlen(temp) - 1] == 0x0a) /* A new line? */ temp[strlen(temp) - 1] = 0x00; if (temp[0]) strncpy(workgroup, temp, wgmaxlen - 1); fprintf(stdout, "Enter username: [%s] ", username); fgets(temp, sizeof(temp), stdin); if (temp[strlen(temp) - 1] == 0x0a) /* A new line? */ temp[strlen(temp) - 1] = 0x00; if (temp[0]) strncpy(username, temp, unmaxlen - 1); fprintf(stdout, "Enter password: [%s] ", password); fgets(temp, sizeof(temp), stdin); if (temp[strlen(temp) - 1] == 0x0a) /* A new line? */ temp[strlen(temp) - 1] = 0x00; if (temp[0]) strncpy(password, temp, pwmaxlen - 1); } int main(int argc, char *argv[]) { int err, fd, dh; //char dirbuf[512]; //char *dirp; struct stat st1, st2; struct smbc_dirent dirp[128]; char path[]="smb://cherban/"; err = smbc_init(auth_fn, 10); if (err < 0) { fprintf(stderr, "Initializing the smbclient library : %s\n", strerror(errno)); } dh=smbc_opendir(path); if (dh <0) { fprintf(stderr, "Could not open directory: %s: %s\n",path,strerror(errno)); exit(1); } /* Now, list those directories, but in funny ways ... */ /*if ((dirc = smbc_getdents(dh1,dirp,sizeof(struct smbc_dirent)*128)) < 0) { fprintf(stderr, "Problems getting directory entries: %s\n", strerror(errno)); exit(1); } */ /* Now, process the list of names ... */ /*fprintf(stdout, "Directory listing, size = %u\n", dirc); while (dirc > 0) { dsize = ((struct smbc_dirent *)dirp)->dirlen; fprintf(stdout, "Dir Ent, Type: %u, Name: %s, Comment: %s\n", ((struct smbc_dirent *)dirp)->smbc_type, ((struct smbc_dirent *)dirp)->name, ((struct smbc_dirent *)dirp)->comment); dirp += dsize; (char *)dirc -= dsize; } */ return 0; }
Re: [Samba] IP address change
You have posible two problems: 1. Change ip is dificultly of more systems not only samba... you must check your firewall, router firewall , samba conf host allow , etc hosts allow 2. If you use wins server or domain you must check or stop samba and delete samba cache files to samba recreate databases. - Original Message - From: "Tombs, Donna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 2:23 PM Subject: [Samba] IP address change > A while back samba was installed on a machine with IP address 10.1.0.19, > default router 10.1.0.1. The IP address was recently changed to 10.2.0.57, > default router 10.2.0.1. The share used to be available across our network > as specified by hosts allow. However, since the IP Address change ONLY 10.2 > machines can see the share. It is no longer available to the whole network. > The server itself can be seen without any difficulty from the whole network, > either using the new IP address or the hostname. It can also be seen thru NT > as a sharable machine but when you try to connect to it from anywhere other > than 10.2 you get a 'Network path was not found' message. > Does samba support changing the IP address in this way? > > > Donna > > > > Donna Tombs > > IT Manager OST > > Information Technology Section > > East Renfrewshire Council > > Phone: 0141 577 3456 > > Fax: 0141 577 3421 > > mailto:[EMAIL PROTECTED] > > > > > > > > > > > ** > This e-mail and any files transmitted with it are not necessarily the view of East Renfrewshire Council. It is intended only for the person or entity named above. If you have received this e-mail in error please notify the author by replying to this e-mail and then erasing the e-mail from your system. If you are not the intended recipient, you are hereby notified that any use, review, dissemination, distribution or copying of the e-mail is strictly prohibited. > East Renfrewshire Council may monitor outgoing and incoming e-mails. > This footnote also confirms that this e-mail message has been swept > for the presence of computer viruses. > ** > > -- > 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] Installing Samba
Title: Installing Samba While trying to install samba on our Unix server, step 1: building Binaries. I have the following error message while executing the command "./configure" "checking configure summary... WARNING: No automated network interface determinat ion ERROR: no seteuid method available configure: error: summary failure. Aborting config" How can I result this error? Best regards, Damien Decoene Administrator Netagco AVR Meensesteenweg 545 8800 Roeselare Tel: 051/25.98.74 Fax: 051/22.95.61 e-mail: [EMAIL PROTECTED]
[Samba] IP address change
A while back samba was installed on a machine with IP address 10.1.0.19, default router 10.1.0.1. The IP address was recently changed to 10.2.0.57, default router 10.2.0.1. The share used to be available across our network as specified by hosts allow. However, since the IP Address change ONLY 10.2 machines can see the share. It is no longer available to the whole network. The server itself can be seen without any difficulty from the whole network, either using the new IP address or the hostname. It can also be seen thru NT as a sharable machine but when you try to connect to it from anywhere other than 10.2 you get a 'Network path was not found' message. Does samba support changing the IP address in this way? > Donna > > Donna Tombs > IT Manager OST > Information Technology Section > East Renfrewshire Council > Phone: 0141 577 3456 > Fax: 0141 577 3421 > mailto:[EMAIL PROTECTED] > > > > ** This e-mail and any files transmitted with it are not necessarily the view of East Renfrewshire Council. It is intended only for the person or entity named above. If you have received this e-mail in error please notify the author by replying to this e-mail and then erasing the e-mail from your system. If you are not the intended recipient, you are hereby notified that any use, review, dissemination, distribution or copying of the e-mail is strictly prohibited. East Renfrewshire Council may monitor outgoing and incoming e-mails. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses. ** -- 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 creating machine account for domain logon
Title: Problem with creating machine account for domain logon in smb.conf use "add user script" option . -Message d'origine-De : Ernst Cozijnsen [mailto:[EMAIL PROTECTED]]Envoyé : jeudi 28 novembre 2002 10:02À : [EMAIL PROTECTED]Objet : [Samba] Problem with creating machine account for domain logon Hi, If i try to let my laptop logon to my samba domain i see in the logfiles that there must me a machine account in the /etc/passwd file. So i created manualy "useradd $" This works fine and i'm able to log on to the domain. Why doesn't create samba this machine account automaticly?? do u need a special option for that?? greetz, Ernst Cozijnsen -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: AW: [Samba] "attrib +R myowndir" fails to write-protect my own dir
>On November 28, [EMAIL PROTECTED] said: >> actually a second attempt at drawing your attention to the fact >> that compliance with M$ quirks and kinks is not something to be >> ashamed of but rather reason to be proud. > >I think you'll find that the Samba team are quite familiar with this >opinion, especially in the context of the Samba TNG fork :) > >Waider. >-- >[EMAIL PROTECTED] / Yes, it /is/ very personal of me. Ron babe, TNG fork was a preventable disaster. I think the problem is a lot of us are sitting on our thumbs and letting Jeremy and the band pick out all the problems for us. When schedules get too tight and there are different priorities there's always a gang leader for a schism. That it plays into the hands of the great Satan duplicating the effort and splitting the community is a matter of grave concern for all. M$ will underbid any serious attempt at a mass migration to open source with hefty rebates, and there's little we can do against that except strive to be a serious alternative and not a bunch of fundamentalists picking at articles of faith. What's wrong about admitting that the u-g-o octals were too narrow a view of security and accepting that a businessperson may be a visionary in her own right by just thinking a little out of *nix box? For open source to have a chance, it needs to be ahead of the pack and you can't do that before you catch up. A little rant helps relieve the tension of an admin's day of work. Bye now, Dragan PS: On a different note: Ron, do you have a constructive comment on my posting '"Special" link folders - Readonly attrib', Tue Nov 26 20:53:28 2002, or are you just a kibitzer? _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cups
On 2002-11-28 at 10:22 + Simon Chappell sent off: Can anyone advise how to get Cups to survive a reboot with samba. After Reboot both samba and cups are running but there are no samba preinters unless I restart Samba. I have set links to rc3.d so that cups starts before samba but still doesnt work. you simply need to make sure that cupsd is being *fully* started (not just starting in background) before samba is being started. I don't know much about the RH init script internals, so I can't tell you what to do exactly. On SuSE Linux it works out of the box. On RH, try changing the order the scripts are executed and make sure the cupsd is fully up. A little sleep might help in the script, too. Bjoern msg09691/pgp0.pgp Description: PGP signature
Re: [Samba] Cups
Perhaps you are using an older version of cups (1.1.15 or earlier). In this versions the daemon puts itself to background before having loaded all printers (including ppds, filters...). This leads to the situation, that samba may request the list of printers before cups is ready to serve it. That's the reason, why samba gets the list after a restart. Solution: wait a little time after cups has been started or (better) use a current release of cups (1.1.16 or cvs). bye On Thursday 28 November 2002 11:22, Simon Chappell wrote: > Can anyone advise how to get Cups to survive a reboot with samba. > After Reboot both samba and cups are running but there are no samba > preinters unless I restart Samba. I have set links to rc3.d so that cups > starts before samba but still doesnt work. > > Any help would be greatly appreceiated > > > > Regards > > > > Simon > > > - > This mail sent through IMP on Redhat 8.0 and Qmail with Ldap. -- Martin Zielinski [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] CUPS cancel print problem
Strange problem here, whenever a job is selected by the user to delete, it disappears from the print queue visible from Windows (after press F5), but still remains in the cups queue. I've seen some mention of using disable spoolss, to fix problems like this, however, we have the printer drivers on the samba box. The configuration below is from our sandbox server, sandbox. The domain master is a Samba server. The sandbox is runing SuSE 8.1, CUPS 1.1.15 and Samba 2.2.6 This also happens on our production server SuSE 7.3 CUPS 1.1.15 and Samba 2.26 Thanks, Paul [global] workgroup = MODUS netbios name = sandbox server string = IT Test server os level = 32 time server = yes unix extensions = yes encrypt passwords = yes log level = 1 syslog = 0 printing = CUPS printcap name = CUPS socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY wins support = no veto files = /*.eml/*.nws/riched20.dll/*.{*}/ map to guest = Bad User passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Re-enter*new*password* %n\n *Password*changed* unix password sync = Yes preferred master = no domain master = no security = domain password server = * [homes] comment = Home Directories valid users = %S browseable = no writeable = yes create mask = 0640 directory mask = 0750 [printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba3.0Alpha21- error on logging in to KDC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 28 Nov 2002 [EMAIL PROTECTED] wrote: > Hi all, > > I have just downloaded and tested with the Samba3.0 Alpha21 Release. I want > to try to create the server account in the active directory, however, > when I logged in to the KDC by "/usr/kerberos/bin/kinit > [EMAIL PROTECTED]", but error returned as > > "KDC has no support for encryptions type while getting the initial > credentials" , then I can't go on for creating the acount. Make sure that default_tkt_enctypes = des-cbc-md5 des-cbc-crc is set in /etc/krb5.conf cheers, jerry -- Hewlett-Packard- http://www.hp.com SAMBA Team -- http://www.samba.org GnuPG Key http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE95gSQIR7qMdg1EfYRAu9oAJ4zXBuHiT7+yTpKavfgbf9hTCXD5ACcCTh9 boGFXzwXAalRqQuui9hLsuk= =ypQB -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem authenticating against a W2K server
On Thu, Nov 28, 2002 at 10:30:17AM -, Gareth Davies wrote: > From: "Ingimar Robertsson" <[EMAIL PROTECTED]> > > I'm having a problem letting a Samba server (MYSAMBA) authenticate users > > (using "security = domain" and a "password server = MYPDC") against a > > Windows 2000 PDC (MYPDC). The Windows 2000 machine seems (I'm not 100% > > > Add the machine to the domain on the Win2k PDC using AD. > > Then smbpasswd -j DOMAINNAME -r PDCIP -U Administrator%password > > Then wbinfo -A Administrator%password > > Then it should work fine. > > I'm kinda getting tired of this, can't we redo the docs for Winbind LOL I agree. I had already stumbled upon this -A switch to wbinfo and then read the winbindd man file and it states: "winbindd is a daemon that provides a service for the Name Service Switch capability that is present in most modern C libraries." This sounded to far from what I was trying to do. :-) I'll try setting up the winbindd and using wbinfo -A. Thanks for the help! Best regards, Ingimar -- Ingimar Robertsson, Systems Administrator EMAIL: [EMAIL PROTECTED] Skyrr Ltd, Iceland Information Management TEL: +354-5695100 Armuli 2, 108 Reykjavik, ICELANDFAX: +354-5695128 http://www.skyrr.is/legal/disclaimer.txt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: AW: [Samba] "attrib +R myowndir" fails to write-protect my own dir
On November 28, [EMAIL PROTECTED] said: > actually a second attempt at drawing your attention to the fact > that compliance with M$ quirks and kinks is not something to be > ashamed of but rather reason to be proud. I think you'll find that the Samba team are quite familiar with this opinion, especially in the context of the Samba TNG fork :) Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. kate says, "no, there's a lot of red in heliotrope." kate says, "we're talking like #993366 or so" -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] still no sol. !!!
dear sir hello, well i did all my effort to run samba with Xp but its not working, i think it is not compitable with Xp and still getting the same problem... ,so do you have any other opinion or solution about it?? need your view about it... pls help, regards, bimal On Sat, 16 Nov 2002 bimal pandit wrote : dear sir/madam hello i am trying to run a samba server with linux 7.3 and win xp but loaded rpm of samba of linux 7.2 the thing is that i am able to see the workgroup in windows xp but the contents of it are invisible what could be the prob. the log file is showing following errors 1) smbd/connection.c:yield_connection(62) yield_connection:tdb_delete failed with error record does not exist 2) lib/access.c:check_access(320) denied connection from 10.10.10.10( ip of xp machine) the ip of my linux m/c is 10.10.10.12 can anyone help me?? looking for your quick response. with thanks bimal -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
AW: [Samba] "attrib +R myowndir" fails to write-protect my own dir
Hi Jeremy, I'll look up "dosmode.c" and shall try to define a patch proposal for either "dos filemode" or "overrule readonly dirs". But how does your reply explain the effect of "inherit permissions"? If you recall, with inheritance enabled regular files can have A, H and R flag set and cleared whereas disabling inheritance disables A and H flags for them leaving only R-flag manipulable. Any clue? I'm flabbergasted at the quantity of queries you and your colleagues manage to process on a daily basis. My present thread is actually a second attempt at drawing your attention to the fact that compliance with M$ quirks and kinks is not something to be ashamed of but rather reason to be proud. The abidance by the POSIX rules should not stand in the way of the usefulness of such a nice suite as Samba. Samba penetration is at stake. My latest installation runs like a scream, reduces network traffic and WINS queries to adjacent domains but it gets bad-mouthed for the failure to replicate write-protected directory properly across logins, as I reported in an ignored mail just a day earlier. Not a big deal, but sufficient to stall the plans to extend the domain of Samba influence to something like 50-60 thousand other clients in this enterprise. Of course, clueless admins are even greater source of frustration. So can you skim that earlier post of mine headed '"Special" link folders - Readonly attrib', Tue Nov 26 20:53:28 2002, and compose a terse flame bait? Dragan -Ursprüngliche Nachricht- Von: Dragan Krnic [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 27. November 2002 23:21 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: [Samba] "attrib +R myowndir" fails to write-protect my own dir -- On Wed, 27 Nov 2002 21:48:21 jra wrote: >On Wed, Nov 27, 2002 at 10:33:11PM +0100, Dragan Krnic wrote: >> I'm so glad there are kind souls at this time of night. Wait, it >> might be day at your place. Good day! > >Yep, it's 1:30 in the afternoon here in California :-). > >> I don't see a contradiction in setting Readonly flag on one's own >> directories and then creating files in them anyways. It's very much >> like any overruling root privilege. It's just a flag, Jeremy, it's >> not our saviour's gospel. Bill knows we don't march over dead bodies >> and he's taking unfair advantage of it. >> >> I propose a new smb.conf feature for 3.0: >> >>[homes & especially profiles] >> overrule readonly dirs = Yes/No >> >> Default is "No", but in exceptional cases, like on almost every samba >> server, it may be enabled to write into one's own write-protected >> directories, salvation be damned. > >The flag "dos filemode" is usually used for this purpose, I'll >investigate using it. > >Thanks, > > Jeremy. > Yeah, it was deprecated and abolished somewhere between 2.0.7 and 2.2.7, donno exactly. Resurrect it, please. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] approximate net rpc vampire HOWTO, as promised
Hi Folks, as promised, here's what I did to get net rpc vampire working. There's a question at the bottom that someone might be able to answer for me. If the detail below is sane, I'll tidy it up some and submit it as a proper HOWTO. If not, please tell me where I'm being insane :) == Using 'net rpc vampire' to clone a PDC (user & machine accounts) 0. Caveats: this is samba 3 from CVS, NT4 Server as PDC, and Red Hat Linux 7.3 as my testbed. 1. Install Samba 3 from CVS I've installed it in /usr/local/samba-3, with the following options to configure: ./configure --prefix=/usr/local/samba-3 --with-sam -with-tdbsam --with-smbmount --with-winbind make make install 2. Create netlogon directory and samba-related groups mkdir -p /usr/local/samba-3/bdc/netlogon groupadd machines groupadd samba 3. Set up as a BDC. This is my basic smb.conf: [global] workgroup = YOURDOMAIN security = domain password server = * encrypt passwords = yes # Backend passdb backend = tdbsam_nua non unix account range = 1000-5000 sam backend = tdbsam_nua domain logons = yes add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false '%u' add user script = /usr/sbin/adduser -n -g samba -c "Samba User" -d /dev/null -s /bin/false '%u' add group script = /usr/sbin/groupadd '%g' add user to group script = /usr/sbin/usermod -G `/usr/bin/id -G '%u' | /bin/sed 's/ /,/g'`,'%g' '%u' [netlogon] comment = Logon Server Share path = /usr/local/samba-3/bdc/netlogon read only = no 4. Join the domain /usr/local/samba-3/bin/net rpc join -U Administrator%password -S YOURPDC 8. Start daemons /usr/local/samba-3/sbin/nmbd /usr/local/samba-3/sbin/smbd (the NMBD log should tell you that you're now a logon server for YOURDOMAIN) 9. vampire /usr/local/samba-3/bin/net rpc vampire -U Administrator%password -S YOURPDC 10. The following will fail due to excessive length (pah!): Creating unix group: 'Account Operators' groupadd: Account Operators is a not a valid group name If you really need this group then you'll either have to: * rename the group on the PDC * Use a mangling program to do the groupadd stuff (see documentation - only requirement of said program is that it returns the ID of the group it's added) 11. You should now be able to switch off the PDC and support logins via the BDC. For completeness, add these PDC config items to your smb.conf and kick the daemons: domain master = yes local master = yes preferred master = yes os level = 64 also, change 'security = domain' to 'security = user'. Otherwise, you can keep your Samba server as a BDC, although you'll need to set up a cron job to occasionally redo the net rpc vampire (and it will complain bitterly about existing accounts) = Now, as I'd mentioned previously, I need to keep the PDC in the domain because it's providing other services. This is proving to be a little tricky. I've managed the following: * Use the dubious registry hack to convert the PDC to a Workstation - this leaves me with a duplicate SID problem. * Use NewSID from www.sysinternals.com to change the PDC's sysid * Leave the domain (change to some random workgroup, reboot) Obviously the final step here is to rejoin the domain, but I'm falling foul of the fact that I've changed the SID (or something). When I try to rejoin the domain (automatically created accounts using the above config) I get the following error message: 'Unable to update local security in order to join domain' I've done a web search on this, and while there are vague handwaving explanations of what's happened, there's no actual solution offerred. So if anyone can give me a pointer or two on this I'd appreciate it. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. Derrick says, "Well, there are altar girls there. But it's a sin to hit on jailbait in the house of the Lord." -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] authentication as nobody ?
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:59 PM Subject: [Samba] authentication as nobody ? > I've got winbind up and running correctly (I think), but still having a > problem. I created a new share, added: Your conf file might be nice, however great the people on the list are they aren't mind readers ;) Shaolin - IT Systems WB Ltd. .: http://www.security-forums.com :. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem authenticating against a W2K server
- Original Message - From: "Ingimar Robertsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 10:00 AM Subject: [Samba] Problem authenticating against a W2K server > Hi there. > > I'm having a problem letting a Samba server (MYSAMBA) authenticate users > (using "security = domain" and a "password server = MYPDC") against a > Windows 2000 PDC (MYPDC). The Windows 2000 machine seems (I'm not 100% Add the machine to the domain on the Win2k PDC using AD. Then smbpasswd -j DOMAINNAME -r PDCIP -U Administrator%password Then wbinfo -A Administrator%password Then it should work fine. I'm kinda getting tired of this, can't we redo the docs for Winbind LOL Shaolin - IT Systems WB Ltd. .: http://www.security-forums.com :. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba server for windows (I know it defeats the object...)
Title: samba server for windows (I know it defeats the object...) Hi, is there a samba server for windows that UNIX samba clients can access. I know this wouldn't make sense and windows mounting a unix SMB exported directory would make so much more sense but a colleague swears that a windows samba server exists and it is proving hard to demonstrate its absence! Dave DISCLAIMER The information contained in this e-mail is confidential and is intended for the recipient only. If you have received it in error, please notify us immediately by reply e-mail and then delete it from your system. Please do not copy it or use it for any other purposes, or disclose the content of the e-mail to any other person or store or copy the information in any medium. The views contained in this e-mail are those of the author and not necessarily those of GEHE Group companies.
[Samba] how to use policy files with samba (NT/w2k)
Hi, I have set up samba as a PDC with OPenLDAP. I would like to have the users have some policys enforced. I read some things about *.adm files but do not know how to create or use them. Especially there is a system.adm which could be very valuable in creating network-wide policys. But where do I put them? In the profile path of all users? Are there any documents describing the possibilitys I have (written for a windows novice)? Thanks, Malte Mueller -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing problem
- Original Message - From: "Jean-Francois Pelletier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 4:50 AM Subject: [Samba] Printing problem > Hi, > > First of all, thanks for all the replies that I got a couple of weeks Perhaps because you have no printing commands? My working printer share looks something like this: [lj4500n] comment = HP LaserJet 4500N path = /var/spool/samba read only = No guest ok = Yes printable = Yes print command = lpr -P lj4500n -r %s -h; rm %s printer name = lj4500n oplocks = No share modes = No admin users = @Domain+IT valid users = @"Domain+Domain Users" Shaolin - IT Systems WB Ltd. .: http://www.security-forums.com :. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
AW: [Samba] "attrib +R myowndir" fails to write-protect my own dir
Is it a bug? No it's apparently a feature, Saulius! -Ursprüngliche Nachricht- Von: Saulius Gurklys [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 28. November 2002 08:31 An: [EMAIL PROTECTED] Cc: Dragan Krnic; [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: [Samba] "attrib +R myowndir" fails to write-protect my own dir [EMAIL PROTECTED] wrote: > On Wed, Nov 27, 2002 at 10:33:11PM +0100, Dragan Krnic wrote: >> I'm so glad there are kind souls at this time of night. Wait, it >> might be day at your place. Good day! > > Yep, it's 1:30 in the afternoon here in California :-). > >> I don't see a contradiction in setting Readonly flag on one's own >> directories and then creating files in them anyways. It's very much >> like any overruling root privilege. It's just a flag, Jeremy, it's >> not our saviour's gospel. Bill knows we don't march over dead bodies >> and he's taking unfair advantage of it. >> >> I propose a new smb.conf feature for 3.0: >> >>[homes & especially profiles] >> overrule readonly dirs = Yes/No >> >> Default is "No", but in exceptional cases, like on almost every samba >> server, it may be enabled to write into one's own write-protected >> directories, salvation be damned. > > The flag "dos filemode" is usually used for this purpose, I'll > investigate using it. > > Thanks, > > Jeremy. Does this flag work for directories too ? Acctualy it does NOT work for me. With files is everything OK. If file is owned by other user, but my user belongs to group which has write access, I can change file atributes. attrib -R file_on_samba.txt But it does not work with directories... ! attrib -R dir_on_samba Access denied - dir_on_samba Is it a bug? -- Saulius -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Cups
Can anyone advise how to get Cups to survive a reboot with samba. After Reboot both samba and cups are running but there are no samba preinters unless I restart Samba. I have set links to rc3.d so that cups starts before samba but still doesnt work. Any help would be greatly appreceiated Regards Simon - This mail sent through IMP on Redhat 8.0 and Qmail with Ldap. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Problem authenticating against a W2K server
Hi there. I'm having a problem letting a Samba server (MYSAMBA) authenticate users (using "security = domain" and a "password server = MYPDC") against a Windows 2000 PDC (MYPDC). The Windows 2000 machine seems (I'm not 100% sure about this) to be configured to restrict anonymous and it seems to me that this is where the problem lies but don't know what to do. I joined the MYDOMAIN domain by first confirming that MYSAMBA was not already a member of the domain. Then I issued the following command: smbpasswd -j MYDOMAIN -r MYPDC -U Administrator And the Windows administrator typed in the password. The command responded that I had joined the domain and a secrets.tdb file got created in the /etc/samba directory. We confirmed on the Windows side that the machine was now a member of the domain. So.. anyone have some pointers for me? Below are some more information about my setup and the errors I get. Hope it's not too much or too irrelevant. :-) This is what I get if I try to connect to a share on MYSAMBA from a Linux client (MYCLIENT): [username@MYCLIENT]$ smbclient //MYSAMBA/tmp -U username -W MYDOMAIN added interface ip=10.10.20.42 bcast=10.10.20.255 nmask=255.255.255.0 Password:<- Here I typed in the password, not empty password session setup failed: NT_STATUS_LOGON_FAILURE [username@MYCLIENT]$ And I get this in the /var/log/samba/10.10.20.42.log file: [2002/11/28 09:39:53, 0] smbd/password.c:connect_to_domain_password_server(1335) connect_to_domain_password_server: machine MYPDC rejected the tconX on the IPC$ share. Error was : NT_STATUS_ACCESS_DENIED. [2002/11/28 09:39:53, 0] smbd/password.c:domain_client_validate(1599) domain_client_validate: Domain password server not available. [2002/11/28 09:39:53, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369) unable to open passdb database. [2002/11/28 09:39:53, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369) unable to open passdb database. The Windows administrators can't see anything in the logs on MYPDC but I've confirmed using tcpdump that there is a dialogue between MYSAMBA and MYPDC. Here are also some commands I use to test connections from MYSAMBA to MYPDC: [root@MYSAMBA]# smbclient -L MYPDC added interface ip=10.10.10.90 bcast=10.10.10.255 nmask=255.255.255.0 added interface ip=10.10.10.91 bcast=10.10.10.255 nmask=255.255.255.0 Password: <-- Just type Enter (emtpy password) Anonymous login successful Domain=[MYDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_ACCESS_DENIED [root@MYSAMBA]# smbclient //MYPDC/ipc\$ added interface ip=10.10.10.90 bcast=10.10.10.255 nmask=255.255.255.0 added interface ip=10.10.10.91 bcast=10.10.10.255 nmask=255.255.255.0 Password:<-- Just type Enter (emtpy password) Anonymous login successful Domain=[MYDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_ACCESS_DENIED [root@MYSAMBA]# smbclient //MYPDC/ipc\$ -U username added interface ip=10.10.10.90 bcast=10.10.10.255 nmask=255.255.255.0 added interface ip=10.10.10.91 bcast=10.10.10.255 nmask=255.255.255.0 Password: <-- Type the password of the user "username" Domain=[MYDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] smb: \> ls NT_STATUS_ACCESS_DENIED listing \* 0 blocks of size 0. 0 blocks available smb: \> quit [root@mars samba]# Here are my globals from smb.conf: [global] workgroup = MYDOMAIN netbios name = MYSAMBA server string = Samba Print Server security = DOMAIN encrypt passwords = Yes password server = MYPDC syslog only = Yes log file = /var/log/samba/%I.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No name resolve order = lmhosts wins bcast host local master = no remote announce = 10.10.10.255 10.10.20.255 hosts allow = 127. 10.10.10. 10.10.20. printing = lprng Best regards, Ingimar -- Ingimar Robertsson, Systems Administrator EMAIL: [EMAIL PROTECTED] Skyrr Ltd, Iceland Information Management TEL: +354-5695100 Armuli 2, 108 Reykjavik, ICELANDFAX: +354-5695128 http://www.skyrr.is/legal/disclaimer.txt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] system error 64, win xp and samba
Just so that it gets into the archives for future googlers: If you get 'system error 64' on a windows xp machine trying to connect to samba, then make sure you have nothing running on port 445. I had an apache ssl instance running on that port. Doh! Had to scratch my head a bit over it. XP doesn't actually need anything to be on 445, it just gets confused and gives up if there is. Matt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] libnss on solaris
Hello, > > > > have you ever made nss_wins work on solaris ? > > No. But others have. This WINS support library was built on Solaris. could you please give me a contact to such a person ? from nsswitch/README: This extension provides a "wins" module for NSS on glibc2/Linux. > > Make sure that you rename nss_wins.so to libnss_wins.so and > set links > accordingly. I did, as I wrote in previous email. > > Also, please check Solaris documentation to find how to > bind dynamic link > libaries so that solaris can find them. Do you have an > /etc/ld.so.conf > file? Maybe it is in /etc/system.{cnf,conf}. I used to run > Solaris X86 and > vaguely remember a file like it. i checked the docs and without any tweaking libraries are searched for in /usr/lib. you can change it with crle command, but in this case i dont think it needs any changes. > > Also, what happens it you have in your /etc/nsswitch.conf? > > hosts: wins dns file, ie: wins first. i tried even hosts: wins only, with no luck :( > > Please show command failure output. bash-2.05# ping cww ping: unknown host cww i have also ran snoop (sun's network sniffer) and if i do a ping i cant see any broadcasts nor wins traffic... so i guess that nss library is not even touched :( how can i debug it ? truss doesnt show anything useful :| i need it badly, terry -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with creating machine account for domain logon
Title: Problem with creating machine account for domain logon Hi, If i try to let my laptop logon to my samba domain i see in the logfiles that there must me a machine account in the /etc/passwd file. So i created manualy "useradd $" This works fine and i'm able to log on to the domain. Why doesn't create samba this machine account automaticly?? do u need a special option for that?? greetz, Ernst Cozijnsen -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
[Samba] Problem with creating machine account for domain logon
Title: Problem with creating machine account for domain logon Hi, If i try to let my laptop logon to my samba domain i see in the logfiles that there must me a machine account in the /etc/passwd file. So i created manualy "useradd $" This works fine and i'm able to log on to the domain. Why doesn't create samba this machine account automaticly?? do u need a special option for that?? greetz, Ernst Cozijnsen -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
[Samba] mapping accountnames and SID's error in winxp sp1
Hi all, I am trying to set up a samba pdc with several win95 and winxp sp1 pc's connecting to it. I've used the samba-ldap-pdc howto with samba 2.2.7 and as far as i know i am all settled. Still i get a message when really connecting to the domain instead of shares from winxp (no problems in win95) that tells me that it can't map the accountnames to the security-id's or something like it (I had to translate it from dutch to english). Authentication is ok, I can access shares in xp (can this be turned off as in domain logon only, or will I get problems with win95 then?), but when i try to do domain logons I get the previously mentioned message. Seems like I have missed a step. Had done the registry editing signorseal and have set up groups in ldap and they're working in linux. I have assigned the users to the group: Domain Users still it ain't working. Where did i get stupid (probably 27 years ago or something :))? Thanks in advance Bas -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba