On 2020-07-02 19:01, Cameron Simpson wrote:
On 02Jul2020 16:28, Bob Goodwin<bobgoodwin(a)fastmail.us>
wrote:
> My problem is getting the smb server mounted on this computer.
> Creating a working lie in /etc/fstab is the present problem, I can't do
> much more without that.
>
> Presently I have been trying: //192.168.50.149/home/share
> /media/smb cifs defaults 0 0
Here is a working cifs line from a client's fstab below, with names
changed. All on one line of course.
//cifsserver/sharename /mnt/mountpoint cifs
uid=localusername,gid=localgroupname,credentials=/home/someuser/.smbcred,iocharset=utf8,noperm,dir_mode=0775,file_mode=0664
0 0
The .smbcred file mentioned contains the CIFS username and password. It
looks like this:
domain=
user=
password=
filled in with the windows workgroup/ad-domain, windows user and windows
password. It can of source be anywhere; I'm storing it in the account of
the user associated with the share.
To test it, the command:
mount /mnt/mountpoint
gets all the details from the /etc/fstab file. The command "man
mount.cifs" details the parameters available ("uid=" etc). So the above
presents the share as owned by "localusername", group owned by
"localgroupname", uses UTF-8 for the filesystem paths.
Cheers,
Cameron Simpson<cs(a)cskk.id.au>
_______________________________
°
I have tried something similar but I'll use this fstab line as a
starting point tomorrow, end of day here ...
Thank you for the help,
--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
FEDORA-32/64bit LINUX XFCE Fastmail POP3