LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-03-2015, 12:07 PM   #1
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Rep: Reputation: Disabled
i am new to samba and smb.conf


i am new to samba. i am unable to configure samba server. i dont know how smb.conf's parameters(eg:[homes][profiles],etc) work. i was googling from so many days but i am having problems and having so many questions.. please any one help. please explain me about smb.conf parameters or suggest sum sites where i can get complete knowledge or suggest me video tutorials(only about samba,smb.conf).. please help me. sorry for my english.. thank you
 
Old 02-03-2015, 06:55 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
Welcome to LinuxQuestions.

What distribution/version are you running and what are you trying to accomplish i.e. what are you trying to share?
 
1 members found this post helpful.
Old 02-03-2015, 09:10 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
The best reference I have found is Samba by Example. It walks you through configuration, starting with the simple and moving to the complex, with example configuration files. That was the reference that helped me get my own home file server working for the first time.

One thing you might check: If you are trying to set up a file server, check that you have Samba server installed. Most distros come with Samba client installed, but many do not come with Samba server.

The user agent icon to the left of your post says that you are using Ubuntu. This should help, even if you are using a Ubuntu derivative: https://help.ubuntu.com/10.04/server...ileserver.html
 
1 members found this post helpful.
Old 02-04-2015, 03:34 AM   #4
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sir michaelk
Thank you for responding to my question i am using Cantos 6 in VMware workstation.. i want create Roaming profile for all users in my Cantos server i successes fully configured NIS server and i want gave drive sharing to that users. after giving a shared drive i will apply Quota for that shared drive to some of the users. i dont know smb.conf's parameters how they will act in the run time.. i tried so many videos to configure samba server server but finally i failed. i hope you can understand my problem still i am a Lerner of Linux..
Note: i am not using any windows client for users to log in with roaming profile
 
Old 02-04-2015, 03:45 AM   #5
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sir frankbell thank you for suggesting me the link https://help.ubuntu.com/10.04/serverguide/samba-fileserver.html i hope this will help me. yes i installed Samba server but i am unknown of samba server and its configuration files. in the above replay i explained about my problem if possible gave me sum suggestions on it. i will once again prepare my samba server with suggestions thank you.
 
Old 02-04-2015, 07:52 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
Here's a portion of my smb.conf file in case it helps you. We have a mixed Windows/Linux network, and this configuration make the share available to either OS.

Code:
~/ $ cat /etc/samba/smb.conf
# Global parameters

[global]
workgroup = workgroup
security = share
encrypt password = yes
smb passwd file = /etc/samba/smbpasswd
show add printer wizard = No
wins support = no

[sharefiles]
path = /path/to/some/directory   
guest ok = yes
read only = no
available = yes
browsable = yes
public = yes
writable = yes
 
1 members found this post helpful.
Old 02-07-2015, 05:06 AM   #7
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sir frankbell Thank you for supporting me.

The above smb.conf helped me. i understand a little about smb.conf's parameters . Now i am facing a problem with smb.conf. i configured the smb.conf and maked it as PDC and now my windows 7 & windows Xp could not able to join the Domain(Samba) and i patched the windows 7 registries to join domain but it fails to join the domain. the Error is " the following error occurred attempting to join the domain cents " and just now after a restart the problem is solved. but "smbpasswd(/etc/samba/smbpasswd)" and "smbusers(/etc/samba/passwd)" does not upadating.
Quote:
windowsx-4e6d8c$:x:510:100:Workstation (windowsx-4e6d8c$):/nohome:/bin/false
winclient$:x:511:100:Workstation (winclient$):/nohome:/bin/false
user1:x:512:512::/home/user1:/bin/bash
user2:x:513:513::/home/user2:/bin/bash
[root@trail /]# smbpasswd -a user1
New SMB password:
Retype new SMB password:
Added user user1.
[root@trail /]# cat /etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
[root@trail /]# cat /etc/samba/smbpasswd
[root@trail /]#
This my smb.conf file

Quote:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[Profiles]"
Processing section "[shares]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
workgroup = CENTOS
netbios name = SHAHIDENTOS
server string = Samba Server Version %v
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
add user script = /usr/sbin/useradd "%u" -n -g users
add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
logon script = netlogon.bat
logon path = \\%L\Profiles\%U
logon drive = H:
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
wins support = Yes
idmap config * : backend = tdb
cups options = raw

[netlogon]
comment = Network Logon Service
path = /netlogon
read only = No
guest ok = Yes

[Profiles]
path = /home
read only = No
guest ok = Yes
browseable = No

[shares]
comment = sharing file to all
path = /share
read only = No

Last edited by shahidshaik786; 02-07-2015 at 06:15 AM.
 
Old 02-07-2015, 09:34 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
Supporting fellow Linux users is why we are here. We were all newbies once.

Domains are another story; my configuration was for a simple home network workgroup.

If you are running a true domain, as opposed to a workgroup, that adds many layers of complexity. Could you clarify whether this is a true Windows domain with a domain controller and active directory and all that stuff?

Last edited by frankbell; 02-07-2015 at 09:36 PM.
 
Old 02-08-2015, 08:48 AM   #9
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sir frankbell thank you for responding to my question

i am little confused about samba. i am surfing whole web to understand samba. i want to be a good linux system administrator after that i want to be good CEH(certified ethical hacker) to serve corporate company's.
i am learning from web with little knowledge of Linux basics. i really don't know how the servers will work on the background i am following sum videos on the YouTube to configure server or etc which contain little information and lots-off questions.
Quote:
Could you clarify whether this is a true Windows domain with a domain controller and active directory and all that stuff?
i think i am making samba as DOMAIN_PDC(Primary Domain Controller) for Windows clients.
i installed NIS(Network Information Services) and it is working fine.
i installed samba with above configuration
>when i try to join windows clients to samba Domain it will gave Error
Quote:
The following error occurred attempting to join the Domain " centos"
Logon failure: Unknown user name or bad password
> some times it joins the Domain with same password and username i supplied in the previews which gave error > But if i want to change any settings in the windows 7 client it prompts for administrator credentials on > > supplying same username and password it fails and asks again.
> samba server does not update "smbpasswd" & "smbusers"
> i can not locate where this user details and passwords are updating.

sorry for this type of questions but i want to learn.. Thank you for till now supporting me.
 
Old 02-08-2015, 11:47 AM   #10
shahidshaik786
LQ Newbie
 
Registered: Feb 2015
Location: vijayawada,AP,india
Distribution: Centos
Posts: 10

Original Poster
Rep: Reputation: Disabled
i am reading "Samba-HOWTO-Collection" to better understand samba.
 
  


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
How to make samba read updated smb.conf file without restarting samba anon091 Linux - Newbie 13 06-30-2021 04:43 AM
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:01 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
Open Source Consulting | Domain Registration