Thursday, 25th April 2024

Comment posted How to make Samba smbfs / cifs mount share location with user / pass credentials authenticate via file stored credentials by .

Recent comments by

Share this on:

Tags: , , , , ,

No Responses to “…”

  1. admin says:
    Google Chrome 75.0.3770.142 Google Chrome 75.0.3770.142 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

    One small hint in case if you have no password protection for a share and want to avoid the annoying pasword samba prompt the way to do it is like so:  
    smbclient -U% //192.168.1.2/My_Folder

    Once connected you can use Linux commands to list and travel between files.

    File transfer with smbclient is also possible by  using get, put, mget, and mput commands.

    View CommentView Comment
  2. admin says:
    Google Chrome 75.0.3770.142 Google Chrome 75.0.3770.142 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

    ♦ Something else I forgot to mention in article, If it happens that some samba pass credential has been lost it is useful to change samba user password with command:

     smbpasswd smbusername

    ♦ To create a samba entry for an existing system user, use the pdbedit command:

    if it is needded to add a complete new unexisting user to the samba users do:

     smbserver:~# pdbedit -a NewSmbUserName

    By default samba server password database (if not changed to another location in smb.conf is stored on server) under:

    /var/lib/samba/private/passdb.tdb

    View CommentView Comment
  3. admin says:
    Google Chrome 75.0.3770.142 Google Chrome 75.0.3770.142 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

    ♦ Also, If you need to join a Linux Samba Server to a Windows Domain from the Windows domain using the net command run:

    $ net join -w WINDOWS-DOMAIN -s ' win-server' -U Administrator%password

    ♦ You can then list the users in the Windows domain using wbinfo command

    $ wbinfo -u

    View CommentView Comment