LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-16-2011, 01:42 AM   #1
user52
Member
 
Registered: Nov 2006
Posts: 41

Rep: Reputation: 15
samba configuration


dear sir,

i need to setup samba configuration on our linux box. pls help me out.

our requirement is to access LINUX directory from WINDOWS system.

for that somebady told me to configure SAMBA setting.

and i am new to this not able to configure. please advice from where to start and how?
 
Old 02-16-2011, 02:12 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
What distribution are you using?

You can find many tutorials online, let alone on this site. I suggest try searching first before you go posting new threads....

As far as to answer your question though, check this link out http://www.samba.org/samba/docs/man/...TO-Collection/

That will guide you through the configuration and give you well more than enough information about it. You can also use the GUI configuration tool included when you install samba. You also need to configure your firewall to allow smb and nmb through.
 
Old 02-16-2011, 02:22 AM   #3
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
thanks for your reply.

sir i already visit many sites but didn't able to figure it out what is the actual solution.

i already add the directory which i want to access from windows server to "smb.conf" file.
i already create the separate user in linux box.
but i don't know how to create smbpasswd file?

pls assist me.

i still can't able to access folder from windows to linux.
 
Old 02-16-2011, 02:32 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Ok, once again, what distribution are you using?
 
Old 02-16-2011, 02:39 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Since you already created a separate user on your Linux box you can add a Samba password for that user like this:
Code:
smbpasswd -a <youruser>
That will ask you to provide a password and confirm it. If you get an error it most likely means that your password file does not exist. Create it and set correct permissions like this:
Code:
touch /etc/samba/smbpasswd
chmod 644 /etc/samba/smbpasswd
Be sure to perform these actions as root or with sudo to avoid permission errors.

Kind regards,

Eric
 
Old 02-16-2011, 02:44 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
You can definitely do that too

I was trying to go of a GUI route for him, since he is new to it. You know, to help him it understanding from both the command line way and the GUI way.
 
Old 02-16-2011, 02:50 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi corp769,

I know, I'm 'old(-fashioned)', I like the CLI. But you're right, if you show him both ways, that is if he has a graphical environment installed on whatever distro he's using, then you can indicate how to use the GUI to obtain the same result. I'm sure that if he doesn't know where (terminal) to execute these commands, OP will ask.

Kind regards,

Eric
 
Old 02-16-2011, 02:53 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hey man, I'm old fashioned too..... I thought the same way about the OP though, so that's why I said what I have said. And for the record, figuring you can relate to this... Emacs is too new school; Vim all the way?
 
Old 02-16-2011, 03:03 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Depends if I'm on a lazy day or not, vim or nano. I know, huge difference, but if I'm lazy nano is very 'easy going' on the fingers. Never quite used emacs, seems to have lots of options and 'power' functions but never tried them.

Kind regards,

Eric
 
Old 02-16-2011, 03:06 AM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Honestly, I never used nano before. Maybe it's my time to try it out.... thanks for, umm, motivating me? Don't know the correct way to put that... LOL
 
Old 02-16-2011, 03:09 AM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
But besides thread jacking... I do believe that the newer guys getting involved with linux should learn both CLI and GUI so they understand what happens behind the scenes when they click on something, and also so they understand what and why is being done. I personally condone to using CLI. I use the CLI 500 times more than the GUI...
 
Old 02-16-2011, 03:14 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

I for one never install a graphical environment on a server, never. Only the CLI gets used on servers I install. My 'non' server machines do have GUI installed, mostly Gnome, but I find myself turning to the CLI a lot for configuration. Now, let's get back on the subject and see if OP gets back to us with some info.

Kind regards,

Eric
 
Old 02-16-2011, 08:35 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
Take a look at Samba by Example. It includes sample configuration settings for networks from simple to complex.

http://samba.org/samba/docs/man/Samba-Guide/

This is a shot in the dark, but maybe it will help:

In addition to putting the paths to the shared directories in samba.conf, you must also configure the directories to be shared. Both the path must be in Samba and the directory must be configured as shared.

Configuring directories as shared is easiest to do in a graphical file manager such as Konqueror or Nautilus by accessing "sharing" through the right-click or properties dialog.

This link shows how to do it from the command line, but the explanation is a little terse:
http://www.dedoimedo.com/computers/s...s_win_lin.html
 
Old 02-17-2011, 02:06 AM   #14
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
i have done the needful as said above but still i am not able to access the directory from linux server. pls help me....
 
Old 02-17-2011, 02:11 AM   #15
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
[root@fakorapd samba]# sudo /etc/init.d/samba restart
sudo: /etc/init.d/samba: command not found


when i am trying to restart samba services , i am getting above error message.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba configuration manoj.linux Linux - Enterprise 3 03-12-2008 09:49 AM
Samba Configuration vanderbult Linux - Networking 3 04-03-2007 12:03 PM
Samba configuration ? help me wampire Linux - Networking 10 02-12-2006 09:38 AM
Samba configuration milon Linux - Newbie 2 09-26-2004 10:01 AM
Need your help on SAMBA configuration vwhk Linux - Software 4 01-14-2002 07:12 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration