Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Samba is an implementation of the SMB(CIFS) protocol that is
common to Windows Networking architecture around which
Workgroups and Domains are structured. Samba would be used
if you'd like to share files with Windows machines if ftp was to
much of a hassle.
Highlight what you're trying to acheive and what OS each computer is running.
well that will take some software to go abotu doing what u want to do...since u have linux and windows in ur home network you can either use ftp to share the files or you can setup samba to be able to talk between the three computers.
i think this is hwat you were asking....if not then forget it.
when they say samba server. they mean that the samba will serve the files from your box to windows boxes and it will also act as a client by being able to access shares from a windows box onto your linux box.
so yeah i guess you will have to go ahead and setup samba....it is not bad at all...specially if you have a small home network.
here is a link that i found really useful: http://www.samba.netfirms.com/index.htm
the aouthor here does not use a GUI to make the smb.conf files....u can use either swat or webmin to do the same...however make sure you have samba correctly installled etc.
you can research about swat and webmin in google.
you can get webmin from rpmseek.org or rpmfind.net
swat come with samba...alll you have to do is make sure that inetd or xinetd.d know that it's there and that its listening port(i dont remember exactly) is open...u can do this in /etc/servcies file.
i am not sure if this is the location in red hat too since red hat deos mess around with files quiet a bit.
hope this helps
do this somtheing like this: (Assuming RH 8... but should work for other distros)
Create a user on each of your windows machines (I'm assuming that you're not running a domain)
Set the user so that can never change the password, and the password never expires.
Share the correct directories on your machines
On your Linux machine
Edit the file named smb.conf in /etc/samba:
Change the workgroup = line to reflect the name of your workgroup
Check /etc/rc.d/init.d/smb file. Notice the following line:
# chkconfig: - 91 35
This line tells you that the name the start script should be S91smb
There are kill scripts at every run level rc0.d rc6.d, so that's fine (K35smb)
You need to add the links in rc3.d and rc5.d
# ln -s ../init.d/smb S91smb
# cd /etc/rc.d/rc5.d
# ln -s ../init.d/smb S91smb
Now create a directory under /root called sambacredentials
chmod 700 (rwx------) on the directory
Make a file for each share of the form servername-sc-sharename (up to you)
chmod 600 on the file
In the file put the following:
Next create directories to act as mount point for each Windows share
i.e. In /mnt create a directory for your win machine and share
Lastely, you need a way that the mount to the above directories will automatically take place on startup.
This can be acheived via the fstab file, but here I show how to place the smbmount commands in the /etc/rc.d/rc.local file instead
Therefore add the follwing to the rc.local file for each mapping:
smbmount //winmachinename/share /mnt/machine/share -o credentials=/root/sambacredentials/machinename-sc-sharename