[Samba] Aks : 2 setup , 1 work ... 1 fail
Bino Oetomo
bino at indoakses-online.com
Tue Dec 29 20:47:12 MST 2009
Dear All
I just try learn installing samba + webmin
Now I have 2 box wih them.
The first box is work well (workgroup mode)
But he 2nd one is failed, although I copy the configuration from box#1
Here is the config
[global]
passwd chat debug = yes
name resolve order = wins bcast hosts
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n
idmap gid = 15000-20000
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
username map = /etc/samba/smbusers
domain master = yes
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam
wins support = true
netbios name = erp
writeable = yes
server string = %h server (Samba, Ubuntu)
idmap uid = 15000-20000
default = global
unix password sync = yes
remote announce = 192.168.0.0
workgroup = gendhis
os level = 64
add user script = /usr/sbin/useradd -m %u
security = user
add machine script = /usr/sbin/useradd -s /bin/false/ -d
/var/lib/nobody %u
delete user script = /usr/sbin/userdel -r %u
log level = 3
domain logons = yes
[homes]
comment = Home
valid users = %S
read only = no
browsable = no
[netlogon]
comment = Network Logon Service
path = /hdd2/samba/netlogon
admin users = Administrator
valid users = %U
read only = no
[profile]
comment = User profiles
path = /hdd2/samba/profiles
valid users = %U
create mode = 0600
directory mode = 0700
writable = yes
browsable = no
[bag_umum]
path = /hdd2/samba/groupfiles/bag_umum
Here is the involved directory
bino at erp:/hdd2$ ls -lR samba
samba:
total 32
drwxr-xr-x 3 root root 4096 2009-12-30 09:34 groupfiles
drwxrwx--x 2 root users 16384 2009-12-29 14:36 lost+found
drwxrwxr-x 2 root users 4096 2009-12-29 14:48 netlogon
drwxrwxr-x 2 root users 4096 2009-12-29 14:48 profiles
drwxr-xr-x 2 root root 4096 2009-12-29 14:50 users
samba/groupfiles:
total 4
drwxr-xr-x 2 root umum 4096 2009-12-30 09:34 bag_umum
And here is taken from /etc/group
umum:x:1001:umum01
And here is taken from /etc/passwd
umum01:x:1001:100:Oemoem 01:/home/umum01:/bin/false
And here is taken from /etc/samba/smbusers
root=administrator
nobody=guest
nobody=smbguest
nobody=pcguest
And here is taken from /etc/hosts
127.0.0.1 localhost
192.168.10.234 erp.gendhis erp
192.168.10.234 samba.gendhis samba
192.168.10.17 inaxnotebook
Note : inaxnotebook is test client station, XP-Pro
Symptom (From the test client station):
1. Connecting to the Inaxsmb workgroup (serve by box#1):
a. From "mycomputer" , right click and "properties"
b. From "computername" tab , I change the workgroup to "INAXSMB" and
click "OK" ... it poped up a welcome msg and ask me to reboot
c. After reboot , Right click start button and "explore"
d. Click on "My network places" --> "entire Network" , it shows both
workgroup :
+++ "Inaxsmb" --> served by "box#1"
+++ "Gendhis" ---> served by "box#2"
e. Click on "Inaxsmb" , it shows the description of "box#1" and also
it's own name
f. Click on "box#1" description , it poped up a login window asking for
username and passwd
g. and after authentication , it shows all shares normaly
After this test , I reboot the test client station , just to make sure
clean up all connection
After reboot , here is the step i made and what I got
2. Connecting to gendhis workgroup (serve by box#2) :
a. From "mycomputer" , right click and "properties"
b. From "computername" tab , I change the workgroup to "GENDHIS" and
click "OK" ... it poped up a welcome msg and ask me to reboot
c. After reboot , Right click start button and "explore"
d. Click on "My network places" --> "entire Network" , it ONLY shows
workgroup :
+++ "Gendhis" ---> served by "box#2"
Note(A) : this is diferent response I got from step 1.d
e. Click on "Gendhis" , It poped up an error msg window that say :
"
Gendhis is not accesible. You might not have permission to use this
network resource. Contact the administrator of this server to findout if
you have access permissions
The network path was not found.
"
Note(B) : this is diferent response I got from step 1.e
So , Kindly please give me your enlightment ... whats wrong with my
configuration.
Just for reference, here is copy of box#1's smb.conf
#############START#####################
[global]
name resolve order = wins bcast hosts
passwd chat debug = yes
add group script = /usr/sbin/groupadd %g
idmap gid = 15000-20000
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
domain master = yes
username map = /etc/samba/smbusers
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
wins support = true
netbios name = erp_int
writeable = yes
server string = %h server (Samba, erp_int)
idmap uid = 15000-20000
default = global
unix password sync = yes
remote announce = 192.168.0.0
workgroup = inaxsmb
os level = 64
add user script = /usr/sbin/useradd -m %u
security = user
add machine script = /usr/sbin/useradd -s /bin/false/ -d
/var/lib/nobody %u
delete user script = /usr/sbin/userdel -r %u
domain logons = yes
log level = 3
# Useradd scripts
# sync smb passwords woth linux passwords
# set the loglevel
[homes]
comment = Home
valid users = %S
read only = no
browsable = no
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
admin users = Administrator
valid users = %U
read only = no
[profile]
comment = User profiles
path = /home/samba/profiles
valid users = %U
create mode = 0600
directory mode = 0700
writable = yes
browsable = no
[bag_umum]
comment = Bag.Umum
path = /home/samba/bagumum
#############STOP######################
Sincerely
-bino-
More information about the samba
mailing list