Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried it umpteen number of times but I was never successful in configuring Samba Server ..
Having dual boot of Windows 2000 and RedHat Enterprise GNU/Linux .. Other machines acrosss the network are also running Windows 2000 .. I tried so many tutorials but none of them cud give me stepwise solution as to how to do that ..
Everyone will say, configure samba.conf or smb.conf .. Bur for God sake what to and how to configure .. Sometimes they will talk about smb-client ..
I wish to know what all I require (package wise) on GNU/Linux Machine and what I require on Windows PC ..
Let me mention again - I m having a heterogeneous network with Windows 2000 PC and RedHat Enterprise GNU/Linux Machine .. I want to all of them to share files, so that any user on any PC/Machine can access any of the shared files stored anywhere on the network ..
I hope I have been clear enough to explain my problem ..
ok. I have made a small .sxw file with some screen shots. I tried to email u thru the email button available here but couldn't do so. so, what i am doing is that I am copying and pasting my notes here w/o the screen shots. for the screens, just check ur monitor. u may substitute ur IP and user and the home directory. Hope this helps.
-------------------------------------------------------
Configuring Linux as a Samba Server
-------------------------------------------------------
1.In this scenario, we have a RHEL 3 on IP 192.168.10.99 . This contains a user called arvind whose home directory is /home/arvind. We want that this home directory of arvind should be accessible from any windows computer for everyone.
Step 1 :- Select Main Menu -> System Settings -> Server Settings -> Samba (or)
on the terminal run redhat-config-samba. You will get the following
Screen
Step 2 :- Click on Add button. You will get the following screen
Step 3 :- In the Directory box, type /home/arvind. You may also give a description
for this share. In the Basic Permissions group area, select Read-only if
you do not want the contents of this share to be changed. Read / Write
allows the contents of the share to be changed or deleted.
Step 4 :- Click on OK button to close the window
Step 5 :- From the terminal, start the samba service using the command
service smb start
Step 6 :- From any windows computer, select Start -> Run and then type
\\192.168.10.99 . A window will open showing the folder arvind. You
may double click on this icon and then start working on it as though it was
a windows share.
2.In this scenario, we have a RHEL 3 on IP 192.168.10.99 . This contains a user called arvind whose home directory is /home/arvind. We want that this home directory of arvind should be accessible from any windows computer for only the user Arvind.
The first 3 steps are the same as that of the previous scenario
Step 4 :- Click on the Access tab. You will get the following screen
Step 5 :- Click on Add User button. You will get the following screen
Step 6 :- Here, you would need to map your existing users to samba users. In the
Unix Username drop down box, select the user arvind. In the Windows
Username box, type the name with which you want this user to access the
share. Let us type arv in this case. In the Samba Password and Confirm
Samba Password boxes, type the desired password (This password may
be different than the original Linux password for this user).
Step 7 :- Follow steps 4 & 5 from the previous scenario.
Step 8 :- From any windows computer, select Start -> Run and then type
\\192.168.10.99 . You will be asked for username and password. Provide the user name and password. A window will open showing the folder arvind. You may double click on this icon and then start working on it as though it was a windows share. Note that if you give some other username and
password, the share will not be accessible
i havent practically tried Linux to windows connectivity. I only know that u need to start the winbind service to access a windows share from a linux client. the notes i gave u was accessing a linux share from a windows network.
Kris that was really nice of u .. I appreciate it .. I have one query .. Suppose I dnt have Samba on my machine .. From where I can download it and moreover what I want to know is that what all different packages I need to install .. As I wrote earlier also, once I was having Samba but it said "Some problem with smb-client" .. Do I have to install some "server" and "client" separately ..
I think, at present my problem is due to the absence of this smb-client package .. So first of all I will check whether I have everything in place or not .. That has been really informative .. Anyway, where u from, there is no location in ur profile ..
Am from Chennai, Tamil Nadu, India. My name is Vijay Krishnan. I see from ur profile that u r also from India. Which part are u from. further, once u have sorted out ur samba problem, I have a few issues in Linux too. I have posted 2 problems of mine on RAID 1 & RAID 5. Please see if u can help on those areas.
I am from North (50 KMS from Delhi) .. I saw the threads, u posted .. But I m afraid, I won't be of much help .. No idea abt RAID .. I hope that someone will reply soon abt ur thread ..
Thanx .. Faridabad !!! Thats too close .. From Delhi, there is national highway 8 to Dehradun .. On that highway, after 50 KM from delhi, there is a city by the name Meerut .. Thats my place .. Good Luck with ur Thread
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.