Search notes:

Samba

share

Each share is configured through a section in the /etc/samba/smb.conf file.

Find Samba servers

The network can be queried for Samba servers with the findsmb command.

Querying shares on a Samba server

$ smbclient -L hostname

Mounting a samba host

$ sudo mount -t cifs //hostname/share /mnt/some-dir -o user=rene,password=secretGarden
Apparently, it also works with the NetBIOS name:
$ sudo mount -t cifs //NetBIOSname/share /mnt/some-dir -o user=rene,password=secretGarden
If the share is mounted as above, tt seems that the mounted files and directories will belong to the root user and group which allows to read files but not to write files or create new ones. Therefore, the gid and the uid could be expclicitely stated in the mount command as well:
$ sudo mount -t cifs //hostname/share /mnt/some-dir -o user=rene,password=secretGarden,uid=rene,gid=users

Connecting to a Samba server from Windows

Assuming, sharename is e: In cmd.exe
C:\foo\bar> net use x: \\192.168.1.122\e /user:THINKPAD\rene theSecretPassword

See also

SMB, CIFS - Common Internet File System, /etc/samba/smb.conf

Index