Using Samba on Ubuntu
Configure:
https://help.ubuntu.com/6.06/ubuntu/serverguide/C/configuring-samba.html
- sudo apt-get install smbfs smbclient
- smbclient -L 192.168.1.2 -U%
- smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000
- smbumount /home/dbott/music
- adding in fstab (unsecure): //192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0
- adding in fstab (secure): //192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0
- gedit /root/.credentials
- and add the following text:
- username=your_smb_username
- password=your_smb_password
- Now, make the file only readable by root:
- sudo chmod 600 /root/.credentials
- At this point, you can either reboot or reload your fstab:
- sudo shutdown -r now
- sudo mount -a
No comments:
Post a Comment