[Samba] Re: Access is denied after connection is apparently successful
On Fri, Jan 06, 2006 at 10:07:41AM +, Chris Green wrote: We have a small home network with Samba running on a Slackware Linux 10.1 system, it's been running happily for several months or even maybe a year or so. It's running Samba version 3.0.4 Recently one of the Win2k clients is getting errors when trying to access Samba shares. The other clients are all still working OK and the same user can access shares from other client machines. Running the command:- net use e: \\server\tmp works, i.e. one gets command completed successfully, however if you try and go to drive E: or access any files there it gives an Access is denied message. Similarly with the GUI an icon appears for drive E: with no red cross but the moment you try and access drive E: a pop-up message says E: Access is Denied. We can't think of anything that has changed on the client machine where the error occurs, can anyone suggest what the problem might be? Was this just a silly question or does no one have any suggestions? -- Chris Green ([EMAIL PROTECTED]) Never ascribe to malice that which can be explained by incompetence. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Access is denied after connection is apparently successful
We have a small home network with Samba running on a Slackware Linux 10.1 system, it's been running happily for several months or even maybe a year or so. It's running Samba version 3.0.4 Recently one of the Win2k clients is getting errors when trying to access Samba shares. The other clients are all still working OK and the same user can access shares from other client machines. Running the command:- net use e: \\server\tmp works, i.e. one gets command completed successfully, however if you try and go to drive E: or access any files there it gives an Access is denied message. Similarly with the GUI an icon appears for drive E: with no red cross but the moment you try and access drive E: a pop-up message says E: Access is Denied. We can't think of anything that has changed on the client machine where the error occurs, can anyone suggest what the problem might be? -- Chris Green ([EMAIL PROTECTED]) Never ascribe to malice that which can be explained by incompetence. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: locks cooperating with a server side process
Chris Green [EMAIL PROTECTED] writes: I'm having a problem where I can gain the lock but the process is still writing to the file. OK, I realized that putting python in might have scared away anyone that knew C enough to help me out on my problem so I wrote a tiny util to look at the fcntl based locks. http://cmg.dok.org/code/lockview.c As I copy the file from NT - Linux 2.4, There are no locks set on the file. However, if I turn strict locking on, posix.c/is_posix_locked will return true as soon as I gain the lock and abort the copy. If just plain locking is on, the file will be deleted as soon as the copy is complete if another process has gained a write lock. Does anyone else use samba as a drop box for a unix process? Is there anyway to make a file be locked upon creation with the copy command? I have a hard time figuring out all the paramters for open_file_shared1 [2004/07/20 13:21:37, 5] smbd/files.c:file_new(123) allocated file structure 5634, fnum = 9730 (2 used) [2004/07/20 13:21:37, 10] smbd/open.c:open_file_shared1(807) open_file_shared: fname = output/Testing/cygwin.tar, share_mode = 11, ofun = 10, mode = 660, oplock request = 3 Thanks, Chris -- Chris Green [EMAIL PROTECTED] Eschew obfuscation. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: locks cooperating with a server side process
Adam Tauno WIlliams [EMAIL PROTECTED] writes: If your building a 'drop box' so to speak, where a process picks up files after they are copied in, perhaps you want to look into hooking for application into 'fam' http://oss.sgi.com/projects/fam/ Thanks for the pointer. My problem isn't picking up the file when it's copied in, but picking it up when it's complete. Looking at the imon ( and linux fcntl(2) ), there doesn't seem to be a way to say let me know I'm the only person using this file short of mandatory locking. The work around for the users in my case is to copy the file, and then rename but I'd really like it to be a one step operation. Cheers, Chris -- Chris Green [EMAIL PROTECTED] To err is human, to moo bovine. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: locks cooperating with a server side process
Gerald (Jerry) Carter [EMAIL PROTECTED] writes: This kind og question is probably better suited for the samba-technical mailing list. I would repost there. Ah thanks a bunch, Chris -- Chris Green [EMAIL PROTECTED] Chicken's thinkin' -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] locks cooperating with a server side process
Good day folks, I'm using Samba 2.2.8a [1] on Slackware 9.1 with 2000/XP clients. I'm attempting to have a process by which a user drags a file using Windows Explorer into a share. On the server side, I have a unix process that polls the directory for new files and then reads them and deletes them. I'm having a problem where I can gain the lock but the process is still writing to the file. Python code: import fcntl # open file in rw so I gain exclusive lock f = open(cygwin.tar,r+) # if this doesn't raise an IOError, the lock is acquired fcntl.lockf(f,fcntl.LOCK_EX|fcntl.LOCK_NB) which maps into a fcntl exclusive lock with 0 as the start, end, and whence arguments in the flock structure. In smb.conf, locking = yes had no effect on my process. The next thing I tried was strict locking = yes. This had the effect that as soon as my code performs the lock, a windows dialog appears: ``Cannot copy cygwin: The process cannot access the file because another process has locked a portion of the file'' This leads me to suspect that either Windows Explorer or samba doesn't gain a lock on the file on creation. Is there a way to tell samba to set that lock? Thanks, Chris Footnotes: [1] Samba is compiled: --with-fhs \ --prefix=/usr \ --localstatedir=/var \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --with-lockdir=/var/cache/samba \ --sysconfdir=/etc \ --with-configdir=/etc/samba \ --with-privatedir=/etc/samba/private \ --with-codepagedir=/etc/codepages \ --with-smbmount \ --with-quotas \ --with-syslog \ --with-utmp \ --with-sambabook=/usr/share/swat/using_samba \ --with-ssl \ --with-sslinc=/usr/include/openssl \ --with-ssllib=/usr \ --with-msdfs \ --with-vfs \ --with-libsmbclient \ i386-slackware-linux -- Chris Green [EMAIL PROTECTED] To err is human, to moo bovine. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] WinXP cannot connect to PDC
I am running RH8 and samba 2.2.7 and have been working to get the PDC running for about 4 days. I initially got it working but then transfered my local xp profile to it and it has not worked since. I receive the message that the domain controller is unavailable. I am at my wits end and frustrated that I do not understand the log files. Any help would be greatly appreciated. My smb.conf and log files are below. Chris smdb.log [2003/06/02 19:58:44, 2] smbd/reply.c:reply_special(92) netbios connect: name1=OGDENname2=SACRAMENTO [2003/06/02 19:58:44, 2] smbd/reply.c:reply_special(111) netbios connect: local=ogden remote=sacramento [2003/06/02 19:58:44, 2] smbd/reply.c:reply_special(92) netbios connect: name1=OGDENname2=SACRAMENTO [2003/06/02 19:58:44, 2] smbd/reply.c:reply_special(111) netbios connect: local=ogden remote=sacramento nmdb.log--- [2003/06/02 19:53:41, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 192.168.0.4: code = 0x12 [2003/06/02 19:53:41, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 192.168.0.4: code = 0x12 [2003/06/02 19:54:42, 2] nmbd/nmbd_browsesync.c: announce_local_master_browser_to_domain_master_browser(118) announce_local_master_browser_to_domain_master_browser: We are both a domain and a local master browser for workgroup MACKGREEN. Do not announce to ourselves. [2003/06/02 19:54:42, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(157) sync_with_dmb: Initiating sync with domain master browser OGDEN20 at IP 192.168.0.51 for workgroup MACKGREEN client name is jackson, also I have verified that machine and user account are in passwd and smbpasswd files client.log--- [2003/06/02 19:46:15, 1] smbd/reply.c:reply_sesssetup_and_X(1082) Username smbguest is invalid on this system [2003/06/02 19:46:15, 2] smbd/server.c:exit_server(461) Closing connections [2003/06/02 19:46:15, 1] smbd/service.c:make_connection(636) jackson (192.168.0.4) connect to service profiles as user chris green (uid=510, gid=510) (pid 1211) [2003/06/02 19:46:15, 1] smbd/service.c:close_cnum(677) jackson (192.168.0.4) closed connection to service profiles [2003/06/02 19:46:15, 2] smbd/server.c:exit_server(461) Closing connections [2003/06/02 19:46:18, 1] smbd/reply.c:reply_sesssetup_and_X(1082) Username smbguest is invalid on this system [2003/06/02 19:46:18, 2] smbd/server.c:exit_server(461) Closing connections smb.conf-- [global] #Basic server setting workgroup = MACKGREEN netbios name = OGDEN server string = Samba PDC %v %h socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY wins support = yes #PDC and master browser settings os level = 64 preferred master = yes local master = yes domain master = yes #Security settings security = user encrypt passwords = yes log file = /var/log/samba/%m.log log level = 2 max log size = 50 #hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 #User profiles and home directories logon home = \\%L\%U\ logon drive = H: logon path = \\%L\profiles\%U logon script = netlogon.bat #Sync UNIX passwords unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*authentication*tokens*updated*successfully* #Misc Settings time server = Yes printcap name = lpstat domain logons = Yes dns proxy = No wins support = Yes username = cgreen guest account = smbguest admin users = cgreen printing = cups hide unreadable = Yes -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba