Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
Please somebody please tell me how can I come to know that whether the samba server is installed in the machine or not. My intension is to install samba server if my machine is not having it and want to configure it. Systems around me are Windows. So I want file browsing between them and me . So is it easy to configure it? If so please tell me or if it is dificult to tell all the steps, please point me to a document where I can find help in my configuration
Please help me as I am a newbie. Waiting for your reply.
Bye
Lot of Thanks in Advance.

try "whereis smbd" (without quotes) and if you have it it should respond with something like smbd: /usr/sbin/smbd
then to see the version just
/usr/sbin/smbd -V
to show what you currently have.
hope this helps.

Hi,
Thanks for the information. But could you please tell me where I can get a hel to configure or change the comfiguaration file of samba? PLease tell me what all are the important parameters which I have to take care while changing the configuration file?
Please point me to a page where I can get these information if you find bugging to answer my questions.
Please help as I am a newbie. Waiting for your respondse. Lot of Thanks in Advance. Bye.

The file to modify is "/etc/samba/smb.conf". To get you started, simply modify the "workgroup" section to match your Windows "workgroup" (Control Panel, Network, Identification tab, at least on Windows 95).
workgroup = wkgroupname
Then, put ";" in front of the lines about using the smbpasswd versus the standard passwd:; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswdSave the file.
Then, enter "service smb restart" at a Linux prompt.
Now, you will be able to have shares available to your Windows machines, if you have users set up in Linux, that is. If not, enter "adduser username" and then "passwd username" for a password.
Good luck.

I forget to mention that you'll need to log in to Windows with the same name as the user(s) set up in Linux for that "home" share to show up (this isn't necessary if you change the smb.conf file to accommodate other shares). Also, if the shares don't seem to show up in "Network Neighborhood", then try Clicking on the Start button, and then Run, and then type "\\10.10.10.10" (replacing 10.10.10.10 with the IP address of the Linux server running the Samba server).
To modify the smb.conf file ("set up samba shares on my linux box from the shell prompt"), use "vi" or "pico" or any text editor to modify it, then save it, and type "service smb restart" to load the changes.

I've come across a web administration tool to modify the smb.conf file. It is a great tool for the beginner, as there is a help portion for each field. If I were you, I'd ignore my prior posts, and use this tool. To get it to work, though, you'll need to have the samba-swat package installed, as well as the standard samba package. To see if it's there, enter "rpm -q samba-swat" at a shell prompt. It will either return with a line containing the version, or it will say it's not installed.
You'll now need to modify the file "swat" in "/etc/xinetd.d" and change the disable portion to "no". Then, restart "xinetd" by entering
"service xinetd restart"
Next, go into your web browser, and type "localhost:901" (assuming you have localhost in your /etc/hosts file pointing to your ip address) and it should ask for the root password (you can use a different user by modifying the swat file and change the user field, then, of course, restarting the xinetd daemon).
Next, go into "globals" and modify the workgroup to yours and change security to share. Next, click "commit changes", and when that's finished, go to "shares" and find "homes" and "delete share". Then, enter the name of the new share in the text box and "create share". Next, change the path to what you want to share, change "read-only to no" if you so desire, and change "guest ok" to yes (so you won't have to enter a password). Next, click "commit changes". Now, go to "status" and stop both the smbd and nmdb daemons and then start them for all your changes to take effect.
Note: If you want your share to not be read-only, then you'll also need to go to the directory that contains the directory that you want to share, and enter
"chmod 777 newsharedirectory" to give write permissions to non-root users, such as Windows users.
Next, in Windows you will enter "\\10.10.10.10" (replacing 10.10.10.10 with the IP address of the Linux server running the Samba server), after clicking "Start" and "Run". The newly created share should show up.
In Linux, enter
"smbmount //10.10.10.10/newshare /mountpoint" and press ENTER through the password.I hope this helps. Good luck.
Keep in mind that all of this is done using Redhat 8. It may or may not be applicable to other distros.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |