LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-10-2006, 04:47 PM   #1
lazhome
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Help with networking and samba


Hi Everyone. I know there is a thread below with a kinda simler question, but it didnt answer mine. I have Suse 10.1 running of a P4 machine. I cant see any of the machines (almost all MS, a few macs). I followed some of the questions from the last post and here is what i get.

ps aux|grep mbd
root 20578 0.0 0.4 9620 2312 ? Ss 14:09 0:00 /usr/sbin/smbd -D
root 20579 0.0 0.2 9620 1084 ? S 14:09 0:00 /usr/sbin/smbd -D
deviants 21370 0.0 0.1 2752 696 pts/0 R+ 14:36 0:00 grep mbd

On my smb.conf file i have share set to "user", but i still cant access the linux box from any pc. I do not belive that we have a DC on this network, its all router DHCP. I have been using SWAT for samba configuration, Below is my smb.conf.

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/07/10 14:10:17

[global]
netbios name = SUSE
interfaces = eth0, eth1
security = SHARE
map to guest = Bad User
server signing = auto
printcap name = cups
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[/home/deviants/documents]
path = /tmp

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root

[locations]
comment = Locations Share
path = /home/deviants/Documents/Locations/
read only = No
inherit acls = Yes

I really appricate any help, thanks in advance.

P.s. - if you have irc, im on in the #suse and #samba channels as deviants.
 
Old 07-10-2006, 05:27 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
hey lazhome;

I dint got one thing for sure; As in your samba configuration suggests that you want you samba to act as a PDC but still you hav set your security mode as a share only.

Have you done that intentionally ?
 
Old 07-10-2006, 06:21 PM   #3
lazhome
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
im am just trying to get samba set up. I thought it was better to have it set up as the PDC instead of the BDC. After i can get file sharing working, i can redo the permissions and put it back to user. I dont know how to add users and passwords yet either
 
Old 07-10-2006, 06:26 PM   #4
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
To add users to samba
Code:
smbpasswd -a anyLinuxLocalUser
EDIT:
Here's my /etc/samba/smb.conf
Code:
[global]
workgroup = WORKGROUP
server string = Samba Server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
socket options = TCP_NODELAY
[homes]
   read only = no
   public = no
   create mask = 0755
   valid users = %U
Hope it helps.

Last edited by manishsingh4u; 07-10-2006 at 06:31 PM.
 
Old 07-10-2006, 06:56 PM   #5
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Hey laz;

It wud b better for you to get a know how abt the way these security modes work..

From : http://amitsharma.linuxbloggers.com/how_to_samba.htm
----------------------
1. security = share

Samba associate a password with each share.
User sends a share request & its own password but it does not explicitly sends its username for this request. In return samba now figures out about the user from its password it has got & then turn that share/pass into user/pass combination & grant the share access to that particular user.

Client ~~> (share/pass) ~~> Samba
Samba ~~> (figure out the user from the pass) ~~> (grants access of share) ~~> Client

2. **security = user

Samba mount shares with requested username / passoword combination.
Client ~~> (protocol negotiation) ~~> (session request (+ username/password + machine name)) ~~> Samba
Samba ~~> (authenticate user/pass) ~~> (grant access to mount shares) ~~> Client

* also valid for samba to act as a domain controller.
** Default security level for smb.conf, even if security=user is not mentioned in smb.conf.

------------------------
You can go thru the link, as i've mentioned a step by step implemenatation of Samba as PDC over dere.

You can ask me in b/w for any query or clarification.
 
  


Reply



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 Networking With XP Floyd770 Linux - Networking 2 03-03-2005 11:23 AM
Networking with Samba linux-rulz Linux - Networking 10 02-21-2005 03:05 PM
help networking and with samba limiter Linux - Networking 0 10-06-2003 11:45 PM
samba networking help please! odious1 Linux - Networking 10 07-09-2003 03:38 PM
Networking with Samba bad1drums Linux - Networking 1 04-05-2003 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:21 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