User Tools

Site Tools


raspberrypi:samba

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberrypi:samba [2013/05/29 22:45] rlunaroraspberrypi:samba [2018/03/18 19:26] (current) – removed rlunaro
Line 1: Line 1:
-====== Install samba in the raspberry pi ====== 
- 
-The problems I've run into are because **you have to install two packages, not only one**:  
- 
-<code> 
-sudo apt-get install samba 
-sudo apt-get install samba-common-bin 
-</code> 
- 
-**Note:** if you don't install the later package ''samba-common-bin'' you won't find the program smbpasswd which is critical to create a user. Ok, if you want to have all the files open to the public, it might won't be neccesary. 
- 
-After this, modify the ''/etc/samba/smb.conf'' file to include your own share:  
- 
-<code> 
-[workspace] 
-        path = /home/rluna/workspace 
-        read only = no 
-        writeable = yes 
-;       browseable = yes 
-        valid users = rluna 
- 
-</code> 
- 
-Then, create a user:  
- 
-<code> 
-smbpasswd -a PUT-YOUR-USERNAME-HERE 
-</code> 
- 
-Restart the service:  
- 
-<code> 
-# /etc/init.d/samba/restart 
-</code> 
- 
-And you are ready to mount from another machine:  
- 
-<code> 
-sudo mount -t cifs //192.168.1.4/workspace /mnt -o user=REMOTE-USERNAME-GOES-HERE,uid=LOCAL-OWNER-OF-FILES,gid=LOCAL-GROUP-OF-FILES 
-</code> 
- 
-~~DISQUS~~ 
- 
  
raspberrypi/samba.1369860334.txt.gz · Last modified: 2022/12/02 22:02 (external edit)