On 2020-07-02 19:01, Cameron Simpson wrote:
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@xxxxxxxxxx>
°
have tried to incorporate my data in your sample fstab line:
//192.168.50.149/home/share /media/smb cifs
uid=bobg,credentials=/home/bobg/cred,iocharset=utf8,noperm,dir_mode=0775,file_mode=0664
0 0
My credential file:
[bobg@WS1 ~]$ cat /home/bobg/cred
user=bobg
password= my passwd
However the end result fails in the same way as others I tried which I
thought would work but refuse to mount.
[root@WS1 bobg]# mount //192.168.50.57/home/share /media/smb
Password for bobg@//192.168.50.57/home/share:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel
log messages (dmesg)
Obviously I still have something wrong somewhere. I may do better
deleting everything and starting over ...
--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
FEDORA-32/64bit LINUX XFCE Fastmail POP3
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx