We try new and “addicted” to continue to try, make me aware that the results should “experiment” I made the proper documentation. That’s what happens when I install Linux on my work computer. Open Suse is the first distro I installed, but on the way, I feel a lot of difficulty in performing the configuration. It’s known, the new name is also familiar and new learning, still eager to learn directly from the console configuration linux, do not use its GUI applications. But apparently most of his stuck, so, switch to distro “a million people” of Ubuntu. Finally, in this distro I felt a little easier to configure as I wanted, namely in the console.
These settings may already be very easy for Linux users who’ve been using these OS. But back to my initial purpose, documenting the new things I learned, that’s what this article stated.
Setting Samba on Ubuntu
When I install, my Ubuntu Samba was not there. How do I know? I love the time command:
# Etc/init.d/samba start
The service can not walk, yo wis, finally I try to install directly from the terminal.
# Apt-get install samba
Hey, guns can also, finally I realized that my Ubuntu has not been updated.
# Apt-get update
Oh yes, the last two commands can be executed if the Internet connection
connected, if the guns? yes guns can.
Then I repeated the command:
# Apt-get install samba
Successful. Further, I wanted to share a folder, a folder that I want to share is/home/documents/. I run nautilus from the terminal.
# Nautilus
I go to/home/documents/, right click and select the share options, direct me OK.
Then my next task is adding samba users on the system
# Useradd username
# Smbpasswd-a username
Then create a configuration file that will be used to accommodate the samba user
# Pico/etc/samba/smbusers
paste the following lines:
system_username = “username”
save and exit of edits
The script below to create a shared folder on a computer accessible to us when others would ask loaded password. Find the line:
; Security = user
replace with:
security = user
username map = /etc/samba/smbusers
save and exit
To reset the security level = share (do not need a password to access the samba): make sure there is this script:
security = share
domain master = yes
domain logons = yes
encrypt passwords = yes
security = share
To test whether the configuration has been successful, type the command:
# Testparm
then restart samba
# /Etc/init.d/samba restart
Mensharing home folder with an option to read and write
edit the file smb.conf
search classifieds
# By default, the home directories are exported read-only. Next Change
# Parameter to ‘yes’ if You Want to Be Able to write to Them.
writable = no
…
replace with
…
# By default, the home directories are exported read-only. Next Change
# Parameter to ‘yes’ if You Want to Be Able to write to Them.
writable = yes
…
his samba restart
To access the linux my linux computer from windows computer, start aging on the run, I just type //ip_address, the same as any other windows computer access.
From a fellow linux, simply type: smb: ///ip_address on his ubuntu nautilus.