I am unable to convince my new Linux server that it should be able to mount shared folders from Windows servers on our network. I admit that I am a Linux newbie, but I am an experienced Oracle DBA and an experienced Windows user and administrator. I am also the Windows administrator for the two Windows servers I am trying to connect to from Linux, so if I need to make registry edits or other changes there, I can. I have succeeded in getting Samba configured on Linux to make directories there available to Windows, but so far I have only been frustrated in trying to get Linux to use the Windows shares. My Windows servers are running WindowsServer2003 and they are both member servers in our Windows-based network, but they are not the Primary Domain Controller, or a Backup Domain Controller.
My Linux server is RedHat ES 3..? I don't even know how to get the exact version number from Linux. I have the box that the RedHat CDs came in a few months ago when I bought them, but that doesn't have a specific version number on it either.
I have looked at the "man" pages for mount and smbmount, but I find them disappointing. They have all of the syntax possibilities, but no examples! I consider that a deficiency.
I have done some searching on this site, and found exmples of syntax like this that is supposed to work:
mount -t smbfs -o username=user.name,passwor
d=thepassw
ord,workgr
oup=BC
//server/name_of_share /mountpoint
but, I just get:
3160: session setup failed: ERRSRV - 2240
SMB connection failed
When I tried putting the domain and username together, I just get:
mount -t smbfs -o username=domain\user.name,
password=t
hepassword
, //server/name_of_share /mountpoint
3171: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
We don't have Windows workgroups, we have a domain, but none of the Linux help I have found mentions where to put the domain name.
Yes, I did create a mountpoint in Linux first, and yes I am trying this as root. That brings up a followup question. Assuming that I can get this to work manually, I need to automate the mounting of these Windows shares when Linux reboots (which hopefully will be rare) but also when the Windows machines reboot (which may be more often). I need these shares available to a non-root user in Linux, but if the Windows machine was rebooted, and my non-root Linux user tries to access this Windows folder, will that be automatically remounted? I'm guessing not. Can my non-root user initiate a remount? Or, how is this usually handled in Linux?