Re: cifs replacing smbfs - how to set up?
in the samba server file you have a 'workgroup' name - give this as the 'domain' to the cifs mount options. also, you can run the samba server on the linux machine in debug mode, re-connect the client, perform the operation and start reading the log... it's not trivial, but it's do-able. --guy Herouth Maoz wrote: On 15/06/2009, at 23:31, guy keren wrote: when i switched from smbfs to cifs - i added the 'domain=' parameter, and used the name defined on the samba server - and had no similar problems. did you try this? also, i didn't use the file_mode, dir_mode or setuids optoins, that you are using. i would try to remove them and see if there's any change. finally - what distribution+version is your client? the same for the linux server? this might be relevant information. My client distro is Mandriva 2009.0 - kernel 2.6.27.21-desktop-1mnb The server on that particular machine is Debian - kernel 2.6.18-6-686. All of our servers are debians, though not all are the same version. As for the domain argument - what should I set it to? I removed the file_mode and dir_mode parameters, but no help there - I still can't copy a file to an existing file. Removing them just makes the file permissions I get in ls be funny: Running ls -l on the client machine gives: total 8 -rwxrwSrwx 1 herouth herouth 121 2009-03-11 18:06 create_dev_pgsql.sql* -rwxrwSrwx 1 herouth herouth 125 2009-03-11 18:06 create_prod_pgsql.sql* drwxrwxrwx 1 herouth herouth 0 2009-03-17 15:51 CVS/ Running it on the server machine (connecting with ssh) gives: total 12 drwxr-xr-x 2 herouth herouth 4096 Mar 17 15:51 CVS -rw-r--r-- 1 herouth herouth 121 Mar 11 18:06 create_dev_pgsql.sql -rw-r--r-- 1 herouth herouth 125 Mar 11 18:06 create_prod_pgsql.sql Of course the permissions displayed on the client machine are ridiculous. Adding the file_mode and dir_mode parameters gives me normal permissions, which are similar most of the time to the real permissions. Further help would be appreciated. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: Help with simple Linux maintenance
On Jun 16, 2009, at 2:44 AM, Gal Goldschmidt wrote: I guess I can buy a router, configure it and sent it to her, the problem is who will connect the right cables in the right place. It should be pretty simple. With one computer, it's 2 cables. If you go with the wireless option you can do it with only one and no work at all if the network is unprotected and depending upon which linux she is running, it may be relatively easy to use a protected one. It took about 30 seconds to set up access to my WiFi network under Ubuntu before they went with network manager (pre-9.04) and with 9.04 it took even less. All you need to know is the SSID of the network and the WPA/WEP key. Some routers use color coded jacks, some don't. A little piece of colored tape would help if not. If she speaks English, gets a TP-Link router from Ivory, and has a landline phone, I'd gladly call her and walk her through everything. I'm also familar with EDIMAX routers and the BEZEQ Siemens one, but that's aDSL only. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: cifs replacing smbfs - how to set up?
On Mon, Jun 15, 2009 at 5:19 PM, Herouth Maozhero...@spamcop.net wrote: Up until recently I used to have smbfs mounts to all the development and some of the production servers in my company. I used to mount as a particular user in the host machine, and then every write, mode change, time set etc. was done as that user on the server side, and everything was pretty transparent to me. Recently, because I upgraded my machine, I was forced to stop using smbfs and change to cifs. It works well enough with windows machines, but when the host server is linux, I get nothing but grief. Herouth, FWIW, I see similar effects when the server is Windows. I have a different setup, I run VMware VMs on my work laptop, and I mount a share on the host (WinXP 64 bit) in Linux VM (CentOS 5.3). After initial hiccups I worked my way through the various security tabs in the share's Properties window, and disabled the host's firewall (after a nod from the company's sysadmin). After that what I need to do works just fine, but when I read your posting I tried to touch a couple of files and copy one over the other (had not had a need to do it before) - and I saw effects similar to what you describe (can't modify owner, can't modify time, etc.). I suspect the culprit maybe CIFS ACLs (I had added the user who mounts the share to the list and had given him full access) and/or their mapping to POSIX ACLs. I played a bit with getfacl/setfacl but got nowhere. Maybe some googling for CIFS ACLs will help. Sorry that I can't help you more, but maybe the fact that it is not Linux-server-specific will help the investigation... -- Oleg Goldshmidt | p...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: cifs replacing smbfs - how to set up?
Quoting guy keren c...@actcom.co.il: in the samba server file you have a 'workgroup' name - give this as the 'domain' to the cifs mount options. also, you can run the samba server on the linux machine in debug mode, re-connect the client, perform the operation and start reading the log... it's not trivial, but it's do-able. Thanks. I added the domain but it didn't help. The servers are not under my responsibility, unfortunately, so I can't dictate to the sysadmin to allocate time to look into this. I'll need to keep researching this until I can come up with specific parameters that should fix the problems. Do you have anything particular set as far as permissions or ACLs are concerned, on the server side? Might give me a clue. Herouth ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: cifs replacing smbfs - how to set up?
Quoting Oleg Goldshmidt p...@goldshmidt.org: FWIW, I see similar effects when the server is Windows. I have a different setup, I run VMware VMs on my work laptop, and I mount a share on the host (WinXP 64 bit) in Linux VM (CentOS 5.3). After initial hiccups I worked my way through the various security tabs in the share's Properties window, and disabled the host's firewall (after a nod from the company's sysadmin). After that what I need to do works just fine, but when I read your posting I tried to touch a couple of files and copy one over the other (had not had a need to do it before) - and I saw effects similar to what you describe (can't modify owner, can't modify time, etc.). Interesting, because my mount to the office file server (windows) actually works well, no problems copying or touching or anything. Could be a different version of windows. I suspect the culprit maybe CIFS ACLs (I had added the user who mounts the share to the list and had given him full access) and/or their mapping to POSIX ACLs. I played a bit with getfacl/setfacl but got nowhere. Maybe some googling for CIFS ACLs will help. I'll try that, thanks. Herouth ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: Help with simple Linux maintenance
I have had to fake the entire add/remove software for Cellcom cellular modem with a tech support until I broke and just asked for the default init strings. This was funny. I was removing the drivers through the control panel and through 'add-remove software', rebooting and then reinstalling the drivers for my Sierra modem. Actually, I ejected the PCMCIA card and rmmod'ed the drivers, and then put the card back in. And they say Windows is more comfortable... :-/ Just needed init strings so I will not go through the WAP connection. Waste of money and capabilities. Ez Dotan Cohen wrote: I'm not sure I agree with your claim about old Actcom's staff. I know most of them (except one, I think) were not hired by Bezeq Int. Really? They assured me that the staff stayed, and I have gotten L-word help when I needed it. Netvision would not help me when I couldn't tell the nice young idiot on the phone which version of Windows Ubuntu is. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
High availability virtual ip
i have two linux machines, that are running on the same LAN. i would like to find a way to set HA IP. i was thinking on creating virtual ip that will ride on the exiting eth. lets say 10.0.0.1 and 10.0.0.2 and the VIP will be 172.16.4.1 both will run an infinite loop of:while (ping 172.16.4.1) do ... once that the while is exiting in one of the hosts it will try to acquire the VIP. there is additional lock mechanism to implement so the two servers will not try to acquire the same VIP concurrently. i would like to know if there is any out of the box sofware that can do this task? yahav ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: High availability virtual ip
2009/6/16 Biran, Yahav (Yahav) yahav.bi...@gmail.com: i have two linux machines, that are running on the same LAN. i would like to find a way to set HA IP. i was thinking on creating virtual ip that will ride on the exiting eth. lets say 10.0.0.1 and 10.0.0.2 and the VIP will be 172.16.4.1 both will run an infinite loop of:while (ping 172.16.4.1) do ... once that the while is exiting in one of the hosts it will try to acquire the VIP. there is additional lock mechanism to implement so the two servers will not try to acquire the same VIP concurrently. i would like to know if there is any out of the box sofware that can do this task? http://www.linux-ha.org/ ? -- Oleg Goldshmidt | o...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: Help with simple Linux maintenance
and Netvision are thieves who want our money, not our business. They deserve neither. That may be true, and certainly they (well, Barak) want our business because of the money we pay, can't fault that, can we?... FWIW, Netvision have always (since 1996 for me) provided decent Linux support (not that I used it heavily), including dial scripts that I was offered but never used, etc. Back in 2001 Netvision was the only company that would deal with the L-word. I was very happy with them. Some appartment moves and ISPs later, I tried moving back to Netvision in January 2009. All they did was take my money, and when I could not connect for three days they refused to help me. After three days I had to sign up with another ISP just to get an internet connection, and Netvision refues to let me out of my one-year contract with them. They said that three days is not enough to release me from the contract, even two weeks would not be enough (their words, not mine). I told them that they already lost me as a customer for the year (I had to sign up with another ISP), are they trying to lose me as a customer for life? They said that they don't care so long as I continue paying for the remainder of the contract. They are getting my money for the remainder of the year. They will never get my business, and I will make it very clear to potential Netvision customers exactly what the company has turned into. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: Help with simple Linux maintenance
Gal Goldschmidt g...@cs.haifa.ac.il writes: From time to time I get blocked, especially if I switch the hardware connected to the modem. snip I guess I can buy a router, configure it and sent it to her, the problem is who will connect the right cables in the right place. I don't experience this problem. It is true that I have a router connected to the modem and never change it. But then, from your description I suspect that your friend will connect a computer to the modem and never change anything, isn't this right? No need for a router. That's one cable to connect, once... Anyway, that was just a suggestion. -- Oleg Goldshmidt | p...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: High availability virtual ip
Hi First, the problem is not an IP, but the mac-ip mapping and ARP caching strategies. Second, don't use ping. Third, do use project 'heartbeat' and 'fake'. They provide what you need. M ---MAV Marc. Volovic +972-54-467-6764 m...@swiftouch.com Sent from my iPhone On Jun 16, 2009, at 6:58 PM, Biran, Yahav (Yahav) yahav.bi...@gmail.com wrote: i have two linux machines, that are running on the same LAN. i would like to find a way to set HA IP. i was thinking on creating virtual ip that will ride on the exiting eth. lets say 10.0.0.1 and 10.0.0.2 and the VIP will be 172.16.4.1 both will run an infinite loop of:while (ping 172.16.4.1) do ... once that the while is exiting in one of the hosts it will try to acquire the VIP. there is additional lock mechanism to implement so the two servers will not try to acquire the same VIP concurrently. i would like to know if there is any out of the box sofware that can do this task? yahav ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: High availability virtual ip
Marc Volovic marcvolo...@me.com writes: Hi First, the problem is not an IP, but the mac-ip mapping and ARP caching strategies. Second, don't use ping. Third, do use project 'heartbeat' and 'fake'. They provide what you need. Heartbeat is a component of Linux-HA, which is why I pointed to the latter ;-) http://www.linux-ha.org/Heartbeat -- Oleg Goldshmidt | p...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il