Re: [Samba] samba slow and several Write andx Request
On Thursday, September 02, 2010 08:40:55 pm grant little's cat walking on the keyboard wrote: That's a really old version of Samba to be running on Ubuntu seems like you might be running also a very old version of ubuntu itself. Ubuntu 9.10 was running 3.4.0 as I recall and 10.04 is on 3.4.7 3.0.28 is not even recommended for windows 7 http://wiki.samba.org/index.php/Windows7 so you will soon hit that wall as well. Perhaps the issues you are having are fixed in later releases? Thanks, it turned out to be the always sync option that made the sahre working so slow. However I will upgrade samba as soon as possible. Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] samba slow and several Write andx Request
Hi all, I'm running version 3.0.28a on Ubuntu linux, and apparently from a day to another I got performance issues: without any change in smb.conf (except a few added shares) I have mac osx and linux clients getting a very slow upload/download speed. I've checked with other protocols, like scp and performances are good, so I can exclude a network/hardware problem. Other clients are still running fast (e.g., windows xp). Looking at a transmission dump I see a lot of Write Andx Request packages (and replies) all moving the data offset by 64 bytes, that I suspect is the cause for the slowing down speed. Is there some option or somehting I can investigate more? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] windows 7 share and smbclient
In the case it can be useful, this is a debug trace of the session to the windows 7 share (maybe the final message SPNEGO login failed: Invalid parameter can lead to a solution): smbclient -d 7 //s28/backupinfook -U backup INFO: Current debug levels: all: True/7 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 locking: False/0 msdfs: False/0 dmapi: False/0 registry: False/0 lp_load_ex: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file /etc/samba/smb.conf Processing section [global] doing parameter workgroup = WORKGROUP doing parameter server string = %h server (Samba, Ubuntu) doing parameter dns proxy = no doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 1000 doing parameter syslog = 0 doing parameter panic action = /usr/share/samba/panic-action %d doing parameter encrypt passwords = true doing parameter passdb backend = tdbsam doing parameter obey pam restrictions = yes doing parameter unix password sync = yes doing parameter
[Samba] windows 7 share and smbclient
Hi, I've tested that samba (smbclient 3.4) cannot connect to a windows 7 share but however it is possible to mount such share with smbmount. When I try to connect specifying username and password I got a success but nothing happens: smbclient //s28/backupinfook -U backup Enter backup's password: session setup failed: SUCCESS - 0 while from another windows machine I can connect to the share. When I mount the share with smbmount I can browse its content. So there is something working different between an smbmount and an smbclient. What can I do if I don't want to mount the share? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] dabase file and oplocks
I've tried to use the options sync always and strict sync, but nothing changed. I compiled the 3.2.4 on the linux client machine and mounted the exported file system using cifs, but nothing changed. Still the data on the server is corrupted, as the program cannot get the lock on the files. I've also tried to swtich on and off the oplocks, without any difference. In the previous versions of samba (3.0.2) it worked, so I don't understand what could be the different configuration. Anyone has an idea? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] dabase file and oplocks
On Wednesday 24 September 2008 Luca Ferrari's cat, walking on the keyboard, wrote: I've tried to use the options sync always and strict sync, but nothing changed. I compiled the 3.2.4 on the linux client machine and mounted the exported file system using cifs, but nothing changed. Still the data on the server is corrupted, as the program cannot get the lock on the files. I've also tried to swtich on and off the oplocks, without any difference. In the previous versions of samba (3.0.2) it worked, so I don't understand what could be the different configuration. Anyone has an idea? I also discovered that the Dataflex is writing the indexes but not the data related to the archive. In the samba logs I don't see anything strange: I've got a connection to the share from the user and a close connection. Anything I can search for? Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] dabase file and oplocks
On Tuesday 16 September 2008 Luca Ferrari's cat, walking on the keyboard, wrote: Hi all, I'm using a Linux server (A) with samba 3.0.28 which exports a directory that contains database files (Dataflex .dat files) and that are mounted by a Linux machine (B) that runs Samba 3.0.2. Now the problem is that the files are corrupted when accessed by the machine B, even if the machine A exports the directory with oplocks = no, kernel oplocks = no and level2 oplocks = no. Before upgrading the samba on the server A I did not have such problem (before I was running samba 3.0.2). Now I'm experiencing this problem in data corruption. Any suggestion about how to get rid of this? Or how to better investigate and understand what is going wrong? What I've seen is that it seems the database is unable to get the lock on the files, since it allows two write at the same time with, of course, unpredictable results. I don't know what other configuration/experiment I can do. After an upgrade of the samba libraries on the ubuntu system it seems to work better, but sometimes I still have a little misbehaving between the two hosts, and data that is present on the main server is still not visible on the remote host or vice-versa. Seems a problem of flushing, any idea about? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] dabase file and oplocks
Hi all, I'm using a Linux server (A) with samba 3.0.28 which exports a directory that contains database files (Dataflex .dat files) and that are mounted by a Linux machine (B) that runs Samba 3.0.2. Now the problem is that the files are corrupted when accessed by the machine B, even if the machine A exports the directory with oplocks = no, kernel oplocks = no and level2 oplocks = no. Before upgrading the samba on the server A I did not have such problem (before I was running samba 3.0.2). Now I'm experiencing this problem in data corruption. Any suggestion about how to get rid of this? Or how to better investigate and understand what is going wrong? What I've seen is that it seems the database is unable to get the lock on the files, since it allows two write at the same time with, of course, unpredictable results. I don't know what other configuration/experiment I can do. Thanks for help, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] recycle not working
Hi, I've included the following configuration parameters in a share of mine: vfs objects = recycle recycle:repository = /mnt/cestino_samba_NAS/%u_%U recycle:repository = /mnt/cestino_samba_NAS/%u_%U recycle:maxsize = 10 recycle:exclude = *.tmp,*.temp *.mp3 *.avi *.mpg *.mp4 *.~?? recycle:keeptree= yes recycle:directory_mode = 0765 recycle:touch = yes but it does not work. Anyone has an idea of what I'm doing wrong? And when can I check for errors or clues? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] deny file storing through a name filter
Hi all, is there a way to deny samba to accept incoming files of a certain type or with a name that matches against a pattern? For example, if I'd like to do not allow *.mp3 files on a share. Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] deny file storing through a name filter
On Friday 25 July 2008 Volker Lendecke's cat, walking on the keyboard, wrote: On Fri, Jul 25, 2008 at 12:08:56PM +0200, Luca Ferrari wrote: Hi all, is there a way to deny samba to accept incoming files of a certain type or with a name that matches against a pattern? For example, if I'd like to do not allow *.mp3 files on a share. smb.conf option veto files I've tried, it works! Thanks, I thought veto files was only to hide files. Lucaù -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] write list vs read list
On Monday 14 April 2008 Chris Smith's cat, walking on the keyboard, wrote: It looks to me like you have multiple smb.conf files and you're editing the one the system is not using. Your last testparm still shows a force group parameter but there is none listed in your share definition. Also available is on by default, one less parameter you can drop to make it all more readable. I found the problemyou were almost right, except it was not another smb.conf file, but the same share defined twice in the file. Removed one of the definiton and now everything works! Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] write list vs read list
On Friday 11 April 2008 Chris Smith's cat, walking on the keyboard, wrote: [LABORATORIO_SMB] comment = Cartella privata Laboratorio path = /mnt/samba/lab_smb browsable = yes valid users = @laboratorio, @estero write list= @laboratorio read only = yes No way! I've tried to change my configuration to the following: [LABORATORIO_SMB] comment = Cartella privata Laboratorio path = /mnt/samba/lab_smb browsable = yes available = yes valid users = @laboratorio, @estero, luca.ferrari write list= @laboratorio read list = @estero, luca.ferrari writable = yes but the testparm still says: [LABORATORIO_SMB] comment = Cartella Laboratorio Sassuolo path = /mnt/samba/laboratorio_smb valid users = @laboratorio read list = @estero, luca.ferrari write list = @laboratorio force group = laboratorio read only = No so the valid users property is not changed, and in fact I'm not able to log in to the share with an account not belonging to the laboratorio group. Is there something I can check or do to get rid of this problem? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] write list vs read list
On Thursday 10 April 2008 Luca Ferrari's cat, walking on the keyboard, wrote: Uhm..I've checked the file permissions, and since they are 777 I guess this is not the problem. Moreover, since I've got a NT_STATUS_ACCESS_DENIED I think that it is something that prevents users to access the share at all. Any suggestion? It is strange, this is the definition of the share: [LABORATORIO_SMB] comment = Cartella privata Laboratorio path = /mnt/samba/lab_smb browsable = yes available = yes valid users = @laboratorio @estero luca.ferrari write list= @laboratorio read list = @estero luca.ferrari writable = yes printable = no force group = laboratorio where I've added myself to the valid and read list. Then I forced a reload of the configuration: [EMAIL PROTECTED]:~# /etc/init.d/samba reload * Reloading /etc/samba/smb.conf... but if I check the configuration with testparm I got: [LABORATORIO_SMB] comment = Cartella Laboratorio Sassuolo path = /mnt/samba/laboratorio_smb valid users = @laboratorio read list = @estero, luca.ferrari write list = @laboratorio force group = laboratorio read only = No as you can see the luca.ferrari user is not added to the valid users list! This could be the problem that such user always gets a NT_STATUS_ACCESS_DENIED??? Any suggestion? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] write list vs read list
On Wednesday 9 April 2008 your cat, walking on the keyboard, wrote: However, the @estero group cannot access the share at all (NT_STATUS_ACCESS_DENIED). What am I doing wrong? Most likely the filesystem permissions prevent users in @estero from executing or reading the /home/samba/lab_smb folder and/or the files in it. Uhm..I've checked the file permissions, and since they are 777 I guess this is not the problem. Moreover, since I've got a NT_STATUS_ACCESS_DENIED I think that it is something that prevents users to access the share at all. Any suggestion? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problems setting a public share
On Wednesday 9 April 2008 your cat, walking on the keyboard, wrote: you will need to show us your entire config, not just the share do you have a map to guest line? does your guest user exist? [global] netbios name = SEDELDAP workgroup = LDAP security = user passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no ldap admin dn = cn=admin,dc=MyHost,dc=com ldap suffix = dc=MyHost,dc=com ldap group suffix = ou=Group ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap ssl = off domain logons = yes follow symlinks = yes wide links = yes unix extensions = no map to guest = Bad User guest account = guest.samba [PUB_SMB] comment = Cartella pubblica (Mac e PC) - Non viene fatto il backup path = /mnt/samba/pub_smb browsable = yes available = yes writable = yes printable = no force group = pub public = yes guest ok = yes Please note that the user guest.samba belongs to the pub group, the permissions are right: # id guest.samba uid=1035(guest.samba) gid=513(Domain Users) groups=513(Domain Users),1002 (sassuolo),1050(pub) # ls -ld /mnt/samba/pub_smb/ drwxrwxrwx 114 guest.samba pub 4096 2008-04-08 21:50 /mnt/samba/pub_smb/ However, if I try to log in specifying the guest.samba account, then I succeed, but if I try to login without specifying a username, then I got a NT_STATUS_ACCESS_DENIED. smbclient //sedeldap/pub_smb WARNING: The printer admin option is deprecated Password: Domain=[LDAP] OS=[Unix] Server=[Samba 3.0.26a] tree connect failed: NT_STATUS_ACCESS_DENIED and if I try to login as guest.samba (or another registered user) I got access to the share. Any idea? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] write list vs read list
Hi, I'd like to set a share as writable for a specific users' group, and only readable for another, so I did the following: [global] netbios name = SEDELDAP workgroup = LDAP security = user passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no ldap admin dn = cn=admin,dc=MyHost,dc=com ldap suffix = dc=MyHost,dc=com ldap group suffix = ou=Group ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap ssl = off domain logons = yes follow symlinks = yes wide links = yes unix extensions = no map to guest = Bad User guest account = guest.samba [LABORATORIO_SMB] comment = Cartella privata Laboratorio path = /mnt/samba/lab_smb browsable = yes available = yes valid users = @laboratorio @estero write list= @laboratorio read list = @estero writable = yes printable = no force group = laboratorio However, the @estero group cannot access the share at all (NT_STATUS_ACCESS_DENIED). What am I doing wrong? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problems setting a public share
On Wednesday 9 April 2008 Michael Heydon's cat, walking on the keyboard, wrote: SMB connections always have a username (when using user level security). Is there a user called guest on the server? Is $USER set on the client machine? The user guest exists, I've tried to set the password to none (-n option of smbpasswd) and now I can enter the samba server also without specifying a user (if I specify a non-existent username, as you suggested, I can enter the share). Thanks a lot for your suggestions. I've got only another doubt: being public the share, is there a possibility to block access to a few users or machines in an ip list? Can I work with such parameters in a guest ok share? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problems setting a public share
Hi all, my samba server has security set to user, and it works for each share I specify a valid users list. However, the following public share does not work: [PUB_SMB] comment = Cartella pubblica (Mac e PC) - Non viene fatto il backup path = /mnt/samba/pub_smb browsable = yes available = yes writable = yes printable = no force group = pub guest ok = yes public= yes I found in the logs that make_connection: connection to PUB_SMB denied due to security descriptor. If I connect to the share authenticating as a user I can log-in, but as a guest no. I've tried to delete the file /var/lib/samba/share_info.tbd, but once I try to reconnect the file appears again, and even when the file is absent I cannot connect to the share. Any idea? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] mac os x samba: refresh problem
Hi all, is it possible to force a refresh of Samba shares opened from a mac osx? If two mac users work on the same share and put files in it, then the other user cannot see the former's files until reconnecting to the share. I've tried even with a Finder-Refresh extension, but it does not work. I believe this is a more related OS-X problem, but I hope someone else has experience in this area. Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Fwd: Re: [Samba] failed to add domain dn= sambaDomainName
On Tuesday 18 March 2008 your cat, walking on the keyboard, wrote: did you run smbldap-populate? Ops...I figured put: for any strange reason the ldap schema was missing from the ldap configuration file. I guess it was a wrong update. Now the system is working. Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] failed to add domain dn= sambaDomainName
Hi, I'm trying to configure my samba server to work with the ldap system on the same host. The samba domain name is LDAP, but when I try to start samba I cannot and in the log I found: [2008/03/18 11:12:14, 1] lib/smbldap_util.c:add_new_domain_info(216) add_new_domain_info: failed to add domain dn= sambaDomainName=LDAP,dc=myHost,dc=com with: Invalid DN syntax invalid DN Where can be the problem? Both in /etc/samba/smb.conf and /etc/smbldap-tools/smbldap.conf the domain name is set to LDAP. Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NT_STATUS_LOGON_FAILURE with ldap backend
On Tuesday 26 February 2008 Adam Williams's cat, walking on the keyboard, wrote: did you run smbldap-populate? even with a user in ldap, that is for their posix (linux shell) account. you will still need to run smbpasswd -a user to add their samba NT and LM hashes and samba SID info to ldap. Thanks Adam, populating and using smbpasswd -a solved the problem, but now I'm a bit confused: if I want to change my users' info (password, etc) I need to use the smbldap-xxx scripts and that will change both the samba and ldap (unix) information? In other ways, the needing for a smbpasswd -a is required only as init step, or each time I change a password I need to use again smbpasswd? Moreover, what happens if I change a password using smbpasswd and not the smbldap-xxx? The samba account becomes unaligned with the ldap one? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NT_STATUS_LOGON_FAILURE with ldap backend
On Monday 25 February 2008 Luca Ferrari's cat, walking on the keyboard, wrote: Hi all, I've configured my samba server to work with my ldap backend, the configuration of ldap is correct and in fact my users can interactively login. The problem is with samba, that is always returning a NT_STATUS_LOGON_FAILURE when a user tries to access a share. I'm in doubt if I have to add ldap accounts through the ldap-tools of samba or not, at the moment I did not add any account to samba (thinking it should read them from the ldap server directly). In the logs I'm not able to find anything useful, does anyone have any clue? I found that the server is connecting right to the ldap server: [2008/02/26 17:06:45, 3] lib/smbldap.c:smbldap_connect_system(997) ldap_connect_system: succesful connection to the LDAP server but that the user trying to authenticate does not exists: [2008/02/26 17:06:45, 3] auth/auth_sam.c:check_sam_security(281) check_sam_security: Couldn't find user 'luca' in passdb. [2008/02/26 17:06:45, 5] auth/auth.c:check_ntlm_password(273) check_ntlm_password: sam authentication for user [luca] FAILED with error NT_STATUS_NO_SUCH_USER The problem is that if I try to create the user with the smbldap-useradd I got the error: Error looking for next uid at /usr/share/perl5/smbldap_tools.pm line 1044. Now, two questions: 1) why do I have to add accounts to samba if it should get them from the ldap server? 2) how to solve the problem of the smbldap-useradd? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] NT_STATUS_LOGON_FAILURE with ldap backend
Hi all, I've configured my samba server to work with my ldap backend, the configuration of ldap is correct and in fact my users can interactively login. The problem is with samba, that is always returning a NT_STATUS_LOGON_FAILURE when a user tries to access a share. I'm in doubt if I have to add ldap accounts through the ldap-tools of samba or not, at the moment I did not add any account to samba (thinking it should read them from the ldap server directly). In the logs I'm not able to find anything useful, does anyone have any clue? The following is an excerpt of my configuration file: [global] netbios name = SEDELDAP workgroup = LDAP security = user passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no ldap admin dn = cn=admin,dc=myDomain,dc=com ldap suffix = dc=myDomain, dc=com ldap group suffix = ou=Groups ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m %u ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel %u add machine script = /usr/sbin/smbldap-useradd -w %u add group script = /usr/sbin/smbldap-groupadd -p %g delete group script = /usr/sbin/smbldap-groupdel %g add user to group script = /usr/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/sbin/smbldap-usermod -g %g %u domain logons = yes [coge] browsable = no available = no guest ok = no valid users = luca writable = yes printable = no Any idea about that? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] device busy, I/O error and unable to umount
Hi all, this is the situation: two linux servers mounting a samba share from each other. Sometimes one of the two share becomes locked, I mean that everything I try to do on it results in an Input/Output error. I'm then unable to umount the share, since either smbumount or umount report device or resource busy. Unluckily I cannot check if this is the case, since the resource is not responding and even an lsof does not work. Other commands, like df, block on the share. Any idea about where/how start looking to solve the problem? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] multiple mounts for a smbfs on the same mount point
Hi all, I'm just wondering why smbmount allows the same mount point to mount several times the same share while a normal mount operation (with a non-smbfs) returns a busy mount point error. [EMAIL PROTECTED]:~]$ mount ... //server/sys on /mnt/target type smbfs (rw) [EMAIL PROTECTED]:~]$ smbmount //server/sys /mnt/target/ -o ip=192.168.4.1,guest [EMAIL PROTECTED]:~]$ mount ... //server/sys on /mnt/target type smbfs (rw) //server/sys on /mnt/target type smbfs (rw) Any explaination? Is there a way to force smbmount to check about the current use of the mount point? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] file disappear ???
Hi list, I'm experiencing a strange behaviour on my samba server. I've got a list of users allowed to access a disk share from their windows machines, and the clients save files (such as .doc and .xls) in the share. Sometimes certain files disappear, that is the client is no more able to see them. I've tried changing permissions, ownership, name and position (i.e., moving them to a different share) but nothing worked. The only thing I found to solve the problem is to zip all the share content and then to unzip it from a windows machine, then all the clients see again the disappeared file. I've tried to check the unzipped file with the original one but the checksum is the same and diff does not report any difference. Moreover, from the dos command line the file is visible and if you spoecify the file name in the explorer path you can open it. So the file is there, can be accessed but simply is not shown. The name of the file has no strange characters and permissions are ok. Any idea about what can cause this behaviour and which configuration option to work on? I'm running samba 3 on a suse machine, with reiserfs file system. Thanks everybody, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] valid users and lost password on windows xp
On Monday 11 September 2006 15:21 Luca Ferrari's cat, walking on the keyboard, wrote: Hi all, in my network we're using samba as a disk share for users. Each user can access users thru his unix login name and password, but sometimes I experience that Windows xp (prof.) loses the password, so it prompts the user again for the it. In particular, after a smbpasswd password change, I have one machine that, even if mounting the share as a network disk (with username and password specified and the checkbox to store at reboot is checked) each day requires the user to insert the password. In particular the computer always proposes a default username composed by \\computer_name\windows_username. Is there any way to fix this problem? Anyone knows where and how to interact with the stored network-password in a windows system? I found that, mounting directly the shares (without connecting them to a network disk) and checking the store password checkbox the system does store the password! Thus the problem seems to be that it looses the password only if the shares are mounted as network disks. Please note that such computer (like others in my network that have no problems) mounts two shares, both of them with a valid users pragma. Any idea? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem with cups and samba: printing is disabled
Hi, I've got a windows printer that is no more working. If I try to see the status of the printer I get: server:~ # lpc status la02 la02: printer is on device 'smb' speed -1 queuing is enabled printing is disabled no entries daemon present that means printing is no enabled. If I try to enable the printer I cannot get the printer enabled: server:~ # lpadmin -p la02 -E server:~ # lpc status la02 la02: printer is on device 'smb' speed -1 queuing is enabled printing is disabled no entries daemon present In the printers.conf file there's the message: Printer la02 Info la02 DeviceURI smb://guest:[EMAIL PROTECTED]/l_a02 State Stopped StateMessage Call timed out: server did not respond after 1 milliseconds closing remote file _stdin_ Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 /Printer but if I smbclient to the printer I cannot connect! Any idea? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] administrative shares
Hi all, I cannot find a good description of how to use the windows administrative shares. Since I'd like to mount them from a Linux box, using samba, to perform backup of the user client, I'd like to know how can I access them. In particular, in a computer where I've got a single user, without password, what are the share credentials? And how can I set permissions for such share? Any good document? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smb.conf
On Monday 18 September 2006 09:43 Gerald's cat, walking on the keyboard, wrote: [private] writeble = yes guest ok = no path = /home/samba/private valid users = wendy, pierre write list = wendy, pierre force user = nobody All i need yo do now is make the folder private to nobody. How would i go on by doing that and would this work. Maybve you should use another use instead of nobody, a user created ad-hoc for this case, or should use group policies. Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbclient mget and compression
Hi, I'm using smbclient to replicate a samba share from one Linux machine to another one. Unluckily, the amount of data is quite large, thus I'd like to transfer it with a compression, but I didn't find such as asny option in smbclient. Is it possible? Thanks, Luca P.S. I cannot use, in this case, other tools like rsync, just only smb! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] valid users and lost password on windows xp
Hi all, in my network we're using samba as a disk share for users. Each user can access users thru his unix login name and password, but sometimes I experience that Windows xp (prof.) loses the password, so it prompts the user again for the it. In particular, after a smbpasswd password change, I have one machine that, even if mounting the share as a network disk (with username and password specified and the checkbox to store at reboot is checked) each day requires the user to insert the password. In particular the computer always proposes a default username composed by \\computer_name\windows_username. Is there any way to fix this problem? Anyone knows where and how to interact with the stored network-password in a windows system? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] deny writing to share root
Hi, is it possible to deny writing to the share root, allowing writing to the subfolders of such root? In other words, I don't want the root to be changed (adding/removing) folders and files, while I want to allow users to change the content of the subfolders of the root. How to reach this? Thanks, Luca -- Luca Ferrari [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] (no subject)
Dear list, a few days ago my samba server hanged up, I mean the samba services where not available (I/O error) and I didn't understand why. A simple umount/smbmount without restarting samba worked. In the log I found this: [2005/05/14 07:01:41, 0] lib/util_sock.c:read_socket_data(365) read_socket_data: recv failure for 4. Error = Connection reset by peer that refers to the fact that sys_read returned -1. What can be the cause? It's like the server didn't read enough data from the socket, like a connection/cable problem happened. Anyone else with a similar problem? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow access while crossmounting samba
On Tuesday 03 May 2005 17:18 Luca Ferrari's cat walking on the keyboard wrote: Hi, I've got two linux machines with the same distribution and samba 3 that cross-mounts a share (i.e., machine a mounts a share of machine b and vice versa). I'm experiencing slow access from the machines to the opposite mounted share and I don't know what this slow performance can be due to. I'm not running with oplocks cause the share is accessed only by the other linux machine (no windows clients) and oplocks produced a few problems with my database indexes (dataflex) in the past. Thus oplocks and level2oplocks are disabled. The following is a part of my configuration file: [DATA] comment = database path = /vol1/sys/ writable = yes browsable = no available = yes public= yes printable = no guest ok = yes copy = lock_template guest account = smb_guest read raw = yes where the lock_template is the following: [lock_template] locking = no posix locking = yes oplocks = no level2 oplocks= no As you can see I've tried also read raw, but I didn't see any difference. Any idea? Thanks, Luca I'm still having problems of speed in cross-mounting, and I've tried to place the host names in the /etc/hosts file and in the lmhost file, but I cannot see valuable changes. Any idea? -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] slow access while crossmounting samba
Hi, I've got two linux machines with the same distribution and samba 3 that cross-mounts a share (i.e., machine a mounts a share of machine b and vice versa). I'm experiencing slow access from the machines to the opposite mounted share and I don't know what this slow performance can be due to. I'm not running with oplocks cause the share is accessed only by the other linux machine (no windows clients) and oplocks produced a few problems with my database indexes (dataflex) in the past. Thus oplocks and level2oplocks are disabled. The following is a part of my configuration file: [DATA] comment = database path = /vol1/sys/ writable = yes browsable = no available = yes public= yes printable = no guest ok = yes copy = lock_template guest account = smb_guest read raw = yes where the lock_template is the following: [lock_template] locking = no posix locking = yes oplocks = no level2 oplocks= no As you can see I've tried also read raw, but I didn't see any difference. Any idea? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] multiple mount point
Hi, I'm having this annoying problem: it is possible to mount multiple times a smb filesystem over the same mount point. Anybody can me explain why? Any other filesystem cannot be mounted over a busy mount point. Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] duplicated name
Hi, in my network I had two samba server, one playing with authentication and one as guest-like disk share. In the pdc, I defined a few alias thus the machine was responding with different names. For an error, I didn't notice that a few alias matches a few group names used by the clients. Now, the guest-like machine has been dismissed, thus the other one has been assigned to its IP. Since that, clients are protesting saying that there's a duplicated name on the network, and I found this is a problem due to the fact that the samba server is responding with the same netbios name of a group. My question is, since the machine is running from a while, why I didn't discovered this before? Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] asymetrically slow samba
HI, this is my situation: a PDC machine that makes available a guest share, mounted from another samba server that has a public share too. Both the machines mount the other public share (samba 3.0.9), but while moving files from one server to the other is fast enough, doing the same movement from the other is really slow. Since configurations of the share are similar, I don't know what it can be. Anybody has experienced the same problem? I don't know what to do or where to look to solve the problem. Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] adding a samba printer with cups on a different network
Hi, if I want to add a printer to cups (SMB printer) in the same network of the linux machine, I can use lpadmin: lpadmin -v smb://s93/hps93 ... but what if I want to add a printer of another network? Where can I specify the ip address? I've tried with something like: lpadmin -v smb://192.168.2.20/hps20 and the printer is added, but it does not work then. Any help? Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] mangling problems?
Hi, I'm experiencing strange problems due to file names. I'm using samba 3.0.9 on a suse 9.1 system, and the problems are the following: 1) I've added the default case = lower and preserve case = no probably after some clients had already added a few folders with the same name but different cases, like folder and Folder. Now the clients are able to see both the folder, but the files in each of them are missing (even if connecting thru ssh I can see them). Deleting a folder, the problem disappear, but I'd like to know how to fix this for all the folders (except moving files and deleting them). 2) folders with names that ends with . or an italian character like è,à,ò, make the files within them invisible, and sometimes are changed to strange name like V~FTR. Can anybody explain how to fix it? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbmount across networks
Hi, I'm still having problem with smbmount across two different networks. My server has a few shares with the guest access enabled, and in the same network of the server, I can mount those shares in guest mode. Nevertheless, in another network I cannot mount the share in guest mode (I get a ERRNOACCESS), and I have to specify a username/password (even the guest one). I cannot understand why, anybody has an idea? I'm using samba 3.0.9. Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem accessing from windows xp
Hi, I've got a problem with my samba server: all machines (windows xp or not) can access a guest ok share without problem, but one cannot, since a username/password is required. Of course, it should be a problem of the client, but what is the option I'd look for? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] guest smbmount across networks
Hi, I've got a Samba 3 PDC, that enables a few shares to be accessed in gusest mode. What I'm experiencing is that, while in the same subnetwork, I'm able to mount those shares in guest mode (smbmount //pdc/coge /mnt/samba -o guest), mounting the share from other subnetworks is possible only giving a valid username and password. Furthermore, even mounting the share with an user, I cannot access the share for writing, but only for reading. How can I fix this? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] PDC and guest access
On Tuesday 4 January 2005 12:38 Ilia Chipitsine's cat walking on the keyboard wrote: Hi, is it possible to prepare a share with guest access (i.e., without username and password) on a server that is playing as PDC (i.e., security=user)? The security setting is global, thus it's like not possible, but I'm not sure. Thanks, Luca map to guest = bad user will do the job The map to guest option is global, while I'm searching for a way to make guesting a single share, not the whole samba. Furthermore, can anybody tell me why my configuration for host equiv seems not to work? In the config file I've the following line: host equiv = /etc/hosts.equiv and in the hosts.equiv file I've got: s88 (being s88 the name of the window machine, also listed in the /etc/hosts file). When I try to connect thru the s88 machine, I'm requested to put a password, while the machine should access anonymously. Any idea? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] PDC and guest access
Hi, is it possible to prepare a share with guest access (i.e., without username and password) on a server that is playing as PDC (i.e., security=user)? The security setting is global, thus it's like not possible, but I'm not sure. Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] multiple names
Is it possible to make a samba (3) server answering with multiple netbios names? Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] pdc and shellinfo
Hi, I'm trying to set up my samba server as PDC, but when I login from windows xp a notepad windows pops up showing: [.ShellClassInfo] [EMAIL PROTECTED],-21787 while it works under consumer windows. Any idea about? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] documents and mail on the pdc
Hi, maybe this question is trivial, but I didn't find a solution. I've installed a pdc with roaming profiles, and under the windows xp folder on the server I've got a documents directory. How can make this folder becoming automagically the document folder of each xp computer the user logs in? And it is possible to do something similar also for mail? I mean, keeping the mail folders on the server, while currently all stuff is stored in Documents and Settings under a user.domain folder. Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba 3 as PDC
Hi, I'm configuring samba as PDC for my network, but I'm having a few problems: 1) roaming profiles are not working, even if I've made up symbolic links in the directories, such as (for user luca): sede:/home/samba-ntprof/luca # ls -l totale 1 drwx-- 3 luca users 120 2004-11-12 17:06 . drwxrwxrwx 3 root root 72 2004-11-12 11:58 .. lrwxrwxrwx 1 root root6 2004-11-12 17:06 fluca - WinXP/ lrwxrwxrwx 1 root root6 2004-11-12 17:06 s64 - WinXP/ drwx-- 13 luca users 504 2004-11-12 17:09 WinXP even if the profile management tool of windows xp says that the profiles are roaming. With not working I mean that I cannot see the exact desktop, even if the content is the same, and icons are rearranged. 2) the logon script seems to work only on consumer windows. I've got a simple logon: #cat logon.bat net use H: /home Now, while it works under consumer windows, it does not work under windows xp professional. 3) I cannot see network resource icon in XP prof, and it is like I cannot connect to the samba server, even if I use the ip address. The following is my configuration file: # Global section, general settings. [global] netbios name = PDC workgroup = GammaDue domain master = yes local master = yes preferred master = yes os level = 65 security = user domain logons = yes encrypt passwords = yes logon path= \\%L\profiles\%u\%m logon script = logon.bat logon drive = H: # for consumer windows only logon home= \\%L\%u\.win_profile\%m add user script = /usr/bin/useradd -d /dev/null -g 500 -s /bin/false -M %u interfaces = eth0 127.0.0.1 bind interfaces only = true printing = cups printcap name= cups printer admin= @ntadmin, root, administrator [netlogon] path = /var/samba/lib/netlogon writable = no browsable = no [profiles] path = /home/samba-ntprof browsable = no writable = yes create mask= 0600 directory mask = 0700 [homes] comment = Home Directories valid users = %S browseable = No read only = No map archive = yes [prova] browseable = yes read only = yes path = /tmp Any idea? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] different announces between w2k and xp
Hi, as I wrote in a previous e-mail, we are noting different announcing between a w2k computer and an xp one (both professional). The computers are not trying to log on a windows domain, and this time I can provide also a dump of traffic thru ethereal. As you can see from the attached files, the win2k computer sends also the username (marty) along the network, and we cannot understand why. Is just a problem of a different implementation of the SMB stacks among different operating systems, or there's a specific reason for this behavior? Thanks, Luca Luca -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] win2000 e win xp announce
Hi, we are noting a strange behavior sniffing the traffic on a windows network, while studying samba. Using win2000, when the computer starts, it sends across the network not only the computer name (we are using a workgroup, no domain) but also the username once the login is done. Instead, the wixp machine sends only the machine name. We are not trying to log in a domain, and there are no network volumes mounted or accessed with a user type security. Is there simply a difference between the two implementations, or there's something that we don't know? Thanks, Luca -- Luca Ferrari, [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] invisible server
On Thursday 23 September 2004 18:18 your cat walking on the keyboard wrote: May be due to no guest account. From Samba 3 by Example: Network browsing involves SMB broadcast announcements, SMB enumeration requests, connections to the IPC$ share, share enumerations, and SMB connection setup processes. The use of anonymous connections to a Samba server involve the use of the /guest account/ that must map to a valid UNIX UID. I've added a guest user with smpasswd -a guest, and then I have inserted a line in the global section of smb.conf: guest account = guest but it is still not working: mammuth:~ # nmblookup mammuth querying mammuth on 192.168.1.255 name_query failed to find name mammuth Another thing that maybe can help: mammuth:~ # nmblookup -A 192.168.1.9 Looking up status of 192.168.1.9 MAMMUTH 00 - B ACTIVE MAMMUTH 03 - B ACTIVE MAMMUTH 20 - B ACTIVE ..__MSBROWSE__. 01 - GROUP B ACTIVE G2 00 - GROUP B ACTIVE G2 1b - B ACTIVE G2 1d - B ACTIVE G2 1e - GROUP B ACTIVE that seems it's working, isn't it? What am I doing wrong? Thanks, Luca -- Luca Ferrari, [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] invisible server
On Friday 24 September 2004 09:44 Luca Ferrari's cat walking on the keyboard wrote: On Thursday 23 September 2004 18:18 your cat walking on the keyboard wrote: May be due to no guest account. From Samba 3 by Example: Network browsing involves SMB broadcast announcements, SMB enumeration requests, connections to the IPC$ share, share enumerations, and SMB connection setup processes. The use of anonymous connections to a Samba server involve the use of the /guest account/ that must map to a valid UNIX UID. I've added a guest user with smpasswd -a guest, and then I have inserted a line in the global section of smb.conf: guest account = guest but it is still not working: mammuth:~ # nmblookup mammuth querying mammuth on 192.168.1.255 name_query failed to find name mammuth Another thing that maybe can help: mammuth:~ # nmblookup -A 192.168.1.9 Looking up status of 192.168.1.9 MAMMUTH 00 - B ACTIVE MAMMUTH 03 - B ACTIVE MAMMUTH 20 - B ACTIVE ..__MSBROWSE__. 01 - GROUP B ACTIVE G2 00 - GROUP B ACTIVE G2 1b - B ACTIVE G2 1d - B ACTIVE G2 1e - GROUP B ACTIVE that seems it's working, isn't it? What am I doing wrong? I'm still working on this problem. It must be said that, after the addition of the guest user, I can try to access a share from a windows 98 client, but it asks me for only a password (not the username/password), thus I don't now how to access the share (every password I insert, even if one of the valid users for that share, does not work). However, I'm still unable to find the computer thru the find computer of windows, and even nmblookup does not work. Any idea? Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] invisible server
Hi, I've got a few samba server in my network, but one of them is invisible. I cannot do a nmblookup on it (even from the server itself), but I cannot telnet the port 137, thus it should not be a problem of firewall. From windows xp machines, I can connect specifying the IP address, while from win98 machines I cannot (I got an error like network name does not exist). The following is the smb.conf file, I'm running samba 2.2.7: global] os level = 33 time server = Yes unix extensions = Yes encrypt passwords = Yes log level = 5 syslog = 5 printing = CUPS printcap name = CUPS socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY wins support = No veto files = /*.eml/*.nws/riched20.dll/*.{*}/ security = user workgroup = G2OR server string = Mammuth netbios name = mammuth [project] comment = Cartella PROJECT/ufficio MK via SMB - Mammuth path = /mnt/data/uff_mk/PROJECT browsable = yes writable = yes printable = no valid users = +ufficioMK +cam I've tried with the remote announce and master browser options, but it still not works. Any idea? Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] windows program over a samba share
Hi, I don't know if this is possible, but I'd like to install a window program (in the specific JBuilder Personal) over a samba share, and then to mount a network share as a disk from windows clients, so they can use the program. Is it possible? Any idea on how to share windows programs from a linux server? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] folder refresh in mac os x
Hi, I'm using both samba 2.2 and 3.0 and I've experienced this problem with a few mac os x (until 10.3): sometimes it happens that whole groups are not present in the network list, thus the user is forced to insert the ip address to connect to a specific samba server. At the same time, over macs continue seeing the server list. After a mac reboot, the list is complete again, while after a while it is not. Any idea? Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Failed to initialise SAM_ACCOUNT for user
Hi, trying to add users to my samba machine I got the following error: magroup1:~ # smbpasswd -a samba New SMB password: Retype new SMB password: Failed to initialise SAM_ACCOUNT for user samba. Failed to modify password entry for user samba What does it mean? I didn't find documentation about. Thanks, Luca -- Luca Ferrari, [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba