LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-21-2006, 08:02 AM   #16
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15

ok here is a basic setup of a windows 9X/ME domain controller but it will act as a file server for 2000/XP

[Global]
workgroup = OFFICE1
netbios name = SAMLINUX
server string = Samba Server
wins support = Yes
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix passwd sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Unix*Password* %n\n *ReType*new*Unix*Password* %n/n *passwd:*all*authentication*tokens*updated*sucessfully*

# passwd chat line is all one line

username map = /etc/samba/smbusers
local master = yes
domain master = yes
preffered master = yes
domain logons = yes
logon path = \\%L\profiles\%U
wins support = yes

[homes]
comment = Home Directories
browsable = no
writable = yes

[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = yes
writable = no
share modes = no

[profiles]
path = /home/profiles
browsable = no
guest ok = yes

[shared]
path = /sharedzone
browsable = yes
guest ok = yes
public = yes
writable = yes



Thats Your smb.conf done. now we need to run some commands

mkdir /home/netlogon
mkdir /home/profiles
mkdir /sharedzone
useradd username
smbpasswd -a username

where username is a username of your choice
and you can add as many as you want

let me know the outcome

blackfish

Last edited by blackfish; 05-21-2006 at 08:04 AM.
 
Old 05-21-2006, 12:03 PM   #17
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
I was trapped with that smb.conf stuff

then I found out that it was only a simple thing that I've missed

Last edited by Bobymc; 05-21-2006 at 12:27 PM.
 
Old 05-21-2006, 12:09 PM   #18
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Lightbulb

Metalsam;

Quote:
Originally Posted by metalsam
ok, now XP can see linux, but i get:

\\Samlinux is not accessible, you may not have permission to use this network resource.

network path was not found.

INSTALL LISA DAEMON N kick it on.
__________________________________________________
disable all FIREWALL from the security section.

Life would be much easier.

Last edited by Bobymc; 05-21-2006 at 12:49 PM.
 
Old 05-21-2006, 12:13 PM   #19
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Sorry I've posted too many times.
I guess I too old for this
"excuse me"
((something mad with my browser))

Regards

Last edited by Bobymc; 05-21-2006 at 12:28 PM.
 
Old 05-21-2006, 12:23 PM   #20
metalsam
Member
 
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blackfish
passwd chat = *New*Unix*Password* %n\n *ReType*new*Unix*Password* %n/n *passwd:*all*authentication*tokens*updated*sucessfully*


blackfish

whats up with all the asterixes ?
 
Old 05-21-2006, 12:55 PM   #21
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
I shows that there is a space between each word when you run a command
 
Old 05-21-2006, 12:57 PM   #22
metalsam
Member
 
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56

Original Poster
Rep: Reputation: 15
still dont get it...

so i have to put

new unix passwd

as part of that file ?
 
Old 05-21-2006, 02:14 PM   #23
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
just copy that page ive given you, then run the useradd command to add a user onto the unix database then run the smbpasswd -a username where username is the name of the user you added with the useradd command

HTH

blackfish
 
Old 05-21-2006, 02:39 PM   #24
metalsam
Member
 
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56

Original Poster
Rep: Reputation: 15
linux still isnt visible from XP
 
Old 05-21-2006, 02:59 PM   #25
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
you dont happen to have the firewall enabled do you?
 
Old 05-21-2006, 09:01 PM   #26
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
are u following what we teach here, ok tell me
1) u search computer from xp samlinux can u see ?
2) if u can see & u click computer samlinux did that computer asking the user pass ?
3) ok what is testparm output for this time

------------------------------
---browser mad donno why

Last edited by routers; 05-21-2006 at 09:27 PM.
 
Old 05-22-2006, 04:22 AM   #27
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Red face

Quote:
Originally Posted by metalsam
linux still isnt visible from XP
Have you turn the firewall off and turn the LISA on.
 
Old 05-23-2006, 11:12 AM   #28
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Just remembered that I've made a bit of modification on Windows system32 to make LINUX box appeear on my WIN2k desktop.

I'm not sure if it's affective or not.
 
Old 05-23-2006, 03:38 PM   #29
metalsam
Member
 
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56

Original Poster
Rep: Reputation: 15
[Sam@localhost ~]$ testparm
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "unix passwd sync"
Ignoring unknown parameter "unix passwd sync"
Unknown parameter encountered: "preffered master"
Ignoring unknown parameter "preffered master"
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[shared]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = OFFICE1
netbios name = SAMLINUX
server string = Samba Server
passwd program = /usr/bin/passwd %u
passwd chat = *New*Unix*Password* %n\n *ReType*new*Unix*Password* %n/n *passwd:*all*authentication*tokens*updated*sucessfully*
username map = /etc/samba/smbusers
logon path = \\%L\profiles\%U
domain logons = Yes
domain master = Yes
wins support = Yes

[homes]
comment = Home Directories
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = Yes
share modes = No

[profiles]
path = /home/profiles
guest ok = Yes
browseable = No

[shared]
path = /sharedzone
read only = No
guest ok = Yes
 
Old 05-25-2006, 09:32 AM   #30
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
So your FEDORA is the domain controller on your LAN??
In LAN there must be a unit that act as a DOMAIN CONTROLLER so each workstation is able to communicate.(large network usually use this)
Have you grant XP to have a share to your LINUX system?

That samba configuration changes everytime you configure your network state.

Here's my samba configuration for LINUX to XP <>XP-Fedora config;
this is just a small networking___________________________________________________
[global]

# there's no modification ,it comes from fresh install of Fedora4
cups options = raw

log file = /var/log/samba/%m.log

max log size = 50
security = share
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

dns proxy = no
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
[homes]
comment = Home Directories
browseable = no
read only = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
printable = yes

[LINUXXP]
path = /LINUXxp
guest ok = yes
read only = no
case sensitive = no
msdfs proxy = no
____________________________________________________________

I dont really care about samba CONFIG coz it's DYNAMIC.

On the winXP;
>open my net place
>view workgroup computer
______________________________________
there's only your winXP 'computer BOX'
______________________________________
__(ther's no LINUX)___

click MS WIND NETWORK it's inside 'other places'.(under network task BOX)
You'll see workgroup computer (one of them should be your LINUX box).
Also printer and Faxes from Fedora 4.

Last edited by Bobymc; 05-25-2006 at 09:39 AM.
 
  


Reply

Tags
samba


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 - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Samba Problem Marine Eater Linux - Networking 2 12-17-2004 03:58 PM
samba problem haobaba1 Linux - Networking 5 08-17-2003 12:35 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM


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