Showing posts with label Samba. Show all posts
Showing posts with label Samba. Show all posts
Thursday, June 9, 2011
Thursday, May 19, 2011
Using Samba on Ubuntu
Configure: https://help.ubuntu.com/6.06/ubuntu/serverguide/C/configuring-samba.html
smbpasswd -a jseinfeld
- 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
Subscribe to:
Posts (Atom)