LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-14-2003, 09:04 PM   #1
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
samba server setup domain problem


i am having a really ruff time setting up a server to act as a login server with shared space.

all i want is to have my users with their logins, and have them each have a shared drive, then, there would be a big shared drive. and im having a hell of a time doing things. everything i have done so far is wrong. can you guys please help me. thank tyou.
 
Old 10-14-2003, 10:51 PM   #2
thack111
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
what have you gotten to work? read the man smb. might help some. check the /etc/samba/smb.conf file closely.
 
Old 10-15-2003, 01:25 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you posted your config file it may help a bit.
 
Old 10-15-2003, 05:53 PM   #4
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
here is what is in my config file. i got all of this by reading other things, and realyl dont understand it... please help. thanks

Code:
[global]
	workgroup = MSHOME-M
	netbios name = LINUX-SERVER
	server string = the linux server
	security = DOMAIN
	encrypt passwords = Yes
	root directory = /home/smb
	admin log = Yes
	log file = /var/log/samba/samba.log
	max log size = 50000
	time server = Yes
	add user script = /usr/sbin/useradd -d /dev/nu.. -g 100 -s /bin/false -M %u
	logon script = logon.bat
	logon path = \\%L\profiles\%u\%m
	logon drive = H:
	logon home = \\%L\%u\.win_profile\%m
	domain logons = Yes
	os level = 68
	preferred master = True
	domain master = True
	wins support = Yes
	guest account = guest
	admin users = alex

[profiles]
	path = /ovs/samba-ntprof
	username = %U
	read only = No
	create mask = 0600
	directory mask = 0700
	browseable = No

[homes]
	path = /home/%U
	username = %U
	read only = No
	browseable = No
 
Old 10-16-2003, 01:24 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
OK. You seem to have enabled domain logins amongst other options.

Try this config:
Code:
workgroup = MYGROUP
server string = Samba Server
netbios name = linuxbox
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
os level = 65
preferred master = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
Have you created both unix and samba user accounts?
 
Old 10-16-2003, 02:31 PM   #6
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
no i have not, this is for windows and linux users to loginto.... just to let you know.
 
Old 10-16-2003, 03:36 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
With samba you need to have both unix and samba logins - they can be the same or different. Making them the same is easier to manage though.

Once you have added unix users in your usual way - use the smbadduser command to add samba users with the smae username - eg:
smbadduser blither:blither
 
Old 10-16-2003, 04:46 PM   #8
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
what is the domain, for when im setting it up on my windows and linux computers? or how do i set it.
 
Old 10-17-2003, 02:45 PM   #9
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
i get a an error when i try login in... i use MYGROUP as the domain, is that correct? it says it doesnt exist...what am i do to?
 
Old 10-18-2003, 06:53 AM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you just want to share files then try the config I posted above and don't use domains.
 
Old 10-18-2003, 05:15 PM   #11
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
well i want to use domains, tahts the problem... when i try loging into it, it says "access is denied" its on an xp pro computer. very frustrating. i have the root account setup on the samba server thing. but i stil have a problem. and i have done the stuff to the xp box taht is nessary.
 
Old 10-19-2003, 07:48 AM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Ok - then try this config:
Code:
workgroup = MYGROUP
server string = Samba Server
netbios name = linuxbox
security = domain
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
local master = yes
preferred master = yes
domain master = yes
domain logons = yes


[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
Have you added machine accounts to the linux machine and the samba password file.
 
Old 10-19-2003, 09:45 AM   #13
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
yes i have added both of the accounts. ill check to see if it works when i get back.
 
Old 10-19-2003, 09:48 AM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
By both, I assume you mean machine accounts and user accounts to both the unix password files and smbpassword files - yes?
 
Old 10-19-2003, 12:20 PM   #15
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
yes i have already setup my samba users and unix passwords, that was the first thing i check. i have been searching the forums, and google for the answer to my problem non stop for the past 3 days. with no luck i hope this, helps.
 
  


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
setup of apache server to host own domain captain skywave Suse/Novell 0 02-22-2005 01:40 PM
Problem with Win XP Clients logging in a Domain with a Samba Server YasoKuhl Linux - Networking 0 05-03-2004 01:06 PM
SuSE 9, Samba server and Win2k server domain koskoboy Linux - Networking 3 12-11-2003 06:32 AM
Join Domain in SAMBA Server radixiz Linux - Software 3 11-28-2003 02:09 PM
setup samba as Windows Domain Member ateh Linux - Networking 4 06-06-2002 03:53 PM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration