Samba sharing on Linux

Linux server

Start smbd.service and nmbd.service.

smbstatus
list current clients
nmblookup -A <client IP>
get client name
smbpasswd
change authorized user's password
pdbedit
control authorized users

Directories on bebop's samba share should be 0770 samba:max in order for both users to write.

Linux client

smbtree
show all servers on network
smbclient -L <server name> -U <username>
List shares on <server name>
smbclient '\\<server name>\<share>' -U <username>
quick ftp-like share access
nmblookup <server name>
get IP address of <server name>
mount -t cifs //<server IP>/<share>[/dir ...] <mount point> -o username=<username>
mount <share>. Additional useful options: dir_mode=0<octal permission> (700), file_mode=0<octal permission> (600), uid=<local username>, gid=<local group>

Linux


Last modified on 11 Jun 2016 at 04:46:17 AM ET