Mount samba file share on linux machine

From AcrodusWiki
Revision as of 09:54, 8 November 2024 by Alex (talk | contribs) (Created page with "Use the following commands to mount a samba file share onto a local linux machine sudo mount -t cifs //samba.acrodus.uk/sharing /media/alex/smb -o username=alex Notes- cifs stands for common internet file system and is a protocol that is a subset of smb (server message block). -o option allows to specify parameters for the authentication, this can be a seperate file if required, example below username=target_user_name password=target_user_password domain=domain The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use the following commands to mount a samba file share onto a local linux machine

sudo mount -t cifs //samba.acrodus.uk/sharing /media/alex/smb -o username=alex

Notes-

cifs stands for common internet file system and is a protocol that is a subset of smb (server message block).

-o option allows to specify parameters for the authentication, this can be a seperate file if required, example below

username=target_user_name password=target_user_password domain=domain

The file share can also be mounted at boot by editing the /etc/fstab with the below

<file system>: //<IP Address of Server>/<Share on Server> <mount point>: <Mount Point> <type>: cifs <options>: credentials=<Credentials Filename>