How to setup Samba on Ubuntu
Simple, just execute
sudo apt-get install samba
Then open /etc/samba/smb.conf, you could use gedit or Vi to open the file. The smb.conf is divided into six sections:
- Global Settings
- Debugging/Accounting
- Authentication
- Printing
- File sharing
- Misc
- Share Definitions
The Global Settings can be used to configure workgroup and wins server name. The most important segments is File Sharing, this segment is used for specifying the folder or device you want to share.
After that, create a username for your samba password. This username and password will be asked each time someone want to open the folder.
The password for samba user is different from the password for the Linux operating system (although you can also make it similar).
Execute command below to create a password for a username.
sudo smbpasswd -a username New SMB password: [enter your password] Retype new SMB password: [verify the password] Added user username.
Now, restart your samba by executing command below:
sudo /etc/init.d/samba reload
Tag: Samba Setting Ubuntu, Ubuntu Samba, Samba Sharing, Windows Linux Connection
November 30th, 2007 04:52
[...] tutorial is based on Feisty Fawn 7.04 and still connected with my previous tutorial on how to setup Samba on Ubuntu [...]