Ubuntu: Access samba shares before login



Question:

I installed Ubuntu 12.10 on an old Compaq C300. I want to use it to share my movies over LAN so that the rest of my family can watch without hi-jacking my PC.

I installed samba and shared the Public folder under the Home folder of my user account. But I can only access this folder from my Win 7 PC when I am logged in. If I log out or restart without logging in then I cannot access the shared folder.

I am used to the Windows service that starts at boot making shared files available over the network before the user has logged in. How can I accomplish this in Ubuntu?


Solution:1

  1. Unshare the Public folder;
  2. Open the smb.conf file (press Ctrl+Alt+T to open a terminal, then run sudo gedit /etc/samba/smb.conf) and insert these lines at the end of the file:

    [Public]      path = /home/<username>/Public      public = yes      writable = yes   # Only add this line if you want to give them write (create, delete, modify) permissions.  

    Then save and close the editor;

  3. Still in terminal run sudo service samba restart, or just reboot the computer.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »