| For those of you newbees out there trying to move from windows to linux, this would be a useful solution where you can connect from your windows system to the linux system, preciously the shares in linux. What you will need is a Linux setup in place and samba server package installed. I use Ubuntu as I feel it is the best for both desktop and server purposes. Ok now here are the steps: Lets start with the samba user creation: At the terminal put in the following the ">" sign: > sudo smbpasswd -a <username> After doing this you need to update that username in the smbusers file" >sudo gedit /etc/samba/smbusers in this file add the following <username>="<your username that just got created>"
Now lets edit the configuration file to tell samba the details: > sudo gedit /etc/samba/smb.conf (gedit works only if you have the X windows configured) Once you open up the file search for the following section ####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html # in the samba-doc package for details. ; security = user Make the following changes: security = user <- here put the name of the user who will have access to the share username map = /etc/samba/smbusers Now lets do the sharing: In the same file find the following section: #============ Share Definitions ===============
# Un-comment the following (and tweak the other settings below to suit) # to enable the default home directory shares. This will share each # user's home directory as \\server\username
Uncomment the following(marked in Bold): [homes] comment = Home Directories browseable = yes # By default, \\server\username shares can be connected to by anyone # with access to the samba server. Un-comment the following parameter # to make sure that only "username" can connect to \\server\username valid users = %S
# By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes
And once you save all that, you can access this share from windows as \\ubuntusurvername\sharename, enter the username and password you created for samba and you are all set. |