PDA

View Full Version : CIFS to a machine on DHCP


msimms
2007-03-04, 06:53 AM CST
Does anyone anywhere know how to make cifs work to connect to a windows machine that is using DHCP?

I know I can connect via IP address, I know I can pur a long lease on the dhcp, but that isnt the point, I have DHCP for a reason, so I need to connect using the windows share name //machine/share

After several hours of googling for answers, Im fed up of this - why on earth has smbfs been deprecated before cifs is capable of doing the same job?!? Im pretty sure - no, I KNOW - that Im not the only person in the world using dhcp for windows machines...

cazo
2007-03-04, 07:50 AM CST
Do you have 'samba-client' installed? The file 'cifs.txt' (from the kernel-doc package) mentions:


This filesystem has an optional mount utility (mount.cifs) that can
be obtained from the project page and installed in the path in the same
directory with the other mount helpers (such as mount.smbfs).

Mounting using the cifs filesystem without installing the mount helper
requires specifying the server's ip address.


and the mount helper 'mount.cifs' is in the 'samba-clients' package (at least, on FC4).

After that, I type:

mount -t cifs //WINMACHINE/SHARE /mnt/share -o user=guest


and it gets mounted fine (after prompting for the password).

msimms
2007-03-04, 04:36 PM CST
Thanks for trying, but nope, fraid not. I get

Mounting the DFS root for domain not implemented yet
No ip address specified and hostname not found

I guess its an incomplete package.

smallpond
2007-05-08, 08:54 AM CDT
There is a man page for mount.cifs, but i got a DHCP machine to work through the standard mount command with:

mount -t cifs //host/name /mnt/localname -o user=winloginname

It then prompts for a password. The share on the W2K machine is to all, no restrictions.
Must remount if IP changes, I assume.

Has anyone at Fedora apologized ever for removing smbfs? Its got to be their single
biggest blunder. cifs is terrible.