Wednesday, February 29, 2012

Samba in Ubuntu (Mint)

I am currently using Linux Mint 12, which is derived from Ubuntu 11.10. The reason is more to personal reasons, but since most of the works are originated from the similar code base so I will keep blogging in this blog. 

I always forgot how to set up a *working* minimalist Samba setup so that I could transfer my files from my Android phones or tablet. Here goes.

In /etc/samba/smb.conf, as root edit as follows:

[Videos]
browseable=yes
readonly=no
create mask=0755
path=/home/najmi/Videos

Later, create a user with smbpasswd command;

smbpasswd -a najmi

Then restart smbd and nmbd:

sudo /etc/init.d/smbd restart
sudo /etc/init.d/nmbd restart

Test:

smbclient -L localhost -U najmi
Enter najmi's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.11]

    Sharename       Type      Comment
    ---------       ----      -------
    Videos          Disk     
    IPC$            IPC       IPC Service (Samba 3.5.11)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.11]

    Server               Comment
    ---------            -------
    VOSTRO-MINT          Samba 3.5.11

    Workgroup            Master
    ---------            -------
    WORKGROUP           

No comments: