The first step is to create a share folder on your hard drive; for instance, /disk2/data. After that, you need to edit the smb.conf file, found in /etc/samba, and make it look something like this:
# Global parameters[global]
workgroup = HOME
netbios name = SAMBA
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
# Share[Data]
path = /disk2/data
valid users = nik
read only = No
create mask = 0777
directory mask = 0777
You can copy and paste this into your conf file or make changes to your existing one.
The workgroup name needs to be the workgroup of your Windows computers, or your domain name. The netbios name is what will appear when you access the Linux computer from Windows. I am currently running a Windows domain with this setup, so I have the preferred master and local master set to no to avoid both servers from attempting to be the master browser. This will eliminate network conflicts on your Windows computers that can cause network-related outages.
For the share details, specify the valid users, or set them up later. In that section you can allow users to create their own folder and files for all to access.
The next step is to add users by the following command:
# useradd -c “Nikesh Jauhari” nik
# smbpasswd -a nik
New SMB password: secret
Reenter SMB password: secret
Added user nik
Next, run the testparm command to ensure that the conf file is valid. If it returns no errors, restart Samba with the command /etc/rc.d/rc.samba restart.
Now you’re ready to test Samba. On a Windows computer, you can either map a drive to the Samba server or access the drive using the Start-Run command and typing \\Samba\data, “Samba” being the server name and “data” being the shared folder.
One disclaimer: this setup serves a small network or a home network. For a larger user base and more complex network configuration, you may want to use the documentation provided on the Samba Web site
Thursday, July 17, 2008
Quick and Simple Samba configuration
Subscribe to:
Post Comments (Atom)
Linuxpoison Archive
-
▼
2009
(159)
-
▼
July
(10)
- Getting System Information (OpenSuSe) - phpSysInfo...
- Squid Authentication using RADIUS
- SQL client and front-end for multiple database- cr...
- Limit the CPU usage of an application (process) - ...
- Windows "Screen Of Death" now on Linux (GDM Theme)...
- Improving filesystem read performance using "noati...
- Auto reboot after kernel panic
- How do Flush DNS Cache in Linux
- Multi-protocol, Multi-source, Fast and Reliable Do...
- Query Apache logfiles via SQL
-
►
June
(28)
- Mac4lin - Give that Mac OS X look to Linux
- Complete and Reliable Password Manager for OpenSuS...
- Hiding secret data into image and audio files (Ope...
- Archiving, Encryption and File split tool - PeaZip...
- DenyHosts Installation and Configuration on OpenSu...
- How to calculates CRC checksum and the byte count ...
- Block ssh brute force attack on OpenSuSe
- Searching files using catfish - OpenSuSe
- History of Unix-like operating systems showing Lin...
- Kool Ubuntu GDM Themes
- KDE desktop Blogging Client - KBlogger
- Twitter client for KDE 4.2 - KDEtwitter
- Microblogging client for Twitter, Jaiku, Facebook,...
- Front-end for the ClamAV antivirus toolkit - klama...
- How to disable loading of unnecessary kernel modul...
- Increase the booting speed of Fedora
- How to Edit PDF Files in Linux - PDFEdit
- Multimedia Support in Fedora 11
- How to Cut/Split Video using Avidemux
- Create Ubuntu packages (deb)
- Install MS True Type Fonts in Fedora
- Increasing Bugzilla attachment size & saving large...
- Squid Error : Name error: the domain name does not...
- How to list Open Files and Network Connections
- Linux Market Share Passes 2%
- Setting the SUID/SGID bits
- OpenSUSE 11.1: Documentations
- Secure alternative to telnet
-
►
May
(20)
- Philosophy of free software (Video) by Richard Sta...
- Reducing load on web server by using reverse proxy...
- Next Generation of the Fastest P2P Program - Frost...
- (R)ecovery (I)s (P)ossible Linux rescue system
- Download/Upload files from torrents/Rapidshare or ...
- Fighting Spam mails
- How to set Cron/At Access Control
- How to set Access/Restrictions on users logins
- How to allow access to the mail server by individu...
- Create Screencasts on OpenSuSe with recordMyDeskto...
- Transferring audio/video to iPod on OpenSuSe
- Deluge BitTorrent client - OpenSuSe
-
▼
July
(10)








0 comments:
Post a Comment