[opensuse] Again: smb:// works, mount -t cifs not
Hi, When I connect with Konqueror (KDE4.0.4) to an internal server (smb://gerver) I can see all of it's contents. When I try to connect in konsole: mount -t cifs //gerver/film /mnt/gerver/film/ mount error: could not find target server. TCP name gerver/film not found No ip address specified and hostname not found Why does it work in konqueror and not in konsole? Regards, André -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-01 at 11:58 +0200, drek wrote:
When I connect with Konqueror (KDE4.0.4) to an internal server (smb://gerver) I can see all of it's contents. When I try to connect in konsole: mount -t cifs //gerver/film /mnt/gerver/film/ mount error: could not find target server. TCP name gerver/film not found No ip address specified and hostname not found
Why does it work in konqueror and not in konsole?
I have the same problem. opensuse 10.3 and kde 3. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIagMqtTMYHG2NR9URAiBrAJ4kZP8Kft1iQxbsQJuUepuYT8xZJQCcD3mj dwEsFKaZ/+yKjgGslH6gybc= =qQVW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carlos E. R. wrote:
The Tuesday 2008-07-01 at 11:58 +0200, drek wrote:
When I connect with Konqueror (KDE4.0.4) to an internal server (smb://gerver) I can see all of it's contents. When I try to connect in konsole: mount -t cifs //gerver/film /mnt/gerver/film/ mount error: could not find target server. TCP name gerver/film not found No ip address specified and hostname not found
Why does it work in konqueror and not in konsole?
I have the same problem. opensuse 10.3 and kde 3.
-- Cheers, Carlos E. R.
Have you tried the mount with the IP address rather than server name? I not certain whether this relevant but you are also not passing a username which means you are attempting to login with the contents of $USER. Rather looks like a service location issue (you need a special DNS record otherwise client will not connect to a domain with cifs). I would suspect Konqueror is using old style SMB connectivity rather than the more recent cifs which might explain difference. It also depends a bit whether you are using a workgroup or a domain (IIRC cifs does not really work well with workgroups). - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIahI3asN0sSnLmgIRAqveAKDU4nfdO+DmCrNELI8gflNucUgPUwCdG0Gf i1P0bhCrBWMo+JLpVjT+zoI= =mR2j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Carlos E. R. wrote:
When I connect with Konqueror (KDE4.0.4) to an internal server (smb://gerver) I can see all of it's contents. When I try to connect in konsole: mount -t cifs //gerver/film /mnt/gerver/film/ mount error: could not find target server. TCP name gerver/film not found No ip address specified and hostname not found Why does it work in konqueror and not in konsole? I have the same problem. opensuse 10.3 and kde 3.
-- Cheers, Carlos E. R.
Have you tried the mount with the IP address rather than server name? I not certain whether this relevant but you are also not passing a username which means you are attempting to login with the contents of $USER. How do I get the IP Address if I only know the name? The server is freely accesible, so I don't have to use an username? André -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 drek wrote:
G T Smith wrote:
Carlos E. R. wrote:
<snip>
-- Cheers, Carlos E. R.
Have you tried the mount with the IP address rather than server name? I not certain whether this relevant but you are also not passing a username which means you are attempting to login with the contents of $USER. How do I get the IP Address if I only know the name? The server is freely accesible, so I don't have to use an username? André
Is this home network or corporate? Is gerver a Windows machine (and if so which Windows version) or a Samba box? Are you in charge of it? If the answer to the last question is no, I would suggest using dig (or possibly ping) but if this a workgroup based setup the machine/server name could have absolutely no relationship to the IP based hostname. Simplest thing is to try .... ping gerver and see what you have, or ask whoever is in charge of the machine. If the answer is yes then go to the machine and check the current network settings. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIahs9asN0sSnLmgIRAkHAAKDyghKk+hp9IGiJgu/HocvVe1pDCACeJRV8 iPa25JjxZ1JWTaq+HbpD+NU= =eIpd -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Carlos E. R. wrote: <snip> Is this home network or corporate? Is gerver a Windows machine (and if so which Windows version) or a Samba box? Are you in charge of it? It's a server in our student flat . I have no physical access to it. It's running linux. If the answer to the last question is no, I would suggest using dig (or
drek wrote: possibly ping) but if this a workgroup based setup the machine/server name could have absolutely no relationship to the IP based hostname. Simplest thing is to try ....
ping gerver ping gerver
ping //gerver
G T Smith wrote: ping: unknown host gerver ping: unknown host //gerver
and see what you have, or ask whoever is in charge of the machine. If the answer is yes then go to the machine and check the current network settings. I asked around and found the ip address. mount -t cifs //172.20.01.100/film /mnt/gerver/film/ now works. Strange that in 10.3 I could use it's name instead of it's IP. Thanks for your help!
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2008-07-01 at 14:43 +0200, drek wrote:
G T Smith wrote:
Carlos E. R. wrote: <snip> Is this home network or corporate? Is gerver a Windows machine (and if so which Windows version) or a Samba box? Are you in charge of it? It's a server in our student flat . I have no physical access to it. It's running linux. If the answer to the last question is no, I would suggest using dig (or
drek wrote: possibly ping) but if this a workgroup based setup the machine/server name could have absolutely no relationship to the IP based hostname. Simplest thing is to try ....
ping gerver ping gerver
ping //gerver
G T Smith wrote: ping: unknown host gerver ping: unknown host //gerver
and see what you have, or ask whoever is in charge of the machine. If the answer is yes then go to the machine and check the current network settings. I asked around and found the ip address. mount -t cifs //172.20.01.100/film /mnt/gerver/film/ now works. Strange that in 10.3 I could use it's name instead of it's IP.
With CIFS? On 10.3 I always have to use the IP address. Or put it in /etc/hosts myself. Or hope that it is resolved via DNS. Any windows name lookup is not done by CIFS. Only if you used smbfs you could use a name not resolved via /etc/hosts or DNS, as smbfs seems to consult other resources on the network to resolve a machine name. IMO, it sounds like 11.0 and 10.3 are acting the same. Also, as ping is not working, either you do not have your DNS client on the 11.0 set up, or the Linux server is not telling. Is the Linux server also the DNS that should resolve the name?
Thanks for your help!
-- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 And remember: It is RSofT and there is always something under construction. It is like talking about large city with all constructions finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-01 at 12:17 +0100, G T Smith wrote:
I have the same problem. opensuse 10.3 and kde 3.
Have you tried the mount with the IP address rather than server name? I not certain whether this relevant but you are also not passing a username which means you are attempting to login with the contents of $USER.
I use this line in fstab: //172.16.168.128/COMPARTIDA /mnt/smb/bambi cifs noauto,user 0 0 It is a Win-Me virtual machine in a vmware in the linux host, the same one I try to connect from. From konqueror I connect without problems: it asks for user and passwords, and works. nimrodel:~ # ping bambi PING bambi (172.16.168.128) 56(84) bytes of data. 64 bytes from bambi (172.16.168.128): icmp_seq=1 ttl=128 time=42.4 ms 64 bytes from bambi (172.16.168.128): icmp_seq=2 ttl=128 time=17.9 ms - --- bambi ping statistics --- 3 packets transmitted, 2 received, 33% packet loss, time 2009ms rtt min/avg/max/mdev = 17.949/30.197/42.446/12.249 ms cer@nimrodel:~> mount /mnt/smb/bambi/ Password: mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) It doesn't ask for the username, but it is the same as the local user (cer). If I change the fstab line to //172.16.168.128/COMPARTIDA /mnt/smb/bambi cifs noauto,user,user=cer 0 0 I get: nimrodel:~ # mount /mnt/smb/bambi/ Password: mount error 2 = No such file or directory Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) I change back to //172.16.168.128/COMPARTIDA /mnt/smb/bambi cifs noauto,user 0 0 and retry: nimrodel:~ # USER=cer mount /mnt/smb/bambi/ Password: mount error 2 = No such file or directory Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) On other ocassions I get host down, which is false. I have never been able to connect to any samba share except by using konqueror. Never. Not in my machine, not in others.
I would suspect Konqueror is using old style SMB connectivity rather than the more recent cifs which might explain difference.
It has been said that cifs is buggy and incomplete :-(
It also depends a bit whether you are using a workgroup or a domain (IIRC cifs does not really work well with workgroups).
I'm not sure what Win-Me uses. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIanTetTMYHG2NR9URAh6GAJ9CirDN1OHXpp2APy5iD9g+Nq0uXQCfbDew AXGC4bIQsE9AE3U6qxTIKMk= =p3sS -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carlos E. R. wrote:
The Tuesday 2008-07-01 at 12:17 +0100, G T Smith wrote:
<snip>
It also depends a bit whether you are using a workgroup or a domain (IIRC cifs does not really work well with workgroups).
I'm not sure what Win-Me uses.
-- Cheers, Carlos E. R.
Win9x, ME, and XP Home networking are all workgroup based and if IIRC a PITA to get to communicate with domain services let alone AD (it could be done with early versions but not for XP Home). For workgroup networking each machine keeps a cache of all the other machines and resources in their workgroup and gain a picture of the workgroup by broadcasting periodic queries to other machines in the workgroup. I believe their are also some differences in the way NETBIOS is used (but I am vague in the details). For obvious reasons this does not scale well and all sorts of odd things can happen if info in the network browser gets corrupted. I would suspect the reason that smbfs works with names without further work is that it probably this older protocol and issues the appropriate queries. AD and later variants of domain services make more use of DNS, ICMP and a server location protocol to locate servers and services. (In a rather similar way to Novells Product). I suspect in the absence of a DNS server with the right configuration or a samba server with appropriate wins setting cifs has no way of resolving a resource object name. I would suggest Cifs is not broken, it just does not support the older and much more unreliable protocols. Windows workgroup networking was broken when it came out, and I rather suspect one of the reasons that this is no longer actively supported was that no-one was willing to keep the cripple going. If you set up either your DNS or /etc/hosts to map the hostname cifs will work as expected for cifs. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIa1Q2asN0sSnLmgIRApNIAKCuVWsQeRmgNXaro8JHuJW5cqsLgwCg0swt U7WYgQ7bIQ0lgCPSw2hkwCs= =nOb+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-07-02 at 11:11 +0100, G T Smith wrote: ...
If you set up either your DNS or /etc/hosts to map the hostname cifs will work as expected for cifs.
Notice that I'm mounting by IP, so all that name thing doesn't affect me. And anyway, the virtual machine name is in the hosts file, and ping finds it by name. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIa1eltTMYHG2NR9URAh9PAJ0cQjzLXED18rDn2uKeZ5Mtqd7SpACdG4T7 X55WhIoRzyFUSh+0IwKMLLo= =gN3+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
The Tuesday 2008-07-01 at 11:58 +0200, drek wrote:
When I connect with Konqueror (KDE4.0.4) to an internal server (smb://gerver) I can see all of it's contents. When I try to connect in konsole: mount -t cifs //gerver/film /mnt/gerver/film/ mount error: could not find target server. TCP name gerver/film not found No ip address specified and hostname not found
Why does it work in konqueror and not in konsole?
I have the same problem. opensuse 10.3 and kde 3.
-- Cheers, Carlos E. R.
Carlos, drek, It is difficult to tell why you are having problems. Basics are (1) is your share definiion correct for server //gerver share /file? For standalone thissamba file servers your /etc/samba/smb.conf should look something like: [global] use sendfile = No workgroup = rb_law server string = Samba %v printcap name = cups load printers = yes printing = cups show add printer wizard = no disable spoolss = yes log file = /var/log/samba/log.%m max log size = 100 time server = yes admin users = david smb ports = 139 hosts allow = 192.168.7. 192.168.6. 192.168.8. 192.168.5. 127. 66.76.63.60 map to guest = bad user security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes os level = 69 domain master = yes name resolve order = wins lmhosts bcast wins support = yes dns proxy = no usershare allow guests = No [homes] comment = Home Directories browseable = no writable = yes [samba] comment = Nirvana - Skyline, Pictures, Law path = /home/samba valid users = @skyline, anna force group = skyline admin users = david browseable = Yes writeable = Yes inherit permissions = yes (2) opensuSE separates the nmbd and smbd daemons, so you must start both to hava a working cifs with name resolution. So you have to issue both rcnmb and rcsmb init scripts to get them running. (3) issuing the mount command, you need to enter a few access parameters such as UID, etc. i.e.: mount.cifs //kidsdell/config /mnt/kids-cfg/ -o username=david,uid=1000,password=xxxxxxxx,noperm be careful with "noperm" it gives essentially UID=0, or root permission from the client. If you have confirment (1), (2) and (3), then cifs mounts should be rock soliid in both directions. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Jul 2, 2008 at 11:54 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
mount.cifs //kidsdell/config /mnt/kids-cfg/ -o username=david,uid=1000,password=xxxxxxxx,noperm be careful with "noperm" it gives essentially UID=0, or root permission from the client.
That's not exactly right David. (Or perhaps it was just a quick wording choice). It gives permissions to all users on the Client to the mounted share. (which, if it is your personal machine is not a significant risk). But it does not allow any permissions that username and password credentials would not otherwise give. You MUST use noperms if your uid/gid on the client does not match uid/gid on the server, or if the server does not support unix uid/gid (such as if it is an actual windows server) Further the mount can specify uid/gid to be used such that even if there are multiple users of the client, only specific users/groups would gain access to those mounted shares. -- ----------JSA--------- "Ubuntu" is an African word meaning "Suse is too hard for me". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
David C. Rankin
-
drek
-
G T Smith
-
John Andersen
-
Roger Oberholtzer