User Tools

Site Tools


ubuntu:samba:samba_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:samba:samba_configuration [2019/12/04 19:11] – created peterubuntu:samba:samba_configuration [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 168: Line 168:
 <code bash> <code bash>
 ## Option: manually kill and start on OpenBSD ## Option: manually kill and start on OpenBSD
- pkill smbd;pkill nmbd +pkill smbd;pkill nmbd 
- /usr/local/libexec/smbd /etc/samba/smb.conf +/usr/local/libexec/smbd /etc/samba/smb.conf 
- /usr/local/libexec/nmbd /etc/samba/smb.conf+/usr/local/libexec/nmbd /etc/samba/smb.conf
  
 ## Option: HUP on OpenBSD ## Option: HUP on OpenBSD
- kill -HUP `cat /var/run/smbd.pid` +kill -HUP `cat /var/run/smbd.pid` 
- kill -HUP `cat /var/run/nmbd.pid`+kill -HUP `cat /var/run/nmbd.pid`
 </code> </code>
  
Line 181: Line 181:
 ===== Mounting a smbfs/cifs network export ===== ===== Mounting a smbfs/cifs network export =====
  
-To mount the samba partition to a Linux or BSD box on the network you can use the following line.  Place it in the /etc/fstab on the machine you want to mount from.+To mount the samba partition to a Linux or BSD box on the network you can use the following line.
  
-In this example we have two machines, samba_box which runs samba and another machine called BSD_box where we want to see the files from.  This line will mount the directory /big_disk/archive from //samba_box to /dir_name on BSD_box. The mount will be read only and log in as guest.  This works fine with the example smb.conf from above.+Place it in the /etc/fstab on the machine you want to mount from. 
 + 
 +In this example we have two machines, samba_box which runs samba and another machine called BSD_box where we want to see the files from.  This line will mount the directory /big_disk/archive from <nowiki>//samba_box</nowiki> to /dir_name on BSD_box. The mount will be read only and log in as guest.  This works fine with the example smb.conf from above.
  
 <file bash /etc/fstab> <file bash /etc/fstab>
-## /etc/fstab 
 ## Samba mount (from BSD_box to samba_box) ## Samba mount (from BSD_box to samba_box)
 //samba_box/big_disk/archive   /dir_name   cifs   ro,username=guest,password=guest 0 0 //samba_box/big_disk/archive   /dir_name   cifs   ro,username=guest,password=guest 0 0
 </file> </file>
- 
- 
  
ubuntu/samba/samba_configuration.1575486675.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki