Re: Samba config -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02Jul2020 16:28, Bob Goodwin <bobgoodwin@xxxxxxxxxxx> 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@xxxxxxxxxx>
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux